diff --git a/.gitignore b/.gitignore index 7cea76c..67f2987 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /Scrapy-0.22.0.tar.gz /Scrapy-0.24.4.tar.gz /Scrapy-1.0.3.tar.gz +/Scrapy-1.3.2.tar.gz diff --git a/python-scrapy.spec b/python-scrapy.spec index 0b9c1dd..1cb70d5 100644 --- a/python-scrapy.spec +++ b/python-scrapy.spec @@ -1,58 +1,104 @@ %global pypi_name Scrapy +%global pkg_name scrapy Name: python-scrapy -Version: 1.0.3 -Release: 4%{?dist} +Version: 1.3.2 +Release: 1%{?dist} Summary: A high-level Python Screen Scraping framework License: BSD URL: http://scrapy.org -Source0: https://pypi.python.org/packages/source/S/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/S/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch -BuildRequires: python2-devel -BuildRequires: python-sphinx -BuildRequires: python-cssselect -BuildRequires: python-lxml -BuildRequires: python-twisted -BuildRequires: python-w3lib -BuildRequires: python-queuelib BuildRequires: libxml2-devel BuildRequires: libxslt-devel -Requires: pyOpenSSL -Requires: python-twisted -Requires: python-lxml -Requires: python-w3lib -Requires: python-queuelib -Requires: python-zope-interface -Requires: python-cssselect + %description Scrapy is a fast high-level screen scraping and web crawling framework, used to crawl websites and extract structured data from their pages. It can be used for a wide range of purposes, -from data mining to monitoring and automated testing +from data mining to monitoring and automated testing. + +%package -n python2-%{pkg_name} +Summary: %{summary} + +BuildRequires: python2-devel +BuildRequires: python2-sphinx +BuildRequires: python2-cssselect +BuildRequires: python2-lxml +BuildRequires: python2-twisted +BuildRequires: python2-w3lib +BuildRequires: python2-queuelib +Requires: python2-pyOpenSSL +Requires: python2-twisted +Requires: python2-lxml +Requires: python2-w3lib +Requires: python2-queuelib +Requires: python2-zope-interface +Requires: python2-cssselect + +%{?python_provide:%python_provide python2-%{pkg_name}} + + +%description -n python2-%{pkg_name} +Scrapy is a fast high-level screen scraping and web crawling +framework, used to crawl websites and extract structured data +from their pages. It can be used for a wide range of purposes, +from data mining to monitoring and automated testing. + +%package -n python3-%{pkg_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-sphinx +BuildRequires: python3-cssselect +BuildRequires: python3-lxml +BuildRequires: python3-twisted +BuildRequires: python3-w3lib +BuildRequires: python3-queuelib +Requires: python3-pyOpenSSL +Requires: python3-twisted +Requires: python3-lxml +Requires: python3-w3lib +Requires: python3-queuelib +Requires: python3-zope-interface +Requires: python3-cssselect + +%{?python_provide:%python_provide python3-%{pkg_name}} + + +%description -n python3-%{pkg_name} +Scrapy is a fast high-level screen scraping and web crawling +framework, used to crawl websites and extract structured data +from their pages. It can be used for a wide range of purposes, +from data mining to monitoring and automated testing. + + %package doc Summary: Documentation for %{name} Group: Documentation %description doc +Scrapy is a fast high-level screen scraping and web crawling +framework, used to crawl websites and extract structured data +from their pages. It can be used for a wide range of purposes, +from data mining to monitoring and automated testing. This package contains the documentation for %{name} %prep -%setup -qn %{pypi_name}-%{version} -# Remove bundled egg -rm -rf Scrapy.egg-info -rm -rf scrapy/tests/test_utils_misc/test.egg - +%autosetup -n %{pypi_name}-%{version} %build -%{__python2} setup.py build +%py2_build +%py3_build PYTHONPATH=$(pwd) make -C docs html rm -f docs/build/html/.buildinfo %install -%{__python2} setup.py install -O1 --skip-build --root %{buildroot} +%py2_install +%py3_install %check #Tests disabled (needs network connection) @@ -61,16 +107,28 @@ rm -f docs/build/html/.buildinfo # ./runtests.sh # popd -%files -%doc LICENSE AUTHORS PKG-INFO -%{python_sitelib}/scrapy -%{python_sitelib}/Scrapy-*.egg-info +%files -n python2-%{pkg_name} +%license LICENSE +%doc AUTHORS PKG-INFO +%{python2_sitelib}/scrapy +%{python2_sitelib}/Scrapy-*.egg-info + + +%files -n python3-%{pkg_name} +%license LICENSE +%doc AUTHORS PKG-INFO +%{python3_sitelib}/scrapy +%{python3_sitelib}/Scrapy-*.egg-info %{_bindir}/scrapy %files doc %doc docs/build/html %changelog +* Wed Feb 22 2017 Jan Beran - 1.3.2-1 +- Update to the latest upstream version +- Provides python 3 subpackage + * Sat Feb 11 2017 Fedora Release Engineering - 1.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index 29a77fd..28af9b3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cefb981076a26112d6f9b76cb7e5ba7d Scrapy-1.0.3.tar.gz +SHA512 (Scrapy-1.3.2.tar.gz) = 06c034a4a23dfefe449685c9c95bb518ae4d56f8512802570e0885daec7b380f08381284ec4b31e322d1bf0dc7301f6d470b8fdd06ac3c45ce2101339685045d