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

%{?!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
Source:         %{modname}-%{version}.tar.gz
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


This package provides a Scrapy middleware for scraping Wayback Machine
snapshots from

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


%fdupes %{buildroot}%{_prefix}

%files %{python_files}
%license LICENSE.txt