Compare commits

...

No commits in common. "c8" and "c10s" have entirely different histories.
c8 ... c10s

5 changed files with 199 additions and 73 deletions

53
.gitignore vendored
View File

@ -1,2 +1,51 @@
SOURCES/libnl-3.7.0.tar.gz
SOURCES/libnl-doc-3.7.0.tar.gz
/libnl-3.2.6.tar.gz
/libnl-3.2.19.tar.gz
/libnl-doc-3.2.19.tar.gz
/libnl-3.2.20.tar.gz
/libnl-doc-3.2.20.tar.gz
/libnl-3.2.21.tar.gz
/libnl-doc-3.2.21.tar.gz
/libnl-3.2.22.tar.gz
/libnl-doc-3.2.22.tar.gz
/libnl-3.2.24.tar.gz
/libnl-doc-3.2.24.tar.gz
/libnl-3.2.25-rc1.tar.gz
/libnl-doc-3.2.25-rc1.tar.gz
/libnl-3.2.25.tar.gz
/libnl-doc-3.2.25.tar.gz
/libnl-3.2.26-rc1.tar.gz
/libnl-doc-3.2.26-rc1.tar.gz
/libnl-3.2.26.tar.gz
/libnl-doc-3.2.26.tar.gz
/libnl-3.2.27-rc1.tar.gz
/libnl-doc-3.2.27-rc1.tar.gz
/libnl-3.2.27.tar.gz
/libnl-doc-3.2.27.tar.gz
/libnl-3.2.28-rc1.tar.gz
/libnl-doc-3.2.28-rc1.tar.gz
/libnl-3.2.28.tar.gz
/libnl-doc-3.2.28.tar.gz
/libnl-3.2.29-rc1.tar.gz
/libnl-doc-3.2.29-rc1.tar.gz
/libnl-doc-3.2.29.tar.gz
/libnl-3.2.29.tar.gz
/libnl-3.3.0-rc1.tar.gz
/libnl-doc-3.3.0-rc1.tar.gz
/libnl-3.3.0.tar.gz
/libnl-doc-3.3.0.tar.gz
/libnl-3.4.0-rc1.tar.gz
/libnl-doc-3.4.0-rc1.tar.gz
/libnl-3.4.0.tar.gz
/libnl-doc-3.4.0.tar.gz
/libnl-3.5.0.tar.gz
/libnl-doc-3.5.0.tar.gz
/libnl-3.6.0.tar.gz
/libnl-doc-3.6.0.tar.gz
/libnl-3.7.0.tar.gz
/libnl-doc-3.7.0.tar.gz
/libnl-3.8.0.tar.gz
/libnl-doc-3.8.0.tar.gz
/libnl-3.9.0.tar.gz
/libnl-doc-3.9.0.tar.gz
/libnl-3.11.0.tar.gz
/libnl-doc-3.11.0.tar.gz

View File

@ -1,2 +0,0 @@
34c0fa84005b1522175d42165f6e885f75b1b8e3 SOURCES/libnl-3.7.0.tar.gz
ed296fd3341d3f90912a01bb77d539c19ca666f3 SOURCES/libnl-doc-3.7.0.tar.gz

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- rhel-10
decision_context: osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}

View File

@ -1,19 +1,25 @@
Name: libnl3
Version: 3.7.0
Version: 3.11.0
Release: 1%{?dist}
Summary: Convenience library for kernel netlink sockets
Group: Development/Libraries
License: LGPLv2
License: LGPL-2.1-only
URL: http://www.infradead.org/~tgr/libnl/
%define rcversion %{nil}
%define fullversion %{version}%{rcversion}
%global version_path libnl%(echo %{version} | tr . _)
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
%if 0%{?rhel} > 8
# Disable python3 build by default
%bcond_with python3
%else
%bcond_without python3
%endif
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
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
@ -21,21 +27,15 @@ BuildRequires: flex
BuildRequires: libtool
BuildRequires: swig
%if 0%{?rhel} > 7
# Disable python2 build by default
%bcond_with python2
%else
%bcond_without python2
%endif
%description
This package contains a convenience library to simplify
using the Linux kernel's netlink sockets interface for
network manipulation
%package devel
Summary: Libraries and headers for using libnl3
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: %{name}-cli = %{version}-%{release}
Requires: kernel-headers
@ -43,144 +43,215 @@ Requires: kernel-headers
%description devel
This package contains various headers for using libnl3
%package cli
Summary: Command line interface utils for libnl3
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description cli
This package contains various libnl3 utils and additional
libraries on which they depend
%package doc
Summary: API documentation for libnl3
Group: Documentation
Requires: %{name} = %{version}-%{release}
%description doc
This package contains libnl3 API documentation
%if %{with python2}
%package -n python2-libnl3
%{?python_provide:%python_provide python2-libnl3}
Summary: libnl3 binding for Python 2
BuildRequires: python2-devel
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description -n python2-libnl3
Python 2 bindings for libnl3
%endif
%if %{with python3}
%package -n python3-libnl3
Summary: libnl3 binding for Python 3
%{?python_provide:%python_provide python3-libnl3}
BuildRequires: python3-devel
Group: Development/Libraries
BuildRequires: python3-setuptools
BuildRequires: make
Requires: %{name} = %{version}-%{release}
%description -n python3-libnl3
Python 3 bindings for libnl3
%endif
%prep
%autosetup -p1 -n libnl-%{fullversion}
%autosetup -p1 -n libnl-%{version}
tar -xzf %SOURCE1
%build
autoreconf -vif
%configure --disable-static
%configure
make %{?_smp_mflags}
%if %{with python3}
pushd ./python/
# build twice, otherwise capi.py is not copied to the build directory.
CFLAGS="$RPM_OPT_FLAGS" %py3_build
CFLAGS="$RPM_OPT_FLAGS" %py3_build
%if %{with python2}
CFLAGS="$RPM_OPT_FLAGS" %py2_build
CFLAGS="$RPM_OPT_FLAGS" %py2_build
%endif
popd
%endif
%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name \*.la -delete
%if %{with python3}
pushd ./python/
%py3_install
%if %{with python2}
%py2_install
%endif
popd
%endif
%check
make check
%if %{with python3}
pushd ./python/
%{__python3} setup.py check
%if %{with python2}
%{__python2} setup.py check
%endif
popd
%endif
%post -p /sbin/ldconfig
%post cli -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%postun cli -p /sbin/ldconfig
%ldconfig_scriptlets
%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/*
%if %{with python2}
%files -n python2-libnl3
%defattr(-,root,root,-)
%{python2_sitearch}/netlink
%{python2_sitearch}/netlink-*.egg-info
%endif
%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
%defattr(-,root,root,-)
%{python3_sitearch}/netlink
%{python3_sitearch}/netlink-*.egg-info
%endif
%changelog
* Tue Nov 12 2024 Thomas Haller <thaller@redhat.com> - 3.11.0-1
- Update to 3.11.0 release
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 3.9.0-5
- Bump release for October 2024 mass rebuild:
Resolves: RHEL-64018
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 3.9.0-4
- Bump release for June 2024 mass rebuild
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Dec 4 2023 Thomas Haller <thaller@redhat.com> - 3.9.0-1
- Update to 3.9.0 release
* Mon Oct 30 2023 Thomas Haller <thaller@redhat.com> - 3.8.0-2
- Use SPDX license identifier in package
* Tue Aug 29 2023 Thomas Haller <thaller@redhat.com> - 3.8.0-1
- Update to 3.8.0 release
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.7.0-4
- Rebuilt for Python 3.12
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed Jul 6 2022 Thomas Haller <thaller@redhat.com> - 3.7.0-1
- Update to 3.7.0 (rh #2078874)
- Update to 3.7.0 release
* Tue Nov 26 2019 Thomas Haller <thaller@redhat.com> - 3.5.0-1
- Update to 3.5.0
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.6.0-4
- Rebuilt for Python 3.11
* Tue Aug 27 2019 Thomas Haller <thaller@redhat.com> - 3.4.0-5
- Fix issues found by coverity (rh #1606988)
* 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
- route: fix crash parsing multihop route (rh #2081279)
* Fri Apr 15 2022 Thomas Haller <thaller@redhat.com> - 3.6.0-1
- Update to 3.6.0 release
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.5.0-7
- Rebuilt for Python 3.10
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-5
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.5.0-3
- Rebuilt for Python 3.9
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sun Sep 1 2019 Thomas Haller <thaller@redhat.com> - 3.5.0-1
- Update to 3.5.0 release
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.4.0-10
- Rebuilt for Python 3.8
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Jan 15 2019 Miro Hrončok <mhroncok@redhat.com> - 3.4.0-7
- Subpackage python2-libnl3 has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.4.0-5
- Rebuilt for Python 3.7
* Fri Mar 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.4.0-4
- Conditionalize the Python 2 subpackage

2
sources Normal file
View File

@ -0,0 +1,2 @@
SHA512 (libnl-3.11.0.tar.gz) = 69ecec6e792fc7b9c443fff8742cf45782af5c5c4664687440942eaeb616ba7b4ed2b606e33c5d86e44e6b49a9c79a1fed4b7c77781a059e13cf6a844d94530e
SHA512 (libnl-doc-3.11.0.tar.gz) = 876ade052e91d5ad39eebbd2d685f82cf67210f3a1bcb62dfb82548fe65bbffa9da2581135bba541d8c3dc56e3488cfb1e290416eb32a3d87b37ece5c93c340a