From 5c4f1ea75b63a05deedaed851df79edba3783de7f0afc3181351ad423e721892 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 6 Dec 2018 14:29:36 +0000 Subject: [PATCH] - Fix the fdupes call to match up documentation - Run tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-unpaddedbase64?expand=0&rev=4 --- python-unpaddedbase64.changes | 6 ++++++ python-unpaddedbase64.spec | 23 +++++++++++------------ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/python-unpaddedbase64.changes b/python-unpaddedbase64.changes index 126239d..614a6cb 100644 --- a/python-unpaddedbase64.changes +++ b/python-unpaddedbase64.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Dec 6 14:27:26 UTC 2018 - Tomáš Chvátal + +- Fix the fdupes call to match up documentation +- Run tests + ------------------------------------------------------------------- Mon Feb 27 13:49:57 UTC 2017 - okurz@suse.com diff --git a/python-unpaddedbase64.spec b/python-unpaddedbase64.spec index c62e75d..b8c015c 100644 --- a/python-unpaddedbase64.spec +++ b/python-unpaddedbase64.spec @@ -1,7 +1,7 @@ # # spec file for package python-unpaddedbase64 # -# 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,12 +12,11 @@ # 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/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define github_user matrix-org %define short_name unpaddedbase64 Name: python-%{short_name} Version: 1.1.0 @@ -25,15 +24,12 @@ Release: 0 Summary: Unpadded Base64 License: Apache-2.0 Group: Development/Languages/Python -Url: https://github.com/%{github_user}/%{name} -Source: https://github.com/%{github_user}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz -BuildRequires: %{python_module base} +URL: https://github.com/matrix-org/python-unpaddedbase64 +Source: https://github.com/matrix-org/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch - %python_subpackages %description @@ -44,18 +40,21 @@ RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes using Base64 without the "=" padding. %prep -%setup -q -n %{name}-%{version} +%setup -q %build %python_build %install %python_install -%fdupes %{buildroot}%{_prefix} +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec -m unittest discover %files %{python_files} -%defattr(-,root,root,-) -%doc README.rst LICENSE +%license LICENSE +%doc README.rst %{python_sitelib}/* %changelog