Blame SPECS/dnf-plugin-spacewalk.spec

051232
%if 0%{?fedora} || 0%{?rhel} >= 8
051232
%global build_py3   1
051232
%global default_py3 1
051232
%endif
051232
051232
%if ( 0%{?fedora} && 0%{?fedora} < 28 ) || ( 0%{?rhel} && 0%{?rhel} < 8 )
051232
%global build_py2   1
051232
%endif
051232
051232
%define pythonX %{?default_py3: python3}%{!?default_py3: python2}
051232
051232
Summary: DNF plugin for Spacewalk
051232
Name: dnf-plugin-spacewalk
051232
Version: 2.8.5
051232
Release: 9%{?dist}
051232
License: GPLv2
051232
Source0: https://github.com/spacewalkproject/spacewalk/archive/%{name}-%{version}.tar.gz
051232
Patch0: dnf-plugin-spacewalk-2.8.5-1-to-dnf-plugin-spacewalk-2.8.5-2-el8.patch
051232
Patch1: dnf-plugin-spacewalk-2.8.5-2-el8-to-dnf-plugin-spacewalk-2.8.5-3-el8.patch
051232
Patch2: dnf-plugin-spacewalk-2.8.5-3-el8-to-dnf-plugin-spacewalk-2.8.5-4-el8.patch
051232
Patch3: dnf-plugin-spacewalk-2.8.5-4-el8-to-dnf-plugin-spacewalk-2.8.5-5-el8.patch
051232
Patch4: dnf-plugin-spacewalk-2.8.5-5-el8-to-dnf-plugin-spacewalk-2.8.5-6-el8.patch
051232
Patch5: dnf-plugin-spacewalk-2.8.5-6-el8-to-dnf-plugin-spacewalk-2.8.5-7-el8.patch
051232
Patch6: dnf-plugin-spacewalk-2.8.5-7-el8-to-dnf-plugin-spacewalk-2.8.5-8-el8.patch
051232
Patch7: dnf-plugin-spacewalk-2.8.5-8-el8-to-dnf-plugin-spacewalk-2.8.5-9-el8.patch
051232
URL:     https://github.com/spacewalkproject/spacewalk
051232
BuildArch: noarch
051232
051232
Requires: %{pythonX}-%{name} = %{version}-%{release}
051232
Requires: dnf >= 2.0.0
051232
Requires: dnf-plugins-core
051232
Requires: librepo >= 1.7.15
051232
%if 0%{?fedora}
051232
Obsoletes: yum-rhn-plugin < 2.7
051232
Requires: dnf >= 4.0.9
051232
%endif
051232
%if 0%{?rhel} >= 8
051232
Provides: yum-rhn-plugin = %{version}
051232
Requires: dnf >= 4.0.9
051232
%endif
051232
051232
%description
051232
This DNF plugin provides access to a Spacewalk server for software updates.
051232
051232
%if 0%{?build_py2}
051232
%package -n python2-%{name}
051232
Summary: DNF plugin for Spacewalk
051232
%{?python_provide:%python_provide python2-%{name}}
051232
BuildRequires: python-devel
051232
Requires: %{name} = %{version}-%{release}
051232
Requires: python2-rhn-client-tools >= 2.8.4
051232
%description -n python2-%{name}
051232
Python 2 specific files for %{name}.
051232
%endif
051232
051232
%if 0%{?build_py3}
051232
%package -n python3-%{name}
051232
Summary: DNF plugin for Spacewalk
051232
%{?python_provide:%python_provide python3-%{name}}
051232
BuildRequires: python3-devel
051232
Requires: %{name} = %{version}-%{release}
051232
Requires: python3-rhn-client-tools >= 2.8.4
051232
Requires: python3-librepo
051232
051232
%description -n python3-%{name}
051232
Python 3 specific files for %{name}.
051232
%endif
051232
051232
%prep
051232
%setup -q
051232
%patch0 -p1
051232
%patch1 -p1
051232
%patch2 -p1
051232
%patch3 -p1
051232
%patch4 -p1
051232
%patch5 -p1
051232
%patch6 -p1
051232
%patch7 -p1
051232
051232
%build
051232
051232
%install
051232
install -d %{buildroot}%{_sysconfdir}/dnf/plugins/
051232
install -d %{buildroot}/var/lib/up2date
051232
install -d %{buildroot}%{_mandir}/man{5,8}
051232
install -m 644 spacewalk.conf %{buildroot}%{_sysconfdir}/dnf/plugins/
051232
install -m 644 man/spacewalk.conf.5 %{buildroot}%{_mandir}/man5/
051232
install -m 644 man/dnf.plugin.spacewalk.8 %{buildroot}%{_mandir}/man8/
051232
ln -sf dnf.plugin.spacewalk.8 $RPM_BUILD_ROOT%{_mandir}/man8/dnf-plugin-spacewalk.8
051232
ln -sf dnf.plugin.spacewalk.8 $RPM_BUILD_ROOT%{_mandir}/man8/yum-rhn-plugin.8
051232
051232
# python2
051232
%if 0%{?build_py2}
051232
install -d %{buildroot}%{python2_sitelib}/rhn/actions
051232
install -d %{buildroot}%{python2_sitelib}/dnf-plugins/
051232
install -m 644 spacewalk.py %{buildroot}%{python2_sitelib}/dnf-plugins/
051232
install -m 644 actions/packages.py %{buildroot}%{python2_sitelib}/rhn/actions/
051232
install -m 644 actions/errata.py %{buildroot}%{python2_sitelib}/rhn/actions/
051232
%endif
051232
051232
%if 0%{?build_py3}
051232
install -d %{buildroot}%{python3_sitelib}/rhn/actions
051232
install -d %{buildroot}%{python3_sitelib}/dnf-plugins/
051232
install -m 644 spacewalk.py %{buildroot}%{python3_sitelib}/dnf-plugins/
051232
install -m 644 actions/packages.py %{buildroot}%{python3_sitelib}/rhn/actions/
051232
install -m 644 actions/errata.py %{buildroot}%{python3_sitelib}/rhn/actions/
051232
%endif
051232
051232
%pre
051232
051232
%post
051232
051232
%files
051232
%verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/dnf/plugins/spacewalk.conf
051232
%license LICENSE
051232
%dir /var/lib/up2date
051232
%{_mandir}/man*/*
051232
051232
%if 0%{?build_py2}
051232
%files -n python2-%{name}
051232
%{python_sitelib}/dnf-plugins/*
051232
%{python_sitelib}/rhn/actions/*
051232
%endif
051232
051232
%if 0%{?build_py3}
051232
%files -n python3-%{name}
051232
%{python3_sitelib}/dnf-plugins/*
051232
%{python3_sitelib}/rhn/actions/*
051232
%endif
051232
051232
%changelog
051232
* Wed Dec 19 2018 Michael Mraka <michael.mraka@redhat.com> 2.8.5-9
051232
- Resolves: #1660552 - report and fail gracefully if not root
051232
- logger.warn() has been obsoleted
051232
051232
* Mon Dec 10 2018 Michael Mraka <michael.mraka@redhat.com> 2.8.5-8
051232
- Resolves: #1637980 - use new api for http headers (michael.mraka@redhat.com)
051232
051232
* Wed Oct 31 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.5-7
051232
- Resolves: rhbz#1633298 - librepo dependency is not added automatically (michael.mraka@redhat.com)
051232
051232
* Tue Oct 16 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.5-6
051232
- spec cleanup (no more builds on Fedora <= 25) (michael.mraka@redhat.com)
051232
- Resolves: #1637980 - fixed plugin for dnf > 3.6.0 (michael.mraka@redhat.com)
051232
051232
* Tue Jul 24 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.5-5
051232
- Related: #1581665 - provide useful symlinks to a manpage
051232
  (tkasparek@redhat.com)
051232
- Resolves: #1581665 - provide yum-rhn-plugin on new RHEL systems
051232
  (tkasparek@redhat.com)
051232
051232
* Tue Mar 20 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.5-4
051232
- don't build python2 subpackages on systems with default python2
051232
  (tkasparek@redhat.com)
051232
051232
* Tue Feb 20 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.5-3
051232
- %%if 0%%{?fedora} <= 25 is always true on rhel (tkasparek@redhat.com)
051232
- rhel8 utilizes python3 (tkasparek@redhat.com)
051232
051232
* Mon Feb 19 2018 Tomas Kasparek <tkasparek@redhat.com> 2.8.5-2
051232
- rebuild for rhel8
051232
051232
* Fri Feb 09 2018 Michael Mraka <michael.mraka@redhat.com> 2.8.5-1
051232
- removed Group from specfile
051232
051232
* Mon Nov 27 2017 Michael Mraka <michael.mraka@redhat.com> 2.8.4-1
051232
- 1512582 - don't fail on empty installroot
051232
051232
* Fri Sep 29 2017 Michael Mraka <michael.mraka@redhat.com> 2.8.3-1
051232
- require new version of rhn-client-tools
051232
- move client actions to rhn namespace
051232
051232
* Fri Sep 22 2017 Michael Mraka <michael.mraka@redhat.com> 2.8.2-1
051232
- install files into python_sitelib/python3_sitelib
051232
- split dnf-plugin-spacewalk into python2/python3 specific packages
051232
051232
* Thu Sep 07 2017 Tomas Kasparek <tkasparek@redhat.com> 2.8.1-1
051232
- unload function has been renamed to _unload() in DNF 2
051232
- Bumping package versions for 2.8.
051232
051232
* Mon Jul 31 2017 Eric Herget <eherget@redhat.com> 2.7.9-1
051232
- update copyright year
051232
051232
* Fri Jul 21 2017 Michael Mraka <michael.mraka@redhat.com> 2.7.8-1
051232
- 1437864 - base.plugins has been renamed to base._plugins
051232
051232
* Tue May 30 2017 Michael Mraka <michael.mraka@redhat.com> 2.7.7-1
051232
- 1236609 - update to dnf's new config module
051232
051232
* Fri May 26 2017 Michael Mraka <michael.mraka@redhat.com> 2.7.6-1
051232
- 1308493 - actually fix duplicated channel even for dnf 1.X
051232
051232
* Fri May 26 2017 Michael Mraka <michael.mraka@redhat.com> 2.7.5-1
051232
- 1308493 - fixed plugin initialization in dnf 2.X
051232
- Updated links to github in spec files
051232
- Migrating Fedorahosted to GitHub
051232
051232
* Fri Feb 17 2017 Jan Dobes 2.7.4-1
051232
- fix bz1422518 - request failed: error reading the headers (CVE-2016-8743)
051232
051232
* Wed Feb 15 2017 Tomas Kasparek <tkasparek@redhat.com> 2.7.3-1
051232
- allow building both dnf 1.0 and 2.0 version from the same source
051232
- 1308493 - initialize spacewalk channels before --enablerepo/--disablerepo
051232
  handler
051232
- dnf-plugin-spacewalk updated to dnf 2.0
051232
051232
* Wed Nov 16 2016 Gennadii Altukhov <galt@redhat.com> 2.7.2-1
051232
- reverted 2030f2f6b1efb82bda06676fbf22ab3716e890e5. A new API call is not
051232
  available yet in Fedora 23/24.
051232
051232
* Tue Nov 15 2016 Gennadii Altukhov <galt@redhat.com> 2.7.1-1
051232
- remove workaround  for BZ 1218071
051232
- Bumping package versions for 2.7.
051232
051232
* Fri Sep 23 2016 Michael Mraka <michael.mraka@redhat.com> 2.6.1-1
051232
- fixed rpmlint warnings
051232
- 1342491 - remove dependency on python2 on F23+
051232
051232
* Wed May 25 2016 Tomas Kasparek <tkasparek@redhat.com> 2.5.8-1
051232
- updating copyright years
051232
051232
* Thu May 12 2016 Gennadii Altukhov <galt@redhat.com> 2.5.7-1
051232
- fix: wrong converting of exception to string
051232
051232
* Wed May 11 2016 Gennadii Altukhov <galt@redhat.com> 2.5.6-1
051232
- replace has_key to work in python 3
051232
051232
* Mon May 09 2016 Gennadii Altukhov <galt@redhat.com> 2.5.5-1
051232
- 1323028 - fix upgrade from Fedora 21 to 22
051232
051232
* Wed May 04 2016 Tomas Kasparek <tkasparek@redhat.com> 2.5.4-1
051232
- Fix code via PEP8
051232
- AK does not install packages via dnf-client
051232
051232
* Tue Jan 19 2016 Michael Mraka <michael.mraka@redhat.com> 2.5.3-1
051232
- yet another python3 fixes
051232
051232
* Fri Jan 08 2016 Michael Mraka <michael.mraka@redhat.com> 2.5.2-1
051232
- updated dnf / rhnlib / rhn-client-tools dependencies
051232
051232
* Fri Jan 08 2016 Michael Mraka <michael.mraka@redhat.com> 2.5.1-1
051232
- 1286555 - updated to work in python3
051232
- Bumping package versions for 2.5.
051232
051232
* Thu Aug 20 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.15-1
051232
- 1254551 - fixed error message output
051232
051232
* Wed Aug 19 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.14-1
051232
- 1254551 - fixed missing InvalidGpgKeyLocation exception
051232
051232
* Mon Jul 13 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.13-1
051232
- require on dnf-plugins-core is needed for docker images
051232
051232
* Thu Jun 11 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.12-1
051232
- bz1230251: do nothing if enabled=0
051232
- bz1226986: accept options from plugin configuration file
051232
051232
* Mon Jun 01 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.11-1
051232
- global name 'CHANNELS_DISABLED' is not defined
051232
051232
* Fri May 29 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.10-1
051232
- fixed variable asignment
051232
051232
* Fri May 29 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.9-1
051232
- koji does not define python_sitelib
051232
051232
* Mon May 25 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.7-1
051232
- added license
051232
- be consistent in using macros vs. shell variables
051232
- make spec complient with fedora packaging guidlines
051232
051232
* Tue May 19 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.5-1
051232
- minimal needed version of librepo
051232
051232
* Tue May 12 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.4-1
051232
- fixed rpmbuild issues
051232
051232
* Mon May 11 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.2-1
051232
- add action files for packages/errata installation
051232
- put spacewalk both into python2 and python3 setelibs
051232
051232
* Thu Apr 16 2015 Michael Mraka <michael.mraka@redhat.com> 2.4.1-1
051232
- initial build of dnf-plugin-spacewalk
051232