14
0

- 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:
2022-10-14 05:43:55 +00:00
committed by Git OBS Bridge
parent 5f10011633
commit c74748f85e
3 changed files with 14 additions and 7 deletions

View File

@@ -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