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 | |
c9d33be6 | 20 | Requires: libt2n = %{version} libgettext 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 | ||
34 | mkdir build | |
35 | cd build | |
36 | ||
37 | export CFLAGS="$RPM_OPT_FLAGS" | |
38 | export CXXFLAGS="$RPM_OPT_FLAGS" | |
39 | ||
40 | cmake -DCMAKE_INSTALL_PREFIX="%{prefix}" ../ | |
41 | ||
42 | dmake %{?_smp_mflags} | |
58165311 | 43 | |
307b5e74 | 44 | export BOOST_TEST_LOG_LEVEL=test_suite |
ab2a4234 | 45 | dmake check |
58165311 TJ |
46 | |
47 | %install | |
ab2a4234 | 48 | cd build |
58165311 TJ |
49 | make DESTDIR=$RPM_BUILD_ROOT install |
50 | ||
51 | %clean | |
52 | rm -fr $RPM_BUILD_ROOT | |
53 | ||
54 | %post | |
55 | /sbin/ldconfig | |
56 | ||
57 | %files | |
58 | %defattr(-,root,root) | |
19facd85 | 59 | %doc AUTHORS README LICENSE COPYING.GPL |
58165311 TJ |
60 | %{prefix}/lib/libt2n.so* |
61 | ||
62 | %files devel | |
53d60743 | 63 | %doc ChangeLog doc examples examples-codegen |
58165311 | 64 | %defattr(-,root,root) |
1420fedc | 65 | %{prefix}/bin/libt2n-codegen |
58f452c4 | 66 | %{prefix}/bin/libt2n-gccxml.sh |
58165311 TJ |
67 | %{prefix}/lib/*.*a* |
68 | %{prefix}/lib/pkgconfig/*.pc | |
69 | %{prefix}/include/ | |
1420fedc GE |
70 | %{prefix}/share/aclocal |
71 | %{prefix}/share/libt2n |