Update libnl3.spec

[thaller@redhat.com: rebased and adjusted original patch]

https://src.fedoraproject.org/rpms/libnl3/pull-request/5
(cherry picked from commit 4e1fa1ce93)
This commit is contained in:
Till Maas 2020-10-23 19:22:00 +00:00 committed by Thomas Haller
parent 08bcfcaecf
commit 3c9e08c75f

View File

@ -5,8 +5,7 @@ Summary: Convenience library for kernel netlink sockets
License: LGPLv2
URL: http://www.infradead.org/~tgr/libnl/
%define rcversion %{nil}
%define fullversion %{version}%{rcversion}
%global version_path libnl%(echo %{version} | tr . _)
%if 0%{?rhel} > 8
# Disable python3 build by default
@ -15,8 +14,8 @@ URL: http://www.infradead.org/~tgr/libnl/
%bcond_without python3
%endif
Source: http://www.infradead.org/~tgr/libnl/files/libnl-%{fullversion}.tar.gz
Source1: http://www.infradead.org/~tgr/libnl/files/libnl-doc-%{fullversion}.tar.gz
Source0: https://github.com/thom311/libnl/releases/download/%{version_path}/libnl-%{version}.tar.gz
Source1: https://github.com/thom311/libnl/releases/download/%{version_path}/libnl-doc-%{version}.tar.gz
#Patch1: some.patch
@ -75,7 +74,7 @@ Python 3 bindings for libnl3
%endif
%prep
%autosetup -p1 -n libnl-%{fullversion}
%autosetup -p1 -n libnl-%{version}
tar -xzf %SOURCE1
@ -116,35 +115,35 @@ popd
%ldconfig_scriptlets cli
%files
%doc COPYING
%license COPYING
%exclude %{_libdir}/libnl-cli*.so.*
%exclude %{_libdir}/libnl*-3.a
%{_libdir}/libnl-*.so.*
%config(noreplace) %{_sysconfdir}/*
%files devel
%doc COPYING
%license COPYING
%{_includedir}/libnl3/netlink/
%dir %{_includedir}/libnl3/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files cli
%doc COPYING
%license COPYING
%{_libdir}/libnl-cli*.so.*
%{_libdir}/libnl/
%{_bindir}/*
%{_mandir}/man8/*
%files doc
%doc COPYING
%doc libnl-doc-%{fullversion}/*.html
%doc libnl-doc-%{fullversion}/*.css
%doc libnl-doc-%{fullversion}/stylesheets/*
%doc libnl-doc-%{fullversion}/images/*
%doc libnl-doc-%{fullversion}/images/icons/*
%doc libnl-doc-%{fullversion}/images/icons/callouts/*
%doc libnl-doc-%{fullversion}/api/*
%license COPYING
%doc libnl-doc-%{version}/*.html
%doc libnl-doc-%{version}/*.css
%doc libnl-doc-%{version}/stylesheets/*
%doc libnl-doc-%{version}/images/*
%doc libnl-doc-%{version}/images/icons/*
%doc libnl-doc-%{version}/images/icons/callouts/*
%doc libnl-doc-%{version}/api/*
%if %{with python3}
%files -n python3-libnl3