#2 Simplify packaging & drop obsolete dependencies
Closed 4 years ago by ignatenkobrain. Opened 4 years ago by ignatenkobrain.
rpms/ ignatenkobrain/python-requests_ntlm master  into  master

file modified
+24 -26
@@ -1,41 +1,37 @@ 

  %global srcname requests_ntlm

- %global gh_owner requests

  %global gh_name requests-ntlm

  

  Name:           python-%{srcname}

  Version:        1.1.0

- Release:        6%{?dist}

+ Release:        7%{?dist}

  Summary:        NTLM module for python requests

  

  License:        ISC

- URL:            https://pypi.python.org/pypi/%{srcname}

- Source0:        https://github.com/%{gh_owner}/%{gh_name}/archive/v%{version}.tar.gz#/%{gh_name}-%{version}.tar.gz

+ URL:            https://pypi.python.org/pypi/requests_ntlm

+ Source:         https://github.com/requests/%{gh_name}/archive/v%{version}/%{gh_name}-%{version}.tar.gz

  BuildArch:      noarch

  

- BuildRequires:  python3-setuptools

- BuildRequires:  python3-devel

- BuildRequires:  python3-ntlm-auth

- BuildRequires:  python3-cryptography

- 

- # For tests

- BuildRequires:  python3-pytest

- BuildRequires:  python3-requests

- BuildRequires:  python3-flask

- BuildRequires:  /usr/bin/pkill

+ %global _description %{expand:

+ This package allows Python clients running on any operating system to provide

+ NTLM authentication to a supporting server.}

  

- %description

-  This package allows Python clients running on any operating system to provide

- NTLM authentication to a supporting server.

+ %description %{_description}

  

  %package -n     python3-%{srcname}

- Requires:       python3-cryptography

- Summary:        Python 3 compatible NTLM library

+ Summary:        %{summary}

  %{?python_provide:%python_provide python3-%{srcname}}

- Requires:       python3-ntlm3

+ BuildRequires:  python3-devel

+ BuildRequires:  python3-setuptools

+ BuildRequires:  python3dist(requests) >= 2.0.0

+ BuildRequires:  python3dist(ntlm-auth) >= 1.0.2

+ BuildRequires:  python3dist(cryptography) >= 1.3

+ # For tests

+ BuildRequires:  python3-pytest

+ BuildRequires:  python3dist(flask)

  

- %description -n python3-%{srcname}

-  This package allows Python clients running on any operating system to provide

- NTLM authentication to a supporting server.

+ %description -n python3-%{srcname} %{_description}

+ 

+ Python 3 version.

  

  %prep

  %autosetup -n %{gh_name}-%{version}
@@ -51,15 +47,17 @@ 

  %check

  %{__python3} -m tests.test_server &

  %{__python3} -m pytest --ignore=tests/functional/test_functional.py --ignore=tests/test_server.py tests

- pkill -f 'python3 -m tests.test_server'

  

  %files -n python3-%{srcname}

  %license LICENSE

  %doc CONTRIBUTORS.rst README.rst

- %{python3_sitelib}/%{srcname}

- %{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info

+ %{python3_sitelib}/%{srcname}/

+ %{python3_sitelib}/%{srcname}-*.egg-info/

  

  %changelog

+ * Sun Jul 28 15:28:53 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.1.0-7

+ - Simplify packaging & drop obsolete dependencies

+ 

  * Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-6

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

  

Pull-Request has been closed by ignatenkobrain

4 years ago
Metadata