Compare commits

...

No commits in common. "imports/c8-beta/libnl3-3.4.0-4.el8" and "c8" have entirely different histories.

3 changed files with 26 additions and 16 deletions

4
.gitignore vendored
View File

@ -1,2 +1,2 @@
SOURCES/libnl-3.4.0.tar.gz
SOURCES/libnl-doc-3.4.0.tar.gz
SOURCES/libnl-3.7.0.tar.gz
SOURCES/libnl-doc-3.7.0.tar.gz

View File

@ -1,2 +1,2 @@
4fc4c3b6812dc7e68ef8acb69287583685266a0b SOURCES/libnl-3.4.0.tar.gz
96c58cb6a5490f6c68838b74f68ec1d7d9a0eb54 SOURCES/libnl-doc-3.4.0.tar.gz
34c0fa84005b1522175d42165f6e885f75b1b8e3 SOURCES/libnl-3.7.0.tar.gz
ed296fd3341d3f90912a01bb77d539c19ca666f3 SOURCES/libnl-doc-3.7.0.tar.gz

View File

@ -1,6 +1,6 @@
Name: libnl3
Version: 3.4.0
Release: 4%{?dist}
Version: 3.7.0
Release: 1%{?dist}
Summary: Convenience library for kernel netlink sockets
Group: Development/Libraries
License: LGPLv2
@ -14,8 +14,11 @@ Source1: http://www.infradead.org/~tgr/libnl/files/libnl-doc-%{fullversion}.tar.
#Patch1: some.patch
BuildRequires: flex bison
BuildRequires: libtool autoconf automake
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: flex
BuildRequires: libtool
BuildRequires: swig
%if 0%{?rhel} > 7
@ -67,7 +70,7 @@ Requires: %{name} = %{version}-%{release}
%description -n python2-libnl3
Python 2 bindings for libnl3
%endif # with python2
%endif
%package -n python3-libnl3
Summary: libnl3 binding for Python 3
@ -80,9 +83,7 @@ Requires: %{name} = %{version}-%{release}
Python 3 bindings for libnl3
%prep
%setup -q -n libnl-%{fullversion}
#%patch1 -p1
%autosetup -p1 -n libnl-%{fullversion}
tar -xzf %SOURCE1
@ -99,7 +100,7 @@ CFLAGS="$RPM_OPT_FLAGS" %py3_build
%if %{with python2}
CFLAGS="$RPM_OPT_FLAGS" %py2_build
CFLAGS="$RPM_OPT_FLAGS" %py2_build
%endif # with python2
%endif
popd
%install
@ -111,7 +112,7 @@ pushd ./python/
%py3_install
%if %{with python2}
%py2_install
%endif # with python2
%endif
popd
%check
@ -121,7 +122,7 @@ pushd ./python/
%{__python3} setup.py check
%if %{with python2}
%{__python2} setup.py check
%endif # with python2
%endif
popd
%post -p /sbin/ldconfig
@ -164,7 +165,7 @@ popd
%defattr(-,root,root,-)
%{python2_sitearch}/netlink
%{python2_sitearch}/netlink-*.egg-info
%endif # with python2
%endif
%files -n python3-libnl3
%defattr(-,root,root,-)
@ -172,6 +173,15 @@ popd
%{python3_sitearch}/netlink-*.egg-info
%changelog
* Wed Jul 6 2022 Thomas Haller <thaller@redhat.com> - 3.7.0-1
- Update to 3.7.0 (rh #2078874)
* Tue Nov 26 2019 Thomas Haller <thaller@redhat.com> - 3.5.0-1
- Update to 3.5.0
* Tue Aug 27 2019 Thomas Haller <thaller@redhat.com> - 3.4.0-5
- Fix issues found by coverity (rh #1606988)
* Fri Mar 16 2018 Charalampos Stratakis <cstratak@redhat.com> - 3.4.0-4
- Conditionalize the Python 2 subpackage