Update libnl3.spec
[thaller@redhat.com: rebased and adjusted original patch] https://src.fedoraproject.org/rpms/libnl3/pull-request/5
This commit is contained in:
parent
3d8269aa53
commit
4e1fa1ce93
37
libnl3.spec
37
libnl3.spec
@ -1,12 +1,11 @@
|
|||||||
Name: libnl3
|
Name: libnl3
|
||||||
Version: 3.6.0
|
Version: 3.6.0
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Convenience library for kernel netlink sockets
|
Summary: Convenience library for kernel netlink sockets
|
||||||
License: LGPLv2
|
License: LGPLv2
|
||||||
URL: http://www.infradead.org/~tgr/libnl/
|
URL: http://www.infradead.org/~tgr/libnl/
|
||||||
|
|
||||||
%define rcversion %{nil}
|
%global version_path libnl%(echo %{version} | tr . _)
|
||||||
%define fullversion %{version}%{rcversion}
|
|
||||||
|
|
||||||
%if 0%{?rhel} > 8
|
%if 0%{?rhel} > 8
|
||||||
# Disable python3 build by default
|
# Disable python3 build by default
|
||||||
@ -15,8 +14,8 @@ URL: http://www.infradead.org/~tgr/libnl/
|
|||||||
%bcond_without python3
|
%bcond_without python3
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Source: http://www.infradead.org/~tgr/libnl/files/libnl-%{fullversion}.tar.gz
|
Source0: https://github.com/thom311/libnl/releases/download/%{version_path}/libnl-%{version}.tar.gz
|
||||||
Source1: http://www.infradead.org/~tgr/libnl/files/libnl-doc-%{fullversion}.tar.gz
|
Source1: https://github.com/thom311/libnl/releases/download/%{version_path}/libnl-doc-%{version}.tar.gz
|
||||||
|
|
||||||
#Patch1: some.patch
|
#Patch1: some.patch
|
||||||
Patch1: 0001-route-fix-crash-caused-by-parse_multipath-by-wrong-f.patch
|
Patch1: 0001-route-fix-crash-caused-by-parse_multipath-by-wrong-f.patch
|
||||||
@ -76,7 +75,7 @@ Python 3 bindings for libnl3
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n libnl-%{fullversion}
|
%autosetup -p1 -n libnl-%{version}
|
||||||
|
|
||||||
tar -xzf %SOURCE1
|
tar -xzf %SOURCE1
|
||||||
|
|
||||||
@ -117,35 +116,35 @@ popd
|
|||||||
%ldconfig_scriptlets cli
|
%ldconfig_scriptlets cli
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc COPYING
|
%license COPYING
|
||||||
%exclude %{_libdir}/libnl-cli*.so.*
|
%exclude %{_libdir}/libnl-cli*.so.*
|
||||||
%exclude %{_libdir}/libnl*-3.a
|
%exclude %{_libdir}/libnl*-3.a
|
||||||
%{_libdir}/libnl-*.so.*
|
%{_libdir}/libnl-*.so.*
|
||||||
%config(noreplace) %{_sysconfdir}/*
|
%config(noreplace) %{_sysconfdir}/*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc COPYING
|
%license COPYING
|
||||||
%{_includedir}/libnl3/netlink/
|
%{_includedir}/libnl3/netlink/
|
||||||
%dir %{_includedir}/libnl3/
|
%dir %{_includedir}/libnl3/
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
%{_libdir}/pkgconfig/*.pc
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%files cli
|
%files cli
|
||||||
%doc COPYING
|
%license COPYING
|
||||||
%{_libdir}/libnl-cli*.so.*
|
%{_libdir}/libnl-cli*.so.*
|
||||||
%{_libdir}/libnl/
|
%{_libdir}/libnl/
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
%{_mandir}/man8/*
|
%{_mandir}/man8/*
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc COPYING
|
%license COPYING
|
||||||
%doc libnl-doc-%{fullversion}/*.html
|
%doc libnl-doc-%{version}/*.html
|
||||||
%doc libnl-doc-%{fullversion}/*.css
|
%doc libnl-doc-%{version}/*.css
|
||||||
%doc libnl-doc-%{fullversion}/stylesheets/*
|
%doc libnl-doc-%{version}/stylesheets/*
|
||||||
%doc libnl-doc-%{fullversion}/images/*
|
%doc libnl-doc-%{version}/images/*
|
||||||
%doc libnl-doc-%{fullversion}/images/icons/*
|
%doc libnl-doc-%{version}/images/icons/*
|
||||||
%doc libnl-doc-%{fullversion}/images/icons/callouts/*
|
%doc libnl-doc-%{version}/images/icons/callouts/*
|
||||||
%doc libnl-doc-%{fullversion}/api/*
|
%doc libnl-doc-%{version}/api/*
|
||||||
|
|
||||||
%if %{with python3}
|
%if %{with python3}
|
||||||
%files -n python3-libnl3
|
%files -n python3-libnl3
|
||||||
@ -154,6 +153,10 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 6 2022 Till Maas <opensource@till.name> - 3.6.0-3
|
||||||
|
- Fix URLs (rh #1541407)
|
||||||
|
- Cleanup specfile
|
||||||
|
|
||||||
* Fri May 6 2022 Thomas Haller <thaller@redhat.com> - 3.6.0-2
|
* Fri May 6 2022 Thomas Haller <thaller@redhat.com> - 3.6.0-2
|
||||||
- route: fix crash parsing multihop route (rh #2081279)
|
- route: fix crash parsing multihop route (rh #2081279)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user