client_wrapper.hxx, socket_wrapper.hxx: reorder member initialization order
[libt2n] / libt2n.spec.in
1 Summary:   talk2neighbor - C++ IPC library
2 Name:      libt2n
3 Version:   @VERSION@
4 Release:   1
5 License:   GPL version 2 + linking exception
6 Group:     Intranator
7 Vendor:    Intra2net AG
8 Source:    http://www.intra2net.com/en/developer/libt2n/download/%{name}-%{version}.tar.gz
9 Buildroot: /tmp/%{name}-%{version}-root
10 Prefix:    /usr
11 BuildPrereq: libtool
12 URL:       http://www.intra2net.com/en/developer/libt2n
13
14 %description 
15 C++ IPC library
16
17 %package   devel
18 Summary:   talk2neighbor - C++ IPC library
19 Group:     Intranator/Development
20 Requires:  libt2n = %{version} gccxml libxml++ boost-devel
21 BuildPrereq: boost-devel
22
23 %description devel
24 C++ IPC library devel files
25
26 %prep
27 %setup -q
28
29 %build
30 # autoreconf --force --install
31 # ./configure $RPM_BUILD_WITH_OPTIMIZE --prefix=%{prefix}
32 # %__make %{?_smp_mflags}
33
34 export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
35
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}
45
46 export BOOST_TEST_LOG_LEVEL=test_suite
47 dmake check || /bin/true
48
49 %install
50 cd build
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)
61 %doc AUTHORS README LICENSE COPYING.GPL
62 %{prefix}/lib/libt2n.so*
63
64 %files devel
65 %doc ChangeLog doc examples examples-codegen 
66 %defattr(-,root,root)
67 %{prefix}/bin/libt2n-codegen
68 %{prefix}/bin/libt2n-gccxml.sh
69 %{prefix}/lib/*.*a*
70 %{prefix}/lib/pkgconfig/*.pc
71 %{prefix}/include/
72 # %{prefix}/share/aclocal
73 %{prefix}/share/libt2n
74 %{prefix}/share/cmake/Modules/Libt2n.cmake