libnl3/libnl3.spec

274 lines
8.0 KiB
RPMSpec
Raw Normal View History

Name: libnl3
2016-12-12 21:20:13 +00:00
Version: 3.2.29
2016-12-19 17:20:36 +00:00
Release: 0.3%{?dist}
2012-01-19 17:23:57 +00:00
Summary: Convenience library for kernel netlink sockets
Group: Development/Libraries
License: LGPLv2
URL: http://www.infradead.org/~tgr/libnl/
2016-12-12 21:20:13 +00:00
%define fullversion %{version}-rc1
2014-07-04 15:31:59 +00:00
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
Patch1: 0001-macsec-sci-endianness.patch
2012-01-19 17:23:57 +00:00
BuildRequires: flex bison
BuildRequires: python
BuildRequires: libtool autoconf automake
BuildRequires: swig
BuildRequires: python2-devel
BuildRequires: python3-devel
2012-01-19 17:23:57 +00:00
%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
%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
%package -n python-libnl3
Summary: libnl3 binding for Python 2
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description -n python-libnl3
Python 2 bindings for libnl3
%package -n python3-libnl3
Summary: libnl3 binding for Python 3
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description -n python3-libnl3
Python 3 bindings for libnl3
2012-01-19 17:23:57 +00:00
%prep
2014-07-04 15:31:59 +00:00
%setup -q -n libnl-%{fullversion}
%patch1 -p1
2013-01-20 10:20:59 +00:00
2012-10-30 18:00:51 +00:00
tar -xzf %SOURCE1
2012-01-19 17:23:57 +00:00
%build
autoreconf -vif
2012-01-19 17:23:57 +00:00
%configure --disable-static
make %{?_smp_mflags}
pushd ./python/
# build twice, otherwise capi.py is not copied to the build directory.
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build
popd
2012-01-19 17:23:57 +00:00
%install
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name \*.la -delete
pushd ./python/
%{__python3} setup.py install --skip-build --root "$RPM_BUILD_ROOT"
%{__python2} setup.py install --skip-build --root "$RPM_BUILD_ROOT"
popd
2015-01-05 10:03:49 +00:00
%check
make check
pushd ./python/
%{__python3} setup.py check
%{__python2} setup.py check
popd
2012-01-19 17:23:57 +00:00
%post -p /sbin/ldconfig
%post cli -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%postun cli -p /sbin/ldconfig
%files
%doc COPYING
%exclude %{_libdir}/libnl-cli*.so.*
%{_libdir}/libnl-*.so.*
%config(noreplace) %{_sysconfdir}/*
%files devel
%doc COPYING
%{_includedir}/libnl3/netlink/
%dir %{_includedir}/libnl3/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files cli
%doc COPYING
%{_libdir}/libnl-cli*.so.*
%{_libdir}/libnl/
2015-03-30 11:46:08 +00:00
%{_bindir}/*
%{_mandir}/man8/*
2012-01-19 17:23:57 +00:00
%files doc
%doc COPYING
2014-07-04 15:31:59 +00:00
%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/*
2012-01-19 17:23:57 +00:00
%files -n python-libnl3
%defattr(-,root,root,-)
%{python2_sitearch}/netlink
%{python2_sitearch}/netlink-*.egg-info
%files -n python3-libnl3
%defattr(-,root,root,-)
%{python3_sitearch}/netlink
%{python3_sitearch}/netlink-*.egg-info
2012-01-19 17:23:57 +00:00
%changelog
2016-12-19 17:20:36 +00:00
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 3.2.29-0.3
- Rebuild for Python 3.6
* Fri Dec 16 2016 Thomas Haller <thaller@redhat.com> - 3.2.29-0.2
- macsec: fix endianness for MACSec's 'sci' parameter
2016-12-12 21:20:13 +00:00
* Mon Dec 12 2016 Thomas Haller <thaller@redhat.com> - 3.2.29-0.1
- Update to 3.2.29-rc1
* Fri Aug 26 2016 Thomas Haller <thaller@redhat.com> - 3.2.28-3
- route: fix nl_object_identical() comparing AF_INET addresses (rh #1370526)
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.28-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2016-07-09 07:52:57 +00:00
* Sat Jul 9 2016 Thomas Haller <thaller@redhat.com> - 3.2.28-1
- Update to 3.2.28
2016-06-30 11:39:08 +00:00
* Thu Jun 30 2016 Thomas Haller <thaller@redhat.com> - 3.2.28-0.1
- Update to 3.2.28-rc1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.27-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.27-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
2015-10-16 16:33:07 +00:00
* Fri Oct 16 2015 Thomas Haller <thaller@redhat.com> - 3.2.27-1
- Update to 3.2.27
2015-09-21 11:02:39 +00:00
* Mon Sep 21 2015 Thomas Haller <thaller@redhat.com> - 3.2.27-0.1
- Update to 3.2.27-rc1
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.26-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2015-03-30 11:46:08 +00:00
* Mon Mar 30 2015 Thomas Haller <thaller@redhat.com> - 3.2.26-4
- Update to 3.2.26
- cli package brings more commands and installs them to /bin
* Mon Mar 9 2015 Thomas Haller <thaller@redhat.com> - 3.2.26-3
- Update to 3.2.26-rc1
- fix broken symbols from 3.2.26-1
- backport upstream fix for nl_socket_set_fd()
2015-03-07 07:51:59 +00:00
* Sat Mar 7 2015 Thomas Haller <thaller@redhat.com> - 3.2.26-2
- Revert update to 3.2.26-rc1 to previous 3.2.25-6
2015-03-06 08:34:42 +00:00
* Fri Mar 6 2015 Thomas Haller <thaller@redhat.com> - 3.2.26-1
- Update to 3.2.26-rc1
2015-03-06 08:34:42 +00:00
* Tue Feb 3 2015 Thomas Haller <thaller@redhat.com> - 3.2.25-6
- add new packages with language bindings for Python 2 and Python 3 (rh #1167112)
* Tue Dec 9 2014 Thomas Haller <thaller@redhat.com> - 3.2.25-5
- Add support for IPv6 link local address generation
* Fri Oct 10 2014 Lubomir Rintel <lkundrak@v3.sk> - 3.2.25-4
- Add support for IPv6 tokenized interface identifiers
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.25-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2014-07-16 10:28:37 +00:00
* Wed Jul 16 2014 Thomas Haller <thaller@redhat.com> 3.2.25-2
- Update to 3.2.25
2014-07-16 10:28:37 +00:00
2014-07-04 15:31:59 +00:00
* Fri Jul 4 2014 Thomas Haller <thaller@redhat.com> 3.2.25-1
- Update to 3.2.25-rc1
2014-07-04 15:31:59 +00:00
* Sun Jun 8 2014 Peter Robinson <pbrobinson@fedoraproject.org> 3.2.24-5
- Run autoreconf for new automake, cleanup spec
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.24-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Thu May 22 2014 Thomas Haller <thaller@redhat.com> - 3.2.24-3
- add nl_has_capability() function
- retry local port on ADDRINUSE (rh #1097175)
- python: fix passing wrong argument in netlink/core.py
- fix return value of nl_rtgen_request()
- fix nl_msec2str()
- fix crash in rtnl_act_msg_parse()
- fix rtnl_route_build_msg() not to guess the route scope if RT_SCOPE_NOWHERE
* Fri Apr 4 2014 Thomas Haller <thaller@redhat.com> - 3.2.24-2
- fix breaking on older kernels due to IFA_FLAGS attribute (rh #1063885)
* Thu Jan 23 2014 Thomas Haller <thaller@redhat.com> - 3.2.24-1
- Update to 3.2.24 (rhbz#963111)
* Mon Sep 23 2013 Paul Wouters <pwouters@redhat.com> - 3.2.22-2
- Update to 3.2.22 (rhbz#963111)
- Add patch for double tree crasher in rtnl_link_set_address_family()
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.21-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2013-01-25 08:39:07 +00:00
* Fri Jan 25 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.21-1
- Update to 3.2.21
2013-01-23 11:07:06 +00:00
* Wed Jan 23 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.20-1
- Update to 3.2.20
2013-01-20 10:20:59 +00:00
* Sun Jan 20 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.19-2
- Age fix
2013-01-17 13:32:38 +00:00
* Thu Jan 17 2013 Jiri Pirko <jpirko@redhat.com> - 3.2.19-1
- Update to 3.2.19
2012-10-30 18:00:51 +00:00
* Tue Oct 30 2012 Dan Williams <dcbw@redhat.com> - 3.2.14-1
- Update to 3.2.14
2012-09-17 21:39:57 +00:00
* Mon Sep 17 2012 Dan Williams <dcbw@redhat.com> - 3.2.13-1
- Update to 3.2.13
2012-02-11 01:10:36 +00:00
* Fri Feb 10 2012 Dan Williams <dcbw@redhat.com> - 3.2.7-1
- Update to 3.2.7
2012-01-19 17:23:57 +00:00
* Tue Jan 17 2012 Jiri Pirko <jpirko@redhat.com> - 3.2.6-1
- Initial build