%define name net6 %define api 1.3 %define major 0 %define libname %mklibname net6- %api %major %define libname_devel %mklibname net6- %api -d Summary: A library to ease the development of network-based applications Name: %{name} Version: 1.3.6 Release: %mkrel 3 URL: http://gobby.0x539.de/ License: GPLv2+ Source0: http://releases.0x539.de/%{name}/%{name}-%{version}.tar.gz Group: System/Libraries BuildRequires: sigc++2.0-devel BuildRequires: pkgconfig(gnutls) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description net6 is a library which eases the development of network-based applications as it provides a TCP protocol abstraction for C++. It is portable to both the Windows and Unix-like platforms. %package -n %libname Summary: A library to ease the development of network-based applications Group: System/Libraries Obsoletes: %mklibname net6_ 1.3 %description -n %libname net6 is a library which eases the development of network-based applications as it provides a TCP protocol abstraction for C++. It is portable to both the Windows and Unix-like platforms. %package -n %libname_devel Summary: Development files for %libname Group: System/Libraries Provides: lib%{name}-devel Obsoletes: %mklibname -d net6_ 1.3 Requires: %libname = %version %description -n %libname_devel Development files, header and includes for %libname. net6 is a library which eases the development of network-based applications as it provides a TCP protocol abstraction for C++. It is portable to both the Windows and Unix-like platforms. %prep %setup -q %build %configure2_5x %make %install rm -Rf $RPM_BUILD_ROOT %makeinstall_std # remove translation, do not know where to place it rm -Rf $RPM_BUILD_ROOT/%_datadir/ %clean rm -Rf $RPM_BUILD_ROOT %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %files -n %libname %defattr(-,root,root,-) %doc ChangeLog README NEWS AUTHORS %_libdir/*%{api}.so.%{major}* %files -n %libname_devel %defattr(-,root,root,-) %_includedir/%name/ %_libdir/*.so %_libdir/*.la %_libdir/*.a %_libdir/pkgconfig/* %changelog * Tue Jul 29 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.3.6-3mdv2009.0 + Revision: 253738 - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers * Mon Jan 21 2008 Funda Wang <fundawang@mandriva.org> 1.3.6-1mdv2008.1 + Revision: 155565 - New version 1.3.6 * Mon Jan 21 2008 Funda Wang <fundawang@mandriva.org> 1.3.5-2mdv2008.1 + Revision: 155487 - correct libname + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sat Aug 18 2007 Michael Scherer <misc@mandriva.org> 1.3.5-1mdv2008.0 + Revision: 66425 - fix buildrequires - new version 1.3.5 - Import net6 * Mon Sep 04 2006 Michael Scherer <misc@mandriva.org> 1.3.1-1mdv2007.0 - New version 1.3.1 * Thu Dec 15 2005 Michael Scherer <misc@mandriva.org> 1.2.2-1mdk - New release 1.2.2 * Mon Nov 28 2005 Michael Scherer <misc@mandriva.org> 1.2.1-1mdk - New release 1.2.1, and new major * Fri Nov 04 2005 Michael Scherer <misc@mandriva.org> 1.1.0-1mdk - first package