python-urlgrabber/python-urlgrabber.spec

62 lines
1.8 KiB
RPMSpec
Raw Normal View History

2020-02-14 11:37:00 +08:00
Name: python-urlgrabber
2020-02-28 14:13:21 +08:00
Version: 4.0.0
2021-12-18 18:12:38 +08:00
Release: 3
2020-02-14 11:37:00 +08:00
Summary: Cross-protocol urlgrabber
License: LGPLv2+
Url: http://urlgrabber.baseurl.org/
Source0: http://urlgrabber.baseurl.org/download/urlgrabber-%{version}.tar.gz
2020-02-28 14:13:21 +08:00
Patch0001: 0001-urlgrabber-ext-down-another-python-3-compat.patch
Patch0002: 0002-Revert-Simplify-mirror-conversion-to-utf8.patch
Patch0003: 0003-urlgrabber-ext-down-convert-url-into-bytes.patch
2020-02-14 11:37:00 +08:00
BuildArch: noarch
%global _description\
It is a urlgrabber.We can use it to fetch data in three ways.Urlgrab copies\
files to the local filesystem,urlopen opens the remote file and returns a\
file object,urlread returns contents of files as string.It is easy to install\
and use this package.
%description %_description
2020-02-28 14:13:21 +08:00
%package -n python3-urlgrabber
2020-02-14 11:37:00 +08:00
Summary: %summary
Provides: urlgrabber = %{version}-%{release}
2020-02-28 14:13:21 +08:00
BuildRequires: python3-devel python3dist(setuptools) python3dist(pycurl) python3dist(six)
%{?python_provide:%python_provide python3-urlgrabber}
2020-02-14 11:37:00 +08:00
2020-02-28 14:13:21 +08:00
%description -n python3-urlgrabber %_description
2020-02-14 11:37:00 +08:00
%prep
2020-02-28 14:13:21 +08:00
%autosetup -n urlgrabber-%{version} -p1
2020-02-14 11:37:00 +08:00
%build
2020-02-28 14:13:21 +08:00
%py3_build
2020-02-14 11:37:00 +08:00
%install
2020-02-28 14:13:21 +08:00
%py3_install
sed -e "s|/usr/bin/python|%{__python3}|" -i $RPM_BUILD_ROOT/%{_libexecdir}/*
2020-02-14 11:37:00 +08:00
rm -rf $RPM_BUILD_ROOT/%{_docdir}/urlgrabber-%{version}
2020-02-28 14:13:21 +08:00
%files -n python3-urlgrabber
2020-02-14 11:37:00 +08:00
%license LICENSE
%doc README ChangeLog TODO
%{_bindir}/urlgrabber
2020-02-28 14:13:21 +08:00
%{_libexecdir}/urlgrabber-ext-down
%{python3_sitelib}/urlgrabber
2021-12-18 18:12:38 +08:00
%{python3_sitelib}/urlgrabber-%{version}-py?.??.egg-info
2020-02-14 11:37:00 +08:00
%changelog
2021-12-18 18:12:38 +08:00
* Sat Dec 18 2021 shixuantong<shixuantong@huawei.com> - 4.0.1-3
- fix build fail
2020-08-27 10:24:58 +08:00
* Thu Aug 27 2020 shixuantong<shixuantong@huawei.com> - 4.0.1-2
- remove python2
2020-02-28 14:13:21 +08:00
* Fri Feb 28 2020 lingsheng <lingsheng@huawei.com> - 4.0.0-1
- update version to 4.0.0
2020-02-14 11:37:00 +08:00
* Fri Feb 14 2020 Jiangping Hu <hujp1985@foxmail.com> - 3.10.1-18
- Package init