From 529778aa49e7343f74ec435601c1a4eeac0c2655 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Fri, 9 Jul 2021 16:59:02 +0000 Subject: [PATCH] import spacewalk-client-cert-2.8.2-3.module+el8.1.0+3115+d1f204ad --- .gitignore | 1 + .spacewalk-client-cert.metadata | 1 + ...to-spacewalk-client-cert-2.8.2-2-el8.patch | 23 ++++ ...to-spacewalk-client-cert-2.8.2-3-el8.patch | 27 +++++ SPECS/spacewalk-client-cert.spec | 111 ++++++++++++++++++ 5 files changed, 163 insertions(+) create mode 100644 .gitignore create mode 100644 .spacewalk-client-cert.metadata create mode 100644 SOURCES/spacewalk-client-cert-2.8.2-1-to-spacewalk-client-cert-2.8.2-2-el8.patch create mode 100644 SOURCES/spacewalk-client-cert-2.8.2-2-el8-to-spacewalk-client-cert-2.8.2-3-el8.patch create mode 100644 SPECS/spacewalk-client-cert.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..722eaf8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/spacewalk-client-cert-2.8.2.tar.gz diff --git a/.spacewalk-client-cert.metadata b/.spacewalk-client-cert.metadata new file mode 100644 index 0000000..d50de47 --- /dev/null +++ b/.spacewalk-client-cert.metadata @@ -0,0 +1 @@ +cd809e6320255bc2e0173484c0c6d2c4bc2389e5 SOURCES/spacewalk-client-cert-2.8.2.tar.gz diff --git a/SOURCES/spacewalk-client-cert-2.8.2-1-to-spacewalk-client-cert-2.8.2-2-el8.patch b/SOURCES/spacewalk-client-cert-2.8.2-1-to-spacewalk-client-cert-2.8.2-2-el8.patch new file mode 100644 index 0000000..4219ab5 --- /dev/null +++ b/SOURCES/spacewalk-client-cert-2.8.2-1-to-spacewalk-client-cert-2.8.2-2-el8.patch @@ -0,0 +1,23 @@ +diff --git a/spacewalk-client-cert.spec b/spacewalk-client-cert.spec +index 7d3b12c..e09bc7f 100644 +--- a/spacewalk-client-cert.spec ++++ b/spacewalk-client-cert.spec +@@ -4,7 +4,7 @@ + + Name: spacewalk-client-cert + Version: 2.8.2 +-Release: 1%{?dist} ++Release: 2%{?dist} + Summary: Package allowing manipulation with Spacewalk client certificates + + License: GPLv2 +@@ -51,6 +51,9 @@ make -f Makefile.spacewalk-client-cert install PREFIX=$RPM_BUILD_ROOT \ + %endif + + %changelog ++* Mon Mar 05 2018 Tomas Kasparek 2.8.2-2 ++- rebuild for rhel8 ++ + * Fri Feb 09 2018 Michael Mraka 2.8.2-1 + - remove install/clean section initial cleanup + - removed Group from specfile diff --git a/SOURCES/spacewalk-client-cert-2.8.2-2-el8-to-spacewalk-client-cert-2.8.2-3-el8.patch b/SOURCES/spacewalk-client-cert-2.8.2-2-el8-to-spacewalk-client-cert-2.8.2-3-el8.patch new file mode 100644 index 0000000..8116a60 --- /dev/null +++ b/SOURCES/spacewalk-client-cert-2.8.2-2-el8-to-spacewalk-client-cert-2.8.2-3-el8.patch @@ -0,0 +1,27 @@ +diff --git a/spacewalk-client-cert.spec b/spacewalk-client-cert.spec +index e09bc7f..099382e 100644 +--- a/spacewalk-client-cert.spec ++++ b/spacewalk-client-cert.spec +@@ -1,10 +1,10 @@ +-%if 0%{?fedora} ++%if 0%{?fedora} || 0%{?rhel} >= 8 + %global build_py3 1 + %endif + + Name: spacewalk-client-cert + Version: 2.8.2 +-Release: 2%{?dist} ++Release: 3%{?dist} + Summary: Package allowing manipulation with Spacewalk client certificates + + License: GPLv2 +@@ -51,6 +51,9 @@ make -f Makefile.spacewalk-client-cert install PREFIX=$RPM_BUILD_ROOT \ + %endif + + %changelog ++* Wed Mar 14 2018 Tomas Kasparek 2.8.2-3 ++- build spacewalk-client-cert for python3 (tkasparek@redhat.com) ++ + * Mon Mar 05 2018 Tomas Kasparek 2.8.2-2 + - rebuild for rhel8 + diff --git a/SPECS/spacewalk-client-cert.spec b/SPECS/spacewalk-client-cert.spec new file mode 100644 index 0000000..773fce0 --- /dev/null +++ b/SPECS/spacewalk-client-cert.spec @@ -0,0 +1,111 @@ +%if 0%{?fedora} || 0%{?rhel} >= 8 +%global build_py3 1 +%endif + +Name: spacewalk-client-cert +Version: 2.8.2 +Release: 3%{?dist} +Summary: Package allowing manipulation with Spacewalk client certificates + +License: GPLv2 +URL: https://github.com/spacewalkproject/spacewalk +Source0: https://github.com/spacewalkproject/spacewalk/archive/%{name}-%{version}.tar.gz +Patch0: spacewalk-client-cert-2.8.2-1-to-spacewalk-client-cert-2.8.2-2-el8.patch +Patch1: spacewalk-client-cert-2.8.2-2-el8-to-spacewalk-client-cert-2.8.2-3-el8.patch +BuildArch: noarch +%if 0%{?build_py3} +BuildRequires: python3-devel +Requires: python3-rhn-client-tools +Requires: python3-rhn-setup +%else +BuildRequires: python-devel +Requires: python2-rhn-client-tools +Requires: python2-rhn-setup +%endif +%description +spacewalk-client-cert contains client side functionality allowing manipulation +with Spacewalk client certificates (/etc/sysconfig/rhn/systemid) + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + + +%build +make -f Makefile.spacewalk-client-cert + + +%install +%global pypath %{?build_py3:%{python3_sitelib}}%{!?build_py3:%{python_sitelib}} +make -f Makefile.spacewalk-client-cert install PREFIX=$RPM_BUILD_ROOT \ + PYTHONPATH=%{pypath} + +%clean + + +%files +%config /etc/sysconfig/rhn/clientCaps.d/client-cert +%{pypath}/rhn/actions/* +%if 0%{?suse_version} +%dir /etc/sysconfig/rhn +%dir /etc/sysconfig/rhn/clientCaps.d +%dir %{pypath}/rhn +%dir %{pypath}/rhn/actions +%endif + +%changelog +* Wed Mar 14 2018 Tomas Kasparek 2.8.2-3 +- build spacewalk-client-cert for python3 (tkasparek@redhat.com) + +* Mon Mar 05 2018 Tomas Kasparek 2.8.2-2 +- rebuild for rhel8 + +* Fri Feb 09 2018 Michael Mraka 2.8.2-1 +- remove install/clean section initial cleanup +- removed Group from specfile +- removed BuildRoot from specfiles + +* Tue Oct 10 2017 Michael Mraka 2.8.1-1 +- install files into python_sitelib/python3_sitelib +- Bumping package versions for 2.8. + +* Mon Jul 17 2017 Jan Dobes 2.7.1-1 +- Updated links to github in spec files +- Migrating Fedorahosted to GitHub +- Bumping package versions for 2.7. +- Bumping package versions for 2.6. + +* Wed May 25 2016 Tomas Kasparek 2.5.3-1 +- updating copyright years + +* Tue May 10 2016 Grant Gainey 2.5.2-1 +- spacewalk-client-cert: build on openSUSE + +* Tue Apr 26 2016 Gennadii Altukhov 2.5.1-1 +- Adapt spacewalk-client-cert for Python 2/3 compatibility +- Bumping package versions for 2.5. +- Bumping package versions for 2.4. + +* Thu Mar 19 2015 Grant Gainey 2.3.2-1 +- Updating copyright info for 2015 + +* Wed Jan 14 2015 Matej Kollar 2.3.1-1 +- Getting rid of Tabs and trailing spaces in Python +- Bumping package versions for 2.3. + +* Mon Apr 28 2014 Milan Zazrivec 2.2.5-1 +- correct variable name + +* Fri Apr 25 2014 Milan Zazrivec 2.2.4-1 +- polish the error message + +* Fri Apr 25 2014 Milan Zazrivec 2.2.3-1 +- add python-devel BuildRequires + +* Thu Apr 10 2014 Milan Zazrivec 2.2.2-1 +- update_client_cert() does not accept any arguments + +* Thu Apr 10 2014 Milan Zazrivec 2.2.1-1 +- initial package build +