Update to 3.0.5 (RHBZ#1721075)

Update Source0 url to use https. Also update %doc as
docs folder is no longer shipped with mock source.
This commit is contained in:
yatinkarel 2019-07-08 13:05:00 +05:30
parent 1e0bbd2d7c
commit 3288397d4a
3 changed files with 13 additions and 9 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@
/mock-1.0.1.tar.gz
/mock-1.3.0.tar.gz
/mock-2.0.0.tar.gz
/mock-3.0.5.tar.gz

View File

@ -10,13 +10,13 @@
%global mod_name mock
Name: python-mock
Version: 2.0.0
Release: 13%{?dist}
Version: 3.0.5
Release: 1%{?dist}
Summary: A Python Mocking and Patching Library for Testing
License: BSD
URL: http://www.voidspace.org.uk/python/%{mod_name}/
Source0: http://pypi.python.org/packages/source/m/%{mod_name}/%{mod_name}-%{version}.tar.gz
Source0: https://pypi.python.org/packages/source/m/%{mod_name}/%{mod_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python2-devel
@ -24,14 +24,14 @@ BuildRequires: python2-setuptools
BuildRequires: python2-funcsigs
BuildRequires: python2-pbr
# For tests
BuildRequires: python2-unittest2
BuildRequires: python2-pytest
%if 0%{?with_python3}
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python3-pbr
# For tests
BuildRequires: python%{python3_pkgversion}-unittest2
BuildRequires: python%{python3_pkgversion}-pytest
%endif
@ -85,7 +85,7 @@ needed attributes in the normal way.
%check
%{__python2} setup.py test
%if 0%{?with_python3}
%{__python3} -m unittest2 discover
%{__python3} setup.py test
%endif
%install
@ -97,20 +97,23 @@ needed attributes in the normal way.
%files -n python2-mock
%license LICENSE.txt
%doc docs/*
%doc README.rst
%{python2_sitelib}/*.egg-info
%{python2_sitelib}/%{mod_name}
%if 0%{?with_python3}
%files -n python%{python3_pkgversion}-mock
%license LICENSE.txt
%doc docs/*
%doc README.rst
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/%{mod_name}
%endif
%changelog
* Mon Jul 08 2019 Yatin Karel <ykarel@redhat.com> - 3.0.5-1
- Update to 3.0.5 (RHBZ#1721075)
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

View File

@ -1 +1 @@
0febfafd14330c9dcaa40de2d82d40ad mock-2.0.0.tar.gz
SHA512 (mock-3.0.5.tar.gz) = 536ab1f0f1448373e9d75e43c6fdb0434adacf0d2cf6eecfe7e590b096c7314914d8e5c20211f196abc59ecb88eb0bf902ae01e7b06d6892e7c0be9d4e35a049