change __fedora to __dist
This commit is contained in:
parent
a123d6f7e1
commit
d629198738
14
libnet.spec
14
libnet.spec
@ -46,9 +46,9 @@ rm -f sample/.\#* sample/.*.swp
|
||||
|
||||
%build
|
||||
# keep the sample directory untouched by make
|
||||
rm -rf __fedora_sample
|
||||
mkdir __fedora_sample
|
||||
cp -a sample __fedora_sample
|
||||
rm -rf __dist_sample
|
||||
mkdir __dist_sample
|
||||
cp -a sample __dist_sample
|
||||
|
||||
export CFLAGS="%{optflags} -fPIC"
|
||||
%configure --disable-dependency-tracking
|
||||
@ -64,9 +64,9 @@ 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
|
||||
rm -rf __dist_sample/sample/win32
|
||||
rm __dist_sample/sample/Makefile.in
|
||||
sed -i -e 's:#include "../include/libnet.h":#include <libnet.h>:' __dist_sample/sample/libnet_test.h
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
@ -77,7 +77,7 @@ rm -rf %{buildroot}
|
||||
%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/ __fedora_sample/sample/
|
||||
%doc doc/TODO doc/html/ __dist_sample/sample/
|
||||
|
||||
%{_bindir}/libnet-config
|
||||
%{_includedir}/libnet/
|
||||
|
Loading…
Reference in New Issue
Block a user