|
@@ -1,12 +1,13 @@
|
|
|
Summary: C library for portable packet creation and injection
|
|
|
Name: libnet
|
|
|
-Version: 1.1.5
|
|
|
+Version: 1.1.6
|
|
|
Release: 1%{?_dist_release}
|
|
|
License: BSD
|
|
|
Group: System Environment/Libraries
|
|
|
URL: http://www.sourceforge.net/projects/libnet-dev/
|
|
|
-Source: http://downloads.sourceforge.net/libnet-dev/%{name}-%{version}.tar.gz
|
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
+Source0: http://downloads.sourceforge.net/libnet-dev/%{name}-%{version}.tar.gz
|
|
|
+
|
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
@@ -21,6 +22,7 @@ complementary functionality.
|
|
|
|
|
|
%package devel
|
|
|
Summary: Development files for the libnet library
|
|
|
+Summary(ja): libnet ライブラリの開発用ファイル
|
|
|
Group: Development/Libraries
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
@@ -35,23 +37,18 @@ and sample test code for more detailed information.
|
|
|
|
|
|
# Keep the sample directory untouched by make
|
|
|
rm -rf __dist_sample
|
|
|
-mkdir __dist_sample
|
|
|
+mkdir -p __dist_sample
|
|
|
cp -a sample __dist_sample
|
|
|
|
|
|
%build
|
|
|
-%configure --libdir=/%{_lib}
|
|
|
+%configure
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
|
-rm -rf %{buildroot}
|
|
|
-make DESTDIR=%{buildroot} INSTALL='install -p' install
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
+make DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' install
|
|
|
|
|
|
-# Move %{name}.so to %{_libdir}, remove static .a and libtool .la files
|
|
|
-rm -f %{buildroot}/%{_lib}/%{name}.{a,la,so}
|
|
|
-pushd %{buildroot}/%{_lib}
|
|
|
-mkdir -p %{buildroot}%{_libdir}
|
|
|
-ln -sf ../../%{_lib}/$(ls %{name}.so.?.?.?) %{buildroot}%{_libdir}/%{name}.so
|
|
|
-popd
|
|
|
+rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}.{a,la}
|
|
|
|
|
|
# Prepare samples directory and perform some fixes
|
|
|
rm -rf __dist_sample/sample/win32
|
|
@@ -65,7 +62,7 @@ mv -f __dist_sample/sample/libnet_test.h{.new,}
|
|
|
rm -f doc/html/Makefile*
|
|
|
|
|
|
%clean
|
|
|
-rm -rf %{buildroot}
|
|
|
+rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
@@ -74,11 +71,11 @@ rm -rf %{buildroot}
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
|
%doc README doc/CHANGELOG doc/CONTRIB doc/COPYING
|
|
|
-/%{_lib}/%{name}.so.*
|
|
|
+%{_libdir}/%{name}.so.*
|
|
|
|
|
|
%files devel
|
|
|
%defattr(-,root,root,-)
|
|
|
-%doc doc/BUGS doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING
|
|
|
+%doc doc/CHANGELOG doc/CONTRIB doc/COPYING doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING
|
|
|
%doc doc/RAWSOCKET_NON_SEQUITUR doc/TODO doc/html/ __dist_sample/sample/
|
|
|
%{_bindir}/%{name}-config
|
|
|
%{_libdir}/%{name}.so
|
|
@@ -87,6 +84,9 @@ rm -rf %{buildroot}
|
|
|
%{_mandir}/man3/%{name}*.3*
|
|
|
|
|
|
%changelog
|
|
|
+* Thu Feb 26 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.1.6-1
|
|
|
+- updated to 1.1.6
|
|
|
+
|
|
|
* Thu Mar 15 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.5-1
|
|
|
- updated to 1.1.5; spec revamped
|
|
|
|