From 360c31ed132a464a3852bce65168d2865efc070d Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 8 May 2004 23:56:55 +0000 Subject: [PATCH] - added shared patch, build and use shared lib - added missing BR: libwrap-devel, zlib-devel Changed files: flow-tools.spec -> 1.5 --- flow-tools.spec | 71 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 59 insertions(+), 12 deletions(-) diff --git a/flow-tools.spec b/flow-tools.spec index 552c835..7f4a810 100644 --- a/flow-tools.spec +++ b/flow-tools.spec @@ -2,14 +2,21 @@ Summary: Collecting and processing NetFlow data Summary(pl): Gromadzenie i przetwarzanie informacji o przep³ywie w sieci Name: flow-tools Version: 0.67 -Release: 1 +Release: 2 License: BSD Group: Applications/Networking Source0: ftp://ftp.eng.oar.net/pub/flow-tools/%{name}-%{version}.tar.gz # Source0-md5: 0ee0a2830effa554d1925236aad6b4fe +Patch0: %{name}-shared.patch URL: http://www.splintered.net/sw/flow-tools/ +BuildRequires: autoconf +BuildRequires: automake BuildRequires: bison BuildRequires: flex +BuildRequires: libtool +BuildRequires: libwrap-devel >= 7.6-32 +BuildRequires: zlib-devel +Requires: %{name}-libs = %{version}-%{release} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _localstatedir %{_sysconfdir}/%{name} @@ -22,25 +29,54 @@ from Cisco and Juniper routers. Jest to oprogramowanie s³u¿±ce do gromadzenia i przetwarzania informacji o przep³ywie w sieci (NetFlow) z routerów Cisco i Juniper. +%package libs +Summary: flow-tools library +Summary(pl): Biblioteka flow-tools +Group: Libraries +Conflicts: flow-tools < 0.67-2 + +%description libs +flow-tools library. + +%description libs -l pl +Biblioteka flow-tools. + %package devel -Summary: Header files and develpment documentation for flow-tools -Summary(pl): Pliki nag³ówkowe i dokumentacja programisty do flow-tools +Summary: Header files flow-tools library +Summary(pl): Pliki nag³ówkowe biblioteki flow-tools Group: Development/Libraries -#Requires: %{name} = %{version} +Requires: %{name}-libs = %{version}-%{release} +Requires: zlib-devel %description devel -This package contains Header files and develpment documentation for -flow-tools. +This package contains header files for flow-tools library. %description devel -l pl -Ten pakiet zawiera pliki nag³ówkowe i dokumentacjê programisty do -flow-tools. +Ten pakiet zawiera pliki nag³ówkowe biblioteki flow-tools. + +%package static +Summary: Static flow-tools library +Summary(pl): Statyczna biblioteka flow-tools +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static flow-tools library. + +%description static -l pl +Statyczna biblioteka flow-tools. %prep %setup -q +%patch0 -p1 %build -%configure \ +%{__libtoolize} +%{__aclocal} +%{__autoconf} +%{__autoheader} +%{__automake} +%configure # --with-mysql %{__make} @@ -50,18 +86,29 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT - %clean rm -rf $RPM_BUILD_ROOT +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig + %files %defattr(644,root,root,755) %doc AUTHORS ChangeLog INSTALL NEWS README SECURITY TODO %attr(755,root,root) %{_bindir}/* -%{_mandir}/man?/* +%{_mandir}/man1/* + +%files libs +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libft.so.*.*.* %{_sysconfdir} %files devel %defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libft.so +%{_libdir}/libft.la %{_includedir}/*.h -%{_libdir}/*.a + +%files static +%defattr(644,root,root,755) +%{_libdir}/libft.a -- 2.44.0