Blame SPECS/python-kmod.spec

ff48b2
%if 0%{?rhel} > 7
ff48b2
# Disable python2 build by default
ff48b2
%bcond_with python2
ff48b2
%else
ff48b2
%bcond_without python2
ff48b2
%endif
ff48b2
ff48b2
Name:           python-kmod
ff48b2
License:        LGPLv2+
ff48b2
Group:          Development/Libraries
ff48b2
Summary:        Python module to work with kernel modules
ff48b2
Version:        0.9
ff48b2
Release:        20%{?dist}
ff48b2
URL:            https://github.com/agrover/python-kmod/
ff48b2
Source0:        https://github.com/downloads/agrover/%{name}/%{name}-%{version}.tar.gz
ff48b2
ff48b2
ff48b2
%if %{with python2}
ff48b2
BuildRequires:  python2-devel
ff48b2
BuildRequires:  python2-setuptools
ff48b2
BuildRequires:  python2-Cython
ff48b2
%endif # with python2
ff48b2
ff48b2
BuildRequires:  python3-devel
ff48b2
BuildRequires:  python3-setuptools
ff48b2
BuildRequires:  python3-Cython
ff48b2
ff48b2
BuildRequires:  kmod-devel
ff48b2
ff48b2
%if %{with python2}
ff48b2
%{?filter_setup:
ff48b2
%filter_provides_in %{python2_sitearch}.*\.so$
ff48b2
%filter_setup
ff48b2
}
ff48b2
%endif # with python2
ff48b2
ff48b2
%global _description\
ff48b2
Python module to allow listing, loading, and unloading\
ff48b2
Linux kernel modules, using libkmod.
ff48b2
ff48b2
%description %_description
ff48b2
ff48b2
%if %{with python2}
ff48b2
%package -n python2-kmod
ff48b2
Summary: %summary
ff48b2
%{?python_provide:%python_provide python2-kmod}
ff48b2
ff48b2
%description -n python2-kmod %_description
ff48b2
%endif # with python2
ff48b2
ff48b2
%package -n python3-kmod
ff48b2
Group:          Development/Libraries
ff48b2
Summary:        Python module to work with kernel modules
ff48b2
%{?python_provide:%python_provide python3-kmod}
ff48b2
ff48b2
%description -n python3-kmod
ff48b2
Python module to allow listing, loading, and unloading
ff48b2
Linux kernel modules, using libkmod.
ff48b2
ff48b2
%prep
ff48b2
%setup -q
ff48b2
ff48b2
%build
ff48b2
%if %{with python2}
ff48b2
%py2_build
ff48b2
%endif # with python2
ff48b2
%py3_build
ff48b2
ff48b2
%install
ff48b2
%if %{with python2}
ff48b2
%py2_install
ff48b2
%endif # with python2
ff48b2
%py3_install
ff48b2
ff48b2
%if %{with python2}
ff48b2
%files -n python2-kmod
ff48b2
%{python2_sitearch}/kmod/
ff48b2
%{python2_sitearch}/kmod*.egg-info
ff48b2
%doc README
ff48b2
%license COPYING.LESSER
ff48b2
%endif # with python2
ff48b2
ff48b2
%files -n python3-kmod
ff48b2
%{python3_sitearch}/kmod/
ff48b2
%{python3_sitearch}/kmod*.egg-info
ff48b2
%doc README
ff48b2
%license COPYING.LESSER
ff48b2
ff48b2
%changelog
ff48b2
* Fri Jun 08 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.9-20
ff48b2
- Conditionalize the python2 subpackage
ff48b2
ff48b2
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-19
ff48b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ff48b2
ff48b2
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.9-18
ff48b2
- Update Python 2 dependency declarations to new packaging standards
ff48b2
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
ff48b2
ff48b2
* Wed Jan 03 2018 Lumír Balhar <lbalhar@redhat.com> - 0.9-17
ff48b2
- Fix directory ownership
ff48b2
ff48b2
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.9-16
ff48b2
- Python 2 binary package renamed to python2-kmod
ff48b2
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
ff48b2
ff48b2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-15
ff48b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ff48b2
ff48b2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-14
ff48b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ff48b2
ff48b2
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.9-13
ff48b2
- Rebuild due to bug in RPM (RHBZ #1468476)
ff48b2
ff48b2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-12
ff48b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ff48b2
ff48b2
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9-11
ff48b2
- Rebuild for Python 3.6
ff48b2
ff48b2
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-10
ff48b2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
ff48b2
ff48b2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9-9
ff48b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ff48b2
ff48b2
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-8
ff48b2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
ff48b2
ff48b2
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-7
ff48b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ff48b2
ff48b2
* Thu Oct 30 2014 Andy Grover <agrover@redhat.com> - 0.9-6
ff48b2
- Initial Python 3 support
ff48b2
ff48b2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-5
ff48b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ff48b2
ff48b2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-4
ff48b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ff48b2
ff48b2
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
ff48b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ff48b2
ff48b2
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
ff48b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ff48b2
ff48b2
* Mon Oct 22 2012 Andy Grover <agrover@redhat.com> - 0.9-1
ff48b2
- Update for new upstream release
ff48b2
- Add build dep on Cython
ff48b2
ff48b2
* Wed Aug 1 2012 Andy Grover <agrover@redhat.com> - 0.1-4
ff48b2
- Update for new upstream release location
ff48b2
ff48b2
* Fri May 4 2012 Andy Grover <agrover@redhat.com> - 0.1-3
ff48b2
- Update for new upstream release location
ff48b2
ff48b2
* Tue Apr 17 2012 Andy Grover <agrover@redhat.com> - 0.1-2
ff48b2
- Correct License field to LGPLv2+
ff48b2
- Remove explicit Requires for kmod-libs
ff48b2
ff48b2
* Thu Apr 12 2012 Andy Grover <agrover@redhat.com> - 0.1-1
ff48b2
- Initial packaging