From b40f29a8509cd64b7e0ebeab354aa6f86461e36d0d4f253c179cf9fd4cef0b53 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 14 Oct 2019 11:40:38 +0000 Subject: [PATCH 1/2] - Replace %fdupes -s with plain %fdupes; hardlinks are better. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=28 --- python-construct.changes | 5 +++++ python-construct.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-construct.changes b/python-construct.changes index 8ddf2b1..fa83731 100644 --- a/python-construct.changes +++ b/python-construct.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 14 11:40:28 UTC 2019 - Matej Cepl + +- Replace %fdupes -s with plain %fdupes; hardlinks are better. + ------------------------------------------------------------------- Mon Jan 7 11:37:34 UTC 2019 - Tomáš Chvátal diff --git a/python-construct.spec b/python-construct.spec index 1ea73e6..9045639 100644 --- a/python-construct.spec +++ b/python-construct.spec @@ -63,7 +63,7 @@ rm -rf tests/deprecated_gallery %install %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check %python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} From da4866685ce32aeb50bfdd333046565ea4499bd7169480b0f7db40631b444096 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 14 Oct 2019 11:41:16 +0000 Subject: [PATCH 2/2] Run spec-cleaner OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=29 --- python-construct.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python-construct.spec b/python-construct.spec index 9045639..a0a68ba 100644 --- a/python-construct.spec +++ b/python-construct.spec @@ -22,7 +22,6 @@ Version: 2.9.45 Release: 0 Summary: A declarative parser/builder for binary data License: MIT -Group: Development/Languages/Python URL: https://github.com/construct/construct Source: https://github.com/construct/construct/archive/v%{version}.tar.gz Patch0: split_debug.patch @@ -31,15 +30,15 @@ BuildRequires: %{python_module pytest-benchmark} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} -Requires: python-arrow BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-six BuildRequires: python2-enum34 +Requires: python-arrow +Requires: python-six +BuildArch: noarch %ifpython2 Requires: python-enum34 %endif -BuildArch: noarch %python_subpackages %description @@ -66,7 +65,7 @@ rm -rf tests/deprecated_gallery %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} +%pytest %files %{python_files} %license LICENSE