From 3160858220415e4d2be34fd7175a96d6fd2338bf3b57c14f6fdc28bea288da8d Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 14:01:02 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rsa?expand=0&rev=23 --- python-rsa.changes | 5 +++++ python-rsa.spec | 9 ++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/python-rsa.changes b/python-rsa.changes index ef8ca55..0447e95 100644 --- a/python-rsa.changes +++ b/python-rsa.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Dec 4 12:53:58 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Mon May 1 16:30:14 UTC 2017 - toddrme2178@gmail.com diff --git a/python-rsa.spec b/python-rsa.spec index e091bb4..fcbb71a 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -1,7 +1,7 @@ # # spec file for package python-rsa # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -28,11 +28,10 @@ License: Apache-2.0 Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/r/rsa/rsa-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module pyasn1 >= 0.1.3} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} -BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module pyasn1 >= 0.1.3} %if %{with tests} BuildRequires: %{python_module nose} %endif From 51c5e6e697eaefe989e04176f79b141eb56b3fc0a666aa457a1854104651cab1 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:22:01 +0000 Subject: [PATCH 2/2] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rsa?expand=0&rev=24 --- python-rsa.spec | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/python-rsa.spec b/python-rsa.spec index fcbb71a..ce6c1ee 100644 --- a/python-rsa.spec +++ b/python-rsa.spec @@ -16,30 +16,28 @@ # -%bcond_without tests - %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without tests Name: python-rsa Version: 3.4.2 Release: 0 -Url: http://stuvel.eu/rsa Summary: Pure-Python RSA Implementation License: Apache-2.0 Group: Development/Languages/Python +URL: http://stuvel.eu/rsa Source: https://files.pythonhosted.org/packages/source/r/rsa/rsa-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module pyasn1 >= 0.1.3} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-pyasn1 >= 0.1.3 +Requires(post): update-alternatives +Requires(pre): coreutils +Requires(preun): update-alternatives +BuildArch: noarch %if %{with tests} BuildRequires: %{python_module nose} %endif -Requires: python-pyasn1 >= 0.1.3 -BuildArch: noarch -Requires(pre): coreutils -Requires(post): update-alternatives -Requires(preun): update-alternatives %python_subpackages %description @@ -78,8 +76,8 @@ PKCS#1 version 1.5. %endif %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGELOG.txt LICENSE README.md +%license LICENSE +%doc CHANGELOG.txt README.md %python_alternative %{_bindir}/pyrsa-decrypt %python_alternative %{_bindir}/pyrsa-decrypt-bigfile %python_alternative %{_bindir}/pyrsa-encrypt