File python-scrapy-wayback-machine.spec of Package python-scrapy-wayback-machine

#
# spec file for package python-scrapy-wayback-machine
#
# Copyright (c) 2019 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2019 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define         modname scrapy-wayback-machine
Name:           python-%{modname}
Version:        1.0.0
Release:        0
License:        ISC
Summary:        Scrapy middleware for scraping Wayback Machine snapshots
Group:          Development/Languages/Python
URL:		https://github.com/frispete/%{modname}
Source:         %{modname}-%{version}.tar.gz
Source1:        README.md
Source2:        LICENSE.txt
BuildRequires:  fdupes
BuildRequires:  %{python_module Scrapy}
BuildRequires:  %{python_module Twisted}
BuildRequires:  %{python_module cryptography}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires:       python-Scrapy
Requires:       python-Twisted
Requires:       python-cryptography

%python_subpackages

%description
This package provides a Scrapy middleware for scraping Wayback Machine
snapshots from archive.org.

%prep
%setup -q -n %{modname}-%{version}
cp %{S:1} %{S:2} .

%build
%python_build

%install
%python_install
%fdupes %{buildroot}%{_prefix}

%files %{python_files}
%defattr(-,root,root,-)
%license LICENSE.txt
%doc README.md
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by