forked from pool/python-urlgrabber
- Clean up SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urlgrabber?expand=0&rev=51
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 3 08:07:59 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Clean up SPEC file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Mar 1 16:29:38 UTC 2023 - Pablo Suárez Hernández <pablo.suarezhernandez@suse.com>
|
Wed Mar 1 16:29:38 UTC 2023 - Pablo Suárez Hernández <pablo.suarezhernandez@suse.com>
|
||||||
|
|
||||||
|
@@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
%define modname urlgrabber
|
%define modname urlgrabber
|
||||||
Name: python-urlgrabber
|
Name: python-urlgrabber
|
||||||
Version: 4.1.0
|
Version: 4.1.0
|
||||||
@@ -26,13 +25,13 @@ License: LGPL-2.1-only
|
|||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
URL: https://github.com/rpm-software-management/urlgrabber
|
URL: https://github.com/rpm-software-management/urlgrabber
|
||||||
Source: https://github.com/rpm-software-management/%{modname}/releases/download/%{modname}-4-1-0/%{modname}-%{version}.tar.gz
|
Source: https://github.com/rpm-software-management/%{modname}/releases/download/%{modname}-4-1-0/%{modname}-%{version}.tar.gz
|
||||||
# PATCH-FIX_UPSTREAM https://github.com/rpm-software-management/urlgrabber/pull/32
|
# PATCH-FIX_UPSTREAM gh#rpm-software-management/urlgrabber!32
|
||||||
Patch0: use-binary-mode-when-reopening-files.patch
|
Patch0: use-binary-mode-when-reopening-files.patch
|
||||||
# PATCH-FIX_UPSTREAM https://github.com/rpm-software-management/urlgrabber/pull/35
|
# PATCH-FIX_UPSTREAM gh#rpm-software-management/urlgrabber!35
|
||||||
Patch1: fix_find_proxy_logic_and_drop_six.patch
|
Patch1: fix_find_proxy_logic_and_drop_six.patch
|
||||||
# PATCH-FIX_UPSTREAM https://github.com/rpm-software-management/urlgrabber/pull/34
|
# PATCH-FIX_UPSTREAM gh#rpm-software-management/urlgrabber!34
|
||||||
Patch2: avoid_crashing_when_urlgrabber_debug_enabled.patch
|
Patch2: avoid_crashing_when_urlgrabber_debug_enabled.patch
|
||||||
# PATCH-FIX_UPSTREAM https://github.com/rpm-software-management/urlgrabber/pull/37
|
# PATCH-FIX_UPSTREAM gh#rpm-software-management/urlgrabber!37
|
||||||
Patch3: fix-urlgrab-file-schema-comparison.patch
|
Patch3: fix-urlgrab-file-schema-comparison.patch
|
||||||
|
|
||||||
BuildRequires: %{python_module pycurl}
|
BuildRequires: %{python_module pycurl}
|
||||||
@@ -76,12 +75,16 @@ rm -rf %{buildroot}%{_datadir}/doc/urlgrabber-%{version} # Remove wrongly instal
|
|||||||
|
|
||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative urlgrabber
|
%python_uninstall_alternative urlgrabber
|
||||||
|
if [ ! -f %{_libexecdir}/urlgrabber-ext-down ] ; then
|
||||||
|
update-alternatives --remove urlgrabber-ext-down %{_libexecdir}/urlgrabber-ext-down
|
||||||
|
fi
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc ChangeLog README TODO
|
%doc ChangeLog README TODO
|
||||||
%python_alternative %{_bindir}/urlgrabber
|
%python_alternative %{_bindir}/urlgrabber
|
||||||
%python_alternative %{_libexecdir}/urlgrabber-ext-down
|
%python_alternative %{_libexecdir}/urlgrabber-ext-down
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/urlgrabber
|
||||||
|
%{python_sitelib}/urlgrabber-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user