iproute/iproute.spec

116 lines
3.0 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:53:19 -04:00
Name: iproute
2021-01-26 15:38:53 +08:00
Version: 5.10.0
Release: 2
2019-09-30 10:53:19 -04:00
Summary: Linux network configuration utilities
License: GPLv2+ and Public Domain
URL: https://kernel.org/pub/linux/utils/net/iproute2/
Source0: https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/iproute2-%{version}.tar.xz
2020-01-20 22:46:18 +08:00
Patch1: bugfix-iproute2-3.10.0-fix-maddr-show.patch
Patch2: bugfix-iproute2-change-proc-to-ipnetnsproc-which-is-private.patch
2019-09-30 10:53:19 -04:00
BuildRequires: gcc bison elfutils-libelf-devel flex iptables-devel libcap-devel
BuildRequires: libdb-devel libmnl-devel libselinux-devel pkgconfig
2019-09-30 10:53:19 -04:00
Provides: /sbin/ip iproute-tc tc
Obsoletes: iproute-tc
%description
Iproute2 is a collection of user-space utilities to set up networking
under Linux from the command-line. It can inspect and configure,
among other things: interface paramters, IP addresses, routing,
tunnels, bridges, packet transformations (IPsec, etc.), and Quality
of Service.
%package devel
Summary: Header files for iprout2
License: GPLv2+
Provides: iproute-static = %{version}-%{release}
Obsoletes: iproute-static < %{version}-%{release}
%description devel
Header files for iprout2
%package_help
%prep
%autosetup -n %{name}2-%{version} -p1
2019-09-30 10:53:19 -04:00
%build
2020-12-10 09:13:02 +08:00
export LIBDIR='%{_libdir}'
2020-09-24 20:51:59 +08:00
export IPT_LIB_DIR='/%{_lib}/xtables'
2019-09-30 10:53:19 -04:00
%configure
%make_build
%install
export CONFDIR='%{_sysconfdir}/iproute2'
export SBINDIR='%{_sbindir}'
export LIBDIR='%{_libdir}'
export DOCDIR='%{_docdir}'
%make_install
install -m 0755 -d %{buildroot}%{_includedir}
install -m 0644 include/libnetlink.h %{buildroot}%{_includedir}/libnetlink.h
install -m 0644 lib/libnetlink.a %{buildroot}%{_libdir}/libnetlink.a
%files
%defattr(-,root,root)
%license COPYING
2020-01-14 17:33:16 +08:00
%doc README
2019-09-30 10:53:19 -04:00
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/iproute2/*
%{_sbindir}/*
%{_libdir}/tc/*
2020-07-22 19:27:33 +08:00
%{_datadir}/bash-completion/completions/*
2019-09-30 10:53:19 -04:00
%files devel
%defattr(-,root,root)
%license COPYING
%{_libdir}/libnetlink.a
%{_includedir}/*
%files help
%defattr(-,root,root)
2020-01-14 17:33:16 +08:00
%doc README
2019-09-30 10:53:19 -04:00
%{_mandir}/*
%changelog
* Mon Aug 02 2021 chenyanpanHW <chenyanpan@huawei.com> - 5.10.0-2
- DESC: delete -S git from %autosetup, and delete BuildRequires git
2021-01-26 15:38:53 +08:00
* Tue Jan 26 2021 xihaochen<xihaochen@huawei.com> - 5.10.0-1
- Type:requirements
- ID:NA
- SUG:NA
- DESC: update iproute to 5.10.0
2020-12-10 09:13:02 +08:00
* Thu Dec 10 2020 zhouyihang <zhouyihang3@huawei.com> - 5.7.0-3
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:modify fix of get_tc_lib err
2020-09-24 20:51:59 +08:00
* Tue Sep 24 2020 zhouyihang <zhouyihang3@huawei.com> - 5.7.0-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:fix get_tc_lib err
2020-07-22 19:27:33 +08:00
* Wed Jul 22 2020 hanzhijun <hanzhijun1@huawei.com> - 5.7.0-1
- update to 5.7.0
2020-01-20 22:46:18 +08:00
* Mon Jan 20 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.4.0-2
- fix maddr show and change proc to ipnetnsproc
2020-01-14 17:33:16 +08:00
* Tue Jan 14 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.4.0-1
- update to 5.4.0
2019-11-06 19:33:52 +08:00
* Fri Oct 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.2.0-2
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:add the bugfix about iproute
2019-09-30 10:53:19 -04:00
* Thu Sep 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 5.2.0-1
- Package init