14
0
forked from pool/python-Scrapy

Accepting request 807242 from home:pgajdos:python

submit

OBS-URL: https://build.opensuse.org/request/show/807242
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Scrapy?expand=0&rev=14
This commit is contained in:
Tomáš Chvátal
2020-05-19 12:14:06 +00:00
committed by Git OBS Bridge
parent 5577430fb1
commit 554a84a443
2 changed files with 16 additions and 4 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue May 19 09:27:53 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Apr 2 03:38:20 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com> Thu Apr 2 03:38:20 UTC 2020 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -64,6 +64,8 @@ Requires: python-service_identity >= 16.0.0
Requires: python-setuptools Requires: python-setuptools
Requires: python-w3lib >= 1.17.2 Requires: python-w3lib >= 1.17.2
Requires: python-zope.interface >= 4.1.3 Requires: python-zope.interface >= 4.1.3
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
@@ -87,12 +89,12 @@ sed -i -e 's:= python:= python3:g' docs/Makefile
%build %build
%python_build %python_build
pushd docs pushd docs
make %{?_smp_mflags} html && rm -r build/html/.buildinfo %make_build html && rm -r build/html/.buildinfo
popd popd
%install %install
%python_install %python_install
%python_clone %{buildroot}%{_bindir}/scrapy %python_clone -a %{buildroot}%{_bindir}/scrapy
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -108,12 +110,17 @@ skiplist="$skiplist and not CrawlerTestCase"
-W ignore::DeprecationWarning \ -W ignore::DeprecationWarning \
tests} tests}
%post
%python_install_alternative scrapy
%postun
%python_uninstall_alternative scrapy
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc AUTHORS README.rst %doc AUTHORS README.rst
%{python_sitelib}/* %{python_sitelib}/*
%{_bindir}/scrapy-%{python_bin_suffix} %python_alternative %{_bindir}/scrapy
%python3_only %{_bindir}/scrapy
%files -n %{name}-doc %files -n %{name}-doc
%doc docs/build/html %doc docs/build/html