14
0

Accepting request 807139 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807139
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subgrab?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2020-05-19 08:52:54 +00:00
committed by Git OBS Bridge
parent fc7acbb6a2
commit a99b1e0a75
2 changed files with 16 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 19 08:03:06 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 14 14:43:33 UTC 2019 - Matej Cepl <mcepl@suse.com> Mon Oct 14 14:43:33 UTC 2019 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-subgrab # spec file for package python-subgrab
# #
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# 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
@@ -31,6 +31,8 @@ BuildRequires: unzip
Requires: python-beautifulsoup4 Requires: python-beautifulsoup4
Requires: python-lxml Requires: python-lxml
Requires: python-requests Requires: python-requests
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -48,10 +50,17 @@ sed -i 's/bs4/beautifulsoup4/g' setup.py
%install %install
%python_install %python_install
%python_clone -a %{buildroot}%{_bindir}/subgrab
%python_expand %fdupes %{buildroot}/%{$python_sitelib} %python_expand %fdupes %{buildroot}/%{$python_sitelib}
%post
%python_install_alternative subgrab
%postun
%python_uninstall_alternative subgrab
%files %{python_files} %files %{python_files}
%python3_only %{_bindir}/subgrab %python_alternative %{_bindir}/subgrab
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog