Initial cmake conversion of the libt2n project except the example projects. The unit...
[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} libgettext 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 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}
43
44 export BOOST_TEST_LOG_LEVEL=test_suite
45 dmake check
46
47 %install
48 cd build
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)
59 %doc AUTHORS README LICENSE COPYING.GPL
60 %{prefix}/lib/libt2n.so*
61
62 %files devel
63 %doc ChangeLog doc examples examples-codegen 
64 %defattr(-,root,root)
65 %{prefix}/bin/libt2n-codegen
66 %{prefix}/bin/libt2n-gccxml.sh
67 %{prefix}/lib/*.*a*
68 %{prefix}/lib/pkgconfig/*.pc
69 %{prefix}/include/
70 %{prefix}/share/aclocal
71 %{prefix}/share/libt2n