SPECS: libpfring.spec (NEW) - init PLD SPEC
areq
areq at pld-linux.org
Sun Jun 10 23:04:10 CEST 2007
Author: areq Date: Sun Jun 10 21:04:10 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- init PLD SPEC
---- Files affected:
SPECS:
libpfring.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/libpfring.spec
diff -u /dev/null SPECS/libpfring.spec:1.1
--- /dev/null Sun Jun 10 23:04:10 2007
+++ SPECS/libpfring.spec Sun Jun 10 23:04:05 2007
@@ -0,0 +1,83 @@
+# $Revision$, $Date$
+
+%define _cvs_snap 20070610
+
+Summary: user space library used to manpulate PF_RING
+Name: libpfring
+Version: 0.9.4
+Release: 0.%{_cvs_snap}.1
+License: BSD
+Group: Libraries
+Source0: %{name}-%{version}-%{_cvs_snap}.tar.bz2
+# Source0-md5: b0626ad59004fe5767ddd2ce743a2271
+URL: http://www.ntop.org/PF_RING.html
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libpfring is a user space library used to manpulate PF_RING
+
+%package devel
+Summary: Header files and develpment documentation for libpfring
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+
+%description devel
+libpfring is a user space library used to manpulate PF_RING
+
+%package static
+Summary: Static libpfring library
+Group: Development/Libraries
+Requires: %{name}-devel = %{epoch}:%{version}-%{release}
+
+%description static
+libpfring is a user space library used to manpulate PF_RING
+
+This package contains the static library used for development.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+ CC="%{__cc}"
+
+%{__cc} -shared -Wl,-soname -Wl,libpfring.so.0.9.4 %{rpmldflags} -o libpfring.so.0.9.4 *.o
+
+ln -s libpfring.so.0.9.4 libpfring.so
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -D libpfring.a $RPM_BUILD_ROOT%{_libdir}/libpfring.a
+install -D libpfring.so.0.9.4 $RPM_BUILD_ROOT%{_libdir}/libpfring.so.0.9.4
+install -D libpfring.so $RPM_BUILD_ROOT%{_libdir}/libpfring.so
+install -D pfring.h $RPM_BUILD_ROOT%{_includedir}/pfring.h
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_includedir}/*.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2007/06/10 21:04:05 areq
+- init PLD SPEC
+
================================================================
More information about the pld-cvs-commit
mailing list