14
0
2023-03-03 08:08:05 +00:00
committed by Git OBS Bridge
parent 14bb193dce
commit a75e2e9518
2 changed files with 14 additions and 6 deletions

View File

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

View File

@@ -16,7 +16,6 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define modname urlgrabber
Name: python-urlgrabber
Version: 4.1.0
@@ -26,13 +25,13 @@ License: LGPL-2.1-only
Group: Development/Libraries/Python
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
# 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
# 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
# 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
# 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
BuildRequires: %{python_module pycurl}
@@ -76,12 +75,16 @@ rm -rf %{buildroot}%{_datadir}/doc/urlgrabber-%{version} # Remove wrongly instal
%postun
%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}
%license LICENSE
%doc ChangeLog README TODO
%python_alternative %{_bindir}/urlgrabber
%python_alternative %{_libexecdir}/urlgrabber-ext-down
%{python_sitelib}/*
%{python_sitelib}/urlgrabber
%{python_sitelib}/urlgrabber-%{version}*-info
%changelog