forked from pool/python-xkcdpass
Accepting request 867710 from home:bnavigator:branches:openSUSE:Factory
- Fix singlespec OBS-URL: https://build.opensuse.org/request/show/867710 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xkcdpass?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 29 11:41:18 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Fix singlespec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 19 08:33:59 UTC 2020 - İsmail Dönmez <idoenmez+factory@suse.de>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-xkcdpass
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -30,9 +30,9 @@ Source: https://files.pythonhosted.org/packages/cc/3a/065130b94cb57cbbd7
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python3-base
|
||||
Requires: python-setuptools
|
||||
BuildArch: noarch
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -41,25 +41,31 @@ inspired by XKCD 936 (https://xkcd.com/936/)
|
||||
|
||||
%prep
|
||||
%setup -q -n xkcdpass-%{version}
|
||||
# Remove the shebang
|
||||
sed -i -e '1d' xkcdpass/xkcd_password.py
|
||||
|
||||
%build
|
||||
%{python_build}
|
||||
|
||||
%check
|
||||
%{pytest}
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%{python_install}
|
||||
%python_install
|
||||
%python_clone -a %{buildroot}%{_bindir}/xkcdpass
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
# Remove the shebang
|
||||
sed -i -e '1d' %{buildroot}%{python_sitelib}/xkcdpass/xkcd_password.py
|
||||
%check
|
||||
%pytest
|
||||
|
||||
%fdupes %{buildroot}%{python_sitelib}
|
||||
%post
|
||||
%python_install_alternative xkcdpass
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative xkcdpass
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE*
|
||||
%doc README.rst
|
||||
%{_bindir}/xkcdpass
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/xkcdpass
|
||||
%{python_sitelib}/xkcdpass
|
||||
%{python_sitelib}/xkcdpass-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user