libnet/libnet.spec

91 lines
2.4 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:57:10 -04:00
Name: libnet
Version: 1.3
Release: 2
2019-09-30 10:57:10 -04:00
Summary: A C library to help with construction and handling of network packets
License: BSD-2-Clause and BSD-3-Clause
URL: https://github.com/libnet/libnet
2020-06-02 14:38:02 +00:00
Source: https://github.com/libnet/libnet/releases/download/v%{version}/%{name}-%{version}.tar.gz
2020-07-29 05:09:57 +00:00
BuildRequires: automake autoconf libtool doxygen graphviz
2019-09-30 10:57:10 -04:00
%description
Libbet provides a fairly portable framework for network packet
construction an injuction.
%package devel
Summary: Development files for the libnet library
2019-09-30 10:57:10 -04:00
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains libraries and header files.
%package help
Summary: Documentation files for the libnet library
2019-09-30 10:57:10 -04:00
Requires: %{name}%{?_isa} = %{version}-%{release}
%description help
This package contains help documents.
%prep
%autosetup -p1
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
%license LICENSE
2019-09-30 10:57:10 -04:00
%{_libdir}/%{name}.so.*
%files devel
%{_libdir}/%{name}.so
2020-06-02 14:30:34 +00:00
%{_libdir}/pkgconfig/%{name}.pc
2019-09-30 10:57:10 -04:00
%{_bindir}/%{name}-config
%{_includedir}/%{name}/
%{_includedir}/libnet.h
%files help
2020-07-29 05:09:57 +00:00
%doc README.md ChangeLog.md doc/MIGRATION.md doc/RAWSOCKET.md
%doc doc/html/
2020-06-02 14:30:34 +00:00
%doc %{_docdir}/*
%{_mandir}/man1/%{name}*.1*
2019-09-30 10:57:10 -04:00
%{_mandir}/man3/%{name}*.3*
%changelog
* Wed Jun 05 2024 zhangpan <zhangpan103@h-partners.com> - 1.3-2
- delete redundant files
* Wed Dec 27 2023 lvgenggeng <lvgenggeng@uniontech.com> - 1.3-1
- Update to version 1.3
2022-08-05 14:04:56 +08:00
* Fri Aug 05 2022 liukuo <liukuo@kylinos.cn> - 1.2-2
- License compliance rectification
2020-07-29 04:00:42 +00:00
* Wed Jul 29 2020 Shinwell Hu <micromotive@qq.com> - 1.2-1
2020-07-29 05:09:57 +00:00
- libnet requires doxygen and graphviz to build document
2020-07-29 04:00:42 +00:00
* Tue Jun 02 2020 SimpleUpdate Robot <tc@openeuler.org> - 1.2-0
2020-06-02 14:30:34 +00:00
- Update to version 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