Commit | Line | Data |
---|---|---|
58165311 TJ |
1 | Summary: talk2neighbor - C++ IPC library |
2 | Name: libt2n | |
3 | Version: @VERSION@ | |
e1f27c9e | 4 | Release: 1 |
4a4c6740 | 5 | License: GPL version 2 + linking exception |
58165311 TJ |
6 | Group: Intranator |
7 | Vendor: Intra2net AG | |
d640e9d9 | 8 | Source: http://www.intra2net.com/en/developer/libt2n/download/%{name}-%{version}.tar.gz |
58165311 TJ |
9 | Buildroot: /tmp/%{name}-%{version}-root |
10 | Prefix: /usr | |
307b5e74 | 11 | BuildPrereq: libtool |
d640e9d9 | 12 | URL: http://www.intra2net.com/en/developer/libt2n |
58165311 TJ |
13 | |
14 | %description | |
15 | C++ IPC library | |
16 | ||
17 | %package devel | |
18 | Summary: talk2neighbor - C++ IPC library | |
19 | Group: Intranator/Development | |
b24bd083 | 20 | Requires: libt2n = %{version} gccxml libxml++ boost-devel |
2c49df2a | 21 | BuildPrereq: boost-devel |
58165311 TJ |
22 | |
23 | %description devel | |
24 | C++ IPC library devel files | |
25 | ||
26 | %prep | |
27 | %setup -q | |
28 | ||
29 | %build | |
ab2a4234 KK |
30 | # autoreconf --force --install |
31 | # ./configure $RPM_BUILD_WITH_OPTIMIZE --prefix=%{prefix} | |
32 | # %__make %{?_smp_mflags} | |
33 | ||
7ba38527 KK |
34 | export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ |
35 | ||
ab2a4234 KK |
36 | mkdir build |
37 | cd build | |
38 | ||
39 | export CFLAGS="$RPM_OPT_FLAGS" | |
40 | export CXXFLAGS="$RPM_OPT_FLAGS" | |
41 | ||
42 | cmake -DCMAKE_INSTALL_PREFIX="%{prefix}" ../ | |
43 | ||
44 | dmake %{?_smp_mflags} | |
58165311 | 45 | |
307b5e74 | 46 | export BOOST_TEST_LOG_LEVEL=test_suite |
7ba38527 | 47 | dmake check || /bin/true |
58165311 TJ |
48 | |
49 | %install | |
ab2a4234 | 50 | cd build |
58165311 TJ |
51 | make DESTDIR=$RPM_BUILD_ROOT install |
52 | ||
53 | %clean | |
54 | rm -fr $RPM_BUILD_ROOT | |
55 | ||
56 | %post | |
57 | /sbin/ldconfig | |
58 | ||
59 | %files | |
60 | %defattr(-,root,root) | |
19facd85 | 61 | %doc AUTHORS README LICENSE COPYING.GPL |
58165311 TJ |
62 | %{prefix}/lib/libt2n.so* |
63 | ||
64 | %files devel | |
53d60743 | 65 | %doc ChangeLog doc examples examples-codegen |
58165311 | 66 | %defattr(-,root,root) |
1420fedc | 67 | %{prefix}/bin/libt2n-codegen |
58f452c4 | 68 | %{prefix}/bin/libt2n-gccxml.sh |
58165311 TJ |
69 | %{prefix}/lib/*.*a* |
70 | %{prefix}/lib/pkgconfig/*.pc | |
71 | %{prefix}/include/ | |
7ba38527 | 72 | # %{prefix}/share/aclocal |
1420fedc | 73 | %{prefix}/share/libt2n |
b24bd083 | 74 | %{prefix}/share/cmake/Modules/Libt2n.cmake |