From 970a495290d856180aaef4015c97ac4b97c3fdcd93aa8b1f91c9a26ea80186e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 7 Dec 2018 11:40:57 +0000 Subject: [PATCH] - Fix fdupes call OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyasn1?expand=0&rev=75 --- python-pyasn1.changes | 5 +++++ python-pyasn1.spec | 14 ++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/python-pyasn1.changes b/python-pyasn1.changes index 4a134f4..cb219d2 100644 --- a/python-pyasn1.changes +++ b/python-pyasn1.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 7 11:40:47 UTC 2018 - Tomáš Chvátal + +- Fix fdupes call + ------------------------------------------------------------------- Tue Aug 7 14:42:43 UTC 2018 - toddrme2178@gmail.com diff --git a/python-pyasn1.spec b/python-pyasn1.spec index 6b5d831..ba1efed 100644 --- a/python-pyasn1.spec +++ b/python-pyasn1.spec @@ -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/ # @@ -24,18 +24,17 @@ Release: 0 Summary: ASN.1 types and codecs License: BSD-2-Clause Group: Development/Languages/Python -Url: https://github.com/etingof/pyasn1 -Source: https://pypi.io/packages/source/p/pyasn1/pyasn1-%{version}.tar.gz +URL: https://github.com/etingof/pyasn1 +Source: https://files.pythonhosted.org/packages/source/p/pyasn1/pyasn1-%{version}.tar.gz BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +BuildArch: noarch %ifpython2 Obsoletes: %{oldpython}-asn1 < 0.2.3 Provides: %{oldpython}-asn1 = %{version} %endif -BuildArch: noarch - %python_subpackages %description @@ -52,13 +51,12 @@ specification. %install %python_install -%fdupes %{buildroot}%{_prefix} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_exec setup.py test -%files %python_files -%defattr(-,root,root,-) +%files %{python_files} %doc CHANGES.rst README.md TODO.rst %license LICENSE.rst %{python_sitelib}/*