libdnet/libdnet.spec

152 lines
3.4 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:55:45 -04:00
Name: libdnet
2024-01-05 02:40:07 +00:00
Version: 1.17.0
2023-07-07 15:21:46 +08:00
Release: 1
2019-09-30 10:55:45 -04:00
Summary: Simple portable interface work with low-level networking routines
License: BSD
2021-01-27 16:12:02 +08:00
URL: https://github.com/ofalk/%{name}
Source: https://github.com/ofalk/libdnet/archive/%{name}-%{version}.tar.gz
2019-09-30 10:55:45 -04:00
2023-02-09 08:54:07 +00:00
BuildRequires: gcc-c++ autoconf automake libtool
BuildRequires: python3-Cython
BuildRequires: make check-devel python3-setuptools
2019-09-30 10:55:45 -04:00
%description
%{name} provides a simplified, portable interface to several low-level networking
routines, including network address manipulation, kernel arp and route table
manipulation, firewalling, interface configuration, IP tunnelling, and raw Ethernet
and IP datagram transmission.
%package devel
Summary: Header files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
%{name}-devel contains the header files for developing
applications that want to make use of %{name}
%package progs
Summary: Sample applications to use with %{name}
Requires: %{name} = %{version}-%{release}
%description progs
%{name}-progs contains sample applications that want to make use of %{name}
2020-10-29 19:59:04 +08:00
%package -n python3-%{name}
%{?python_provide:%python_provide python3-%{name}}
2019-09-30 10:55:45 -04:00
Provides: %{name}-python = %{version}-%{release}
2022-11-18 03:21:18 +00:00
Obsoletes: %{name}-python < %{version}-%{release}
2019-09-30 10:55:45 -04:00
Summary: Python bindings for %{name}
Requires: %{name} = %{version}-%{release}
2020-10-29 19:59:04 +08:00
BuildRequires: python3-devel
2019-09-30 10:55:45 -04:00
2020-10-29 19:59:04 +08:00
%description -n python3-%{name}
Python3 package for python-%{name}
2019-09-30 10:55:45 -04:00
%package_help
%prep
2021-01-27 16:12:02 +08:00
%autosetup -n %{name}-%{name}-%{version} -p1
2019-09-30 10:55:45 -04:00
%build
2023-02-09 08:54:07 +00:00
autoreconf -i
2019-09-30 10:55:45 -04:00
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
2023-02-03 07:00:53 +00:00
%configure --disable-static
2019-09-30 10:55:45 -04:00
%disable_rpath
%make_build
%install
2023-02-09 08:54:07 +00:00
%make_install
2019-09-30 10:55:45 -04:00
pushd python
2020-10-29 19:59:04 +08:00
%{__python3} setup.py install --skip-build --root %{buildroot}
2019-09-30 10:55:45 -04:00
popd
%delete_la
%ldconfig_scriptlets
%files
%defattr(-,root,root)
%license LICENSE
%{_libdir}/%{name}.so.*
%files devel
%defattr(-,root,root)
%{_bindir}/dnet-config
%{_libdir}/%{name}.so
2023-02-03 07:00:53 +00:00
%{_includedir}/*
2019-09-30 10:55:45 -04:00
%files progs
%defattr(-,root,root)
%{_sbindir}/*
2020-10-29 19:59:04 +08:00
%files -n python3-%{name}
2019-09-30 10:55:45 -04:00
%defattr(-,root,root)
2020-10-29 19:59:04 +08:00
%{python3_sitearch}/*
2019-09-30 10:55:45 -04:00
%files help
%defattr(-,root,root)
2021-01-27 16:12:02 +08:00
%doc THANKS TODO
2019-09-30 10:55:45 -04:00
%{_mandir}/man3/*.3*
%{_mandir}/man8/*.8*
%changelog
2024-01-05 02:40:07 +00:00
* Fri Jan 05 2024 xingwei <xingwei14@h-partners.com> - 1.17.0-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC: update libdnet to 1.17.0
2023-07-07 15:21:46 +08:00
* Thu Jul 13 2023 chenzixuan <chenzixuan@kylinos.cn> - 1.16.4-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC: update libdnet to 1.16.4
2023-02-09 08:54:07 +00:00
* Thu Feb 09 2023 yanglu <yanglu72@h-partners.com> - 1.16.3-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix libdnet build error
2023-02-03 07:00:53 +00:00
* Fri Feb 03 2023 xinghe <xinghe2@h-partners.com> - 1.16.3-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC: update libdnet to 1.16.3
2022-11-18 03:21:18 +00:00
* Fri Nov 18 2022 xingwei <xingwei14@h-partners.com> - 1.14-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: add Obsoletes '< version' in spec
2022-11-01 06:09:45 +00:00
* Tue Nov 01 2022 xingwei <xingwei14@h-partners.com> - 1.14-2
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: fix Potential Null Pointer Dereference
2021-01-27 16:12:02 +08:00
* Wed Jan 27 2021 xihaochen <xihaochen@huawei.com> - 1.14-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC: update libdnet to 1.14
2020-10-29 19:59:04 +08:00
* Thu Oct 29 2020 gaihuiying <gaihuiying1@huawei.com> - 1.12 - 30
- Type:rquirement
- ID:NA
- SUG:NA
- DESC:remove python2, and switch to python3
2020-09-11 10:20:20 +08:00
* Fri Sep 11 2020 lunankun <lunankun@huawei.com> - 1.12 - 29
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix source0 url
2019-09-30 10:55:45 -04:00
* Thu Sep 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.12 - 28
- Package init