libnet/libnet.spec

70 lines
1.7 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:57:10 -04:00
Name: libnet
2020-07-25 10:24:47 +08:00
Version: 1.2
Release: 1
2019-09-30 10:57:10 -04:00
Summary: A C library to help with construction and handling of network packets
License: BSD
2020-07-25 10:24:47 +08:00
URL: https://github.com/libnet/libnet/
Source: https://github.com/libnet/libnet/releases/download/v%{version}/%{name}-%{version}.tar.gz
2019-09-30 10:57:10 -04:00
BuildRequires: automake autoconf libtool
%description
Libbet provides a fairly portable framework for network packet
construction an injuction.
%package devel
Summary: development files are included in this package
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains libraries and header files.
%prep
%autosetup -p1
autoreconf -if
rm -rf __dist_sample
mkdir __dist_sample
cp -a sample __dist_sample
%build
%configure
%make_build
%install
%make_install INSTALL='install -p'
%delete_la_and_a
rm -rf __dist_sample/sample/win32
rm -f __dist_sample/sample/Makefile.{am,in}
sed -e 's@#include "../include/libnet.h"@#include <libnet.h>@' \
__dist_sample/sample/libnet_test.h > __dist_sample/sample/libnet_test.h.new
touch -cr __dist_sample/sample/libnet_test.h{,.new}
mv -f __dist_sample/sample/libnet_test.h{.new,}
rm -f doc/html/Makefile*
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
2020-07-25 10:24:47 +08:00
%doc doc/LICENSE
%doc doc/README.md
%doc doc/ChangeLog.md
2019-09-30 10:57:10 -04:00
%{_libdir}/%{name}.so.*
%files devel
%doc __dist_sample/sample/
%{_libdir}/%{name}.so
2020-07-25 10:24:47 +08:00
%{_libdir}/pkgconfig/%{name}.pc
2019-09-30 10:57:10 -04:00
%{_bindir}/%{name}-config
%{_includedir}/%{name}/
%{_includedir}/libnet.h
%changelog
2020-07-25 10:24:47 +08:00
* Fri Jul 24 2020 fengtao <fengtao40@huawei.com> - 1.2-1
- update version to 1.2
2019-09-30 10:57:10 -04:00
* Tue Sep 17 2019 Yiru Wang <wangyiru1@huawei.com> - 1.1.6-17
- Pakcage init