rpms/libnet/F-7 libnet.spec,1.9,1.10
Patrice Dumas (pertusus)
fedora-extras-commits at redhat.com
Wed Aug 1 10:19:59 UTC 2007
- Previous message (by thread): rpms/quagga/devel quagga-0.99.8-initscript.patch, NONE, 1.1 .cvsignore, 1.16, 1.17 quagga.spec, 1.36, 1.37 sources, 1.16, 1.17
- Next message (by thread): rpms/glibc/devel glibc-kaio-private-futex.patch, NONE, 1.1 glibc.spec, 1.311, 1.312
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: pertusus
Update of /cvs/extras/rpms/libnet/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv939
Modified Files:
libnet.spec
Log Message:
* Wed Aug 1 2007 Patrice Dumas <pertusus at free.fr> 1.1.2.1-11
- build with -fPIC (#250296)
Index: libnet.spec
===================================================================
RCS file: /cvs/extras/rpms/libnet/F-7/libnet.spec,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- libnet.spec 15 Jan 2007 23:49:53 -0000 1.9
+++ libnet.spec 1 Aug 2007 10:19:26 -0000 1.10
@@ -1,7 +1,7 @@
Summary: C library for portable packet creation and injection
Name: libnet
Version: 1.1.2.1
-Release: 10%{?dist}
+Release: 11%{?dist}
License: BSD
Group: System Environment/Libraries
URL: http://www.packetfactory.net/libnet/
@@ -24,6 +24,7 @@
Summary: Development files for libnet
Group: Development/Libraries
Provides: %{name} = %{version}-%{release}
+Provides: %{name}-static = %{version}-%{release}
%description devel
Libnet is an API to help with the construction and handling of network packets.
@@ -40,33 +41,43 @@
%patch0 -p1 -b odd_chksum
sed -i -e 's/\r$//' doc/CHANGELOG doc/CONTRIB
find . -depth -type d -name CVS -exec rm -rf {} ';'
-rm -rf sample/win32
rm -f sample/.\#* sample/.*.swp
+
%build
-%configure
+# keep the sample directory untouched by make
+rm -rf __fedora_sample
+mkdir __fedora_sample
+cp -a sample __fedora_sample
+
+export CFLAGS="%{optflags} -fPIC"
+%configure --disable-dependency-tracking
make %{?_smp_mflags}
+
%install
rm -rf %{buildroot}
-make DESTDIR=%{buildroot} install
-
-install -D --mode=0755 libnet-config %{buildroot}%{_bindir}/libnet-config
+make DESTDIR=%{buildroot} install INSTALL='install -c -p'
-install -d --mode=0755 %{buildroot}%{_mandir}/man3
-install -D --mode=0644 doc/man/man3/libnet*.3 %{buildroot}%{_mandir}/man3/
-
-make -C sample clean
+mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man3
+install -p -m0755 libnet-config %{buildroot}%{_bindir}/libnet-config
+install -p -m0644 doc/man/man3/libnet*.3 %{buildroot}%{_mandir}/man3/
+
+# prepare samples directory
+rm -rf __fedora_sample/sample/win32
+rm __fedora_sample/sample/Makefile.in
+sed -i -e 's:#include "../include/libnet.h":#include <libnet.h>:' __fedora_sample/sample/libnet_test.h
%clean
rm -rf %{buildroot}
+
%files devel
%defattr(-,root,root,-)
%doc README VERSION
%doc doc/BUGS doc/CHANGELOG doc/CONTRIB doc/COPYING doc/DESIGN_NOTES
%doc doc/MIGRATION doc/PACKET_BUILDING doc/PORTED doc/RAWSOCKET_NON_SEQUITUR
-%doc doc/TODO doc/html/ sample/
+%doc doc/TODO doc/html/ __fedora_sample/sample/
%{_bindir}/libnet-config
%{_includedir}/libnet/
@@ -74,7 +85,11 @@
%{_libdir}/libnet.a
%{_mandir}/man3/libnet*
+
%changelog
+* Wed Aug 1 2007 Patrice Dumas <pertusus at free.fr> 1.1.2.1-11
+- build with -fPIC (#250296)
+
* Fri Jan 12 2007 Patrice Dumas <pertusus at free.fr> 1.1.2.1-10
- add debian patch to correct bad checksums
- Previous message (by thread): rpms/quagga/devel quagga-0.99.8-initscript.patch, NONE, 1.1 .cvsignore, 1.16, 1.17 quagga.spec, 1.36, 1.37 sources, 1.16, 1.17
- Next message (by thread): rpms/glibc/devel glibc-kaio-private-futex.patch, NONE, 1.1 glibc.spec, 1.311, 1.312
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list