2019-07-24 09:52:05 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-furl
|
|
|
|
#
|
2021-02-23 16:42:07 +00:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2019-07-24 09:52:05 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-07-24 09:54:10 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2019-07-24 09:52:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-furl
|
2021-05-17 11:16:48 +00:00
|
|
|
Version: 2.1.2
|
2019-07-24 09:52:05 +00:00
|
|
|
Release: 0
|
2019-08-25 05:20:34 +00:00
|
|
|
Summary: A Python URL manipulation library
|
2019-07-24 09:54:10 +00:00
|
|
|
License: Unlicense
|
2019-07-24 09:52:05 +00:00
|
|
|
Group: Development/Languages/Python
|
2019-07-24 09:54:10 +00:00
|
|
|
URL: https://github.com/gruns/furl
|
2019-07-24 09:52:05 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/f/furl/furl-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
2019-07-24 09:54:10 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-07-24 09:52:05 +00:00
|
|
|
Requires: python-orderedmultidict >= 1.0
|
|
|
|
Requires: python-six >= 1.8.0
|
|
|
|
BuildArch: noarch
|
2019-07-24 09:54:10 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module flake8}
|
|
|
|
BuildRequires: %{python_module orderedmultidict >= 1.0}
|
2021-02-23 16:42:07 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-07-24 09:54:10 +00:00
|
|
|
BuildRequires: %{python_module six >= 1.8.0}
|
|
|
|
# /SECTION
|
2019-07-24 09:52:05 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2019-08-25 05:20:34 +00:00
|
|
|
furl is a Python library for parsing and manipulating URLs.
|
2019-07-24 09:52:05 +00:00
|
|
|
|
|
|
|
%prep
|
2021-02-23 16:42:07 +00:00
|
|
|
%autosetup -p1 -n furl-%{version}
|
|
|
|
|
|
|
|
chmod -x *.md
|
2019-07-24 09:52:05 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
2021-03-30 10:19:42 +00:00
|
|
|
%{python_expand #
|
|
|
|
chmod -x %{buildroot}%{$python_sitelib}/furl-%{version}*-info/*
|
|
|
|
%fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
}
|
2019-07-24 09:54:10 +00:00
|
|
|
|
2019-07-24 09:52:05 +00:00
|
|
|
%check
|
2021-03-30 10:19:42 +00:00
|
|
|
%pytest
|
2019-07-24 09:52:05 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE.md
|
2021-03-30 10:19:42 +00:00
|
|
|
%{python_sitelib}/furl
|
|
|
|
%{python_sitelib}/furl-%{version}*-info
|
2019-07-24 09:52:05 +00:00
|
|
|
|
|
|
|
%changelog
|