X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=libt2n.spec.in;h=745b59144a8305c9b9e98e22bb25f4d402ef7c57;hp=3d5c8dc6e565dc3347a100b5ea05ae3700d21166;hb=c209619c4d44a3e9c5b0f537f53ec65564899efb;hpb=5816531135da09aceb7a026eeade735cbd20ef03 diff --git a/libt2n.spec.in b/libt2n.spec.in index 3d5c8dc..745b591 100644 --- a/libt2n.spec.in +++ b/libt2n.spec.in @@ -2,21 +2,23 @@ Summary: talk2neighbor - C++ IPC library Name: libt2n Version: @VERSION@ Release: 1 -Copyright: LGPL -Group: Intranator +License: GPL version 2 + linking exception +Group: Intra2net Vendor: Intra2net AG -Source: %{name}-%{version}.tar.gz +Source: http://www.intra2net.com/en/developer/libt2n/download/%{name}-%{version}.tar.bz2 Buildroot: /tmp/%{name}-%{version}-root Prefix: /usr BuildPrereq: libtool +URL: http://www.intra2net.com/en/developer/libt2n %description C++ IPC library %package devel Summary: talk2neighbor - C++ IPC library -Group: Intranator/Development -Requires: libt2n = %{version} libgettext +Group: Intra2net/Development +Requires: libt2n = %{version} gccxml libxml++ boost-devel +BuildPrereq: boost-devel %description devel C++ IPC library devel files @@ -25,14 +27,27 @@ C++ IPC library devel files %setup -q %build -cp -f /usr/share/libtool/ltmain.sh . -autoreconf --force -./configure $RPM_BUILD_WITH_OPTIMIZE --prefix=%{prefix} --includedir=%{prefix}/include/%{name} -dmake +# autoreconf --force --install +# ./configure $RPM_BUILD_WITH_OPTIMIZE --prefix=%{prefix} +# %__make %{?_smp_mflags} -dmake check +export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ + +mkdir build +cd build + +export CFLAGS="$RPM_OPT_FLAGS" +export CXXFLAGS="$RPM_OPT_FLAGS" + +cmake -DCMAKE_INSTALL_PREFIX="%{prefix}" ../ + +dmake %{?_smp_mflags} + +export BOOST_TEST_LOG_LEVEL=test_suite +dmake check || /bin/true %install +cd build make DESTDIR=$RPM_BUILD_ROOT install %clean @@ -43,11 +58,17 @@ rm -fr $RPM_BUILD_ROOT %files %defattr(-,root,root) -%doc LICENSE +%doc AUTHORS README LICENSE COPYING.GPL %{prefix}/lib/libt2n.so* %files devel +%doc ChangeLog doc examples examples-codegen %defattr(-,root,root) +%{prefix}/bin/libt2n-codegen +%{prefix}/bin/libt2n-gccxml.sh %{prefix}/lib/*.*a* %{prefix}/lib/pkgconfig/*.pc %{prefix}/include/ +# %{prefix}/share/aclocal +%{prefix}/share/libt2n +%{prefix}/share/cmake/Modules/Libt2n.cmake