forked from pool/python-metaextract
- Change preun to postun for update alternatives
- Remove not needed setup.py patch - Change shared files python-sitelib glob to package - Update source package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-metaextract?expand=0&rev=37
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:874798166b9c5223f8d0df8898721646b918b9071e48d19e14f74aeea74f7fb1
|
||||
size 9338
|
||||
oid sha256:4ccc8c8cbaad258ed9538093c64196eb393504075bd0f06fb31276148be7abda
|
||||
size 19572
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Oct 14 05:40:11 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Change preun to postun for update alternatives
|
||||
- Remove not needed setup.py patch
|
||||
- Change shared files python-sitelib glob to package
|
||||
- Update source package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 13 15:05:49 UTC 2022 - Thomas Bechtold <thomasbechtold@jpberlin.de>
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ Requires: python-setuptools
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
Requires(post): update-alternatives
|
||||
Requires(preun):update-alternatives
|
||||
Requires(postun):update-alternatives
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -47,8 +47,6 @@ The tool was first developed in py2pack but is now its own module.
|
||||
|
||||
%prep
|
||||
%setup -q -n metaextract-%{version}
|
||||
# https://github.com/toabctl/metaextract/issues/13
|
||||
sed -i 's:.pytest-runner.::' setup.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -62,7 +60,7 @@ sed -i 's:.pytest-runner.::' setup.py
|
||||
%post
|
||||
%python_install_alternative metaextract
|
||||
|
||||
%preun
|
||||
%postun
|
||||
%python_uninstall_alternative metaextract
|
||||
|
||||
%check
|
||||
@@ -73,6 +71,7 @@ sed -i 's:.pytest-runner.::' setup.py
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/metaextract
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/metaextract
|
||||
%{python_sitelib}/metaextract-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user