14
0

Accepting request 655699 from devel:languages:python

- Fix the fdupes call to match up documentation
- Run tests

OBS-URL: https://build.opensuse.org/request/show/655699
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-unpaddedbase64?expand=0&rev=2
This commit is contained in:
2018-12-07 13:36:11 +00:00
committed by Git OBS Bridge
2 changed files with 17 additions and 12 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Dec 6 14:27:26 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Fix the fdupes call to match up documentation
- Run tests
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Feb 27 13:49:57 UTC 2017 - okurz@suse.com Mon Feb 27 13:49:57 UTC 2017 - okurz@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-unpaddedbase64 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define github_user matrix-org
%define short_name unpaddedbase64 %define short_name unpaddedbase64
Name: python-%{short_name} Name: python-%{short_name}
Version: 1.1.0 Version: 1.1.0
@@ -25,15 +24,12 @@ Release: 0
Summary: Unpadded Base64 Summary: Unpadded Base64
License: Apache-2.0 License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/%{github_user}/%{name} URL: https://github.com/matrix-org/python-unpaddedbase64
Source: https://github.com/%{github_user}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz Source: https://github.com/matrix-org/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: %{python_module base}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -44,18 +40,21 @@ RFC 4648 specifies that Base64 should be padded to a multiple of 4 bytes using
Base64 without the "=" padding. Base64 without the "=" padding.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q
%build %build
%python_build %python_build
%install %install
%python_install %python_install
%fdupes %{buildroot}%{_prefix} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_exec -m unittest discover
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license LICENSE
%doc README.rst LICENSE %doc README.rst
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog