Blame SPECS/python-pyperclip.spec

be2733
%global pypi_name pyperclip
be2733
be2733
be2733
Name:           python-%{pypi_name}
be2733
Version:        1.8.0
be2733
Release:        3%{?dist}
be2733
Summary:        A cross-platform clipboard module for Python
be2733
be2733
License:        BSD
be2733
URL:            https://github.com/asweigart/pyperclip
be2733
Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
be2733
# Fix tests suite execution
be2733
# Disable all tests requiring a display or toolkit to be available at build time
be2733
Patch0001: 0001-Skip-tests-irrelevant-in-the-context-of-Fedora-packa.patch
be2733
BuildArch:      noarch
be2733
 
be2733
%description
be2733
Pyperclip is a cross-platform Python module for copy and paste clipboard
be2733
functions.
be2733
be2733
%package -n     python3-%{pypi_name}
be2733
Summary:        %{summary}
be2733
%{?python_provide:%python_provide python3-%{pypi_name}}
be2733
be2733
BuildRequires:  python3-devel
be2733
BuildRequires:  python3-setuptools
be2733
be2733
%description -n python3-%{pypi_name}
be2733
Pyperclip is a cross-platform Python module for copy and paste clipboard
be2733
functions.
be2733
be2733
be2733
%package -n python-%{pypi_name}-doc
be2733
Summary:        Pyperclip documentation
be2733
BuildRequires:  python3-sphinx
be2733
be2733
%description -n python-%{pypi_name}-doc
be2733
Documentation for pyperclip
be2733
be2733
be2733
%prep
be2733
%autosetup -p1 -n %{pypi_name}-%{version}
be2733
# Remove bundled egg-info
be2733
rm -rf %{pypi_name}.egg-info
be2733
be2733
# Fix ends of line encoding
be2733
sed -i 's/\r$//' README.md docs/*
be2733
be2733
%build
be2733
%py3_build
be2733
# generate html docs 
be2733
PYTHONPATH=${PWD} sphinx-build docs html
be2733
# remove the sphinx-build leftovers
be2733
rm -rf html/.{doctrees,buildinfo}
be2733
be2733
%install
be2733
%py3_install
be2733
be2733
%check
be2733
%{__python3} setup.py test
be2733
be2733
be2733
%files -n python3-%{pypi_name}
be2733
%doc README.md
be2733
%{python3_sitelib}/%{pypi_name}
be2733
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
be2733
be2733
%files -n python-%{pypi_name}-doc
be2733
%doc html
be2733
be2733
%changelog
be2733
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-3
be2733
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
be2733
be2733
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
be2733
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
be2733
be2733
* Tue Jun 16 2020 Ken Dreyer <kdreyer@redhat.com> - 1.8.0-1
be2733
- Update to 1.8.0 (rhbz#1697423)
be2733
- Use non-git autosetup for simplicity
be2733
be2733
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.6.4-8
be2733
- Rebuilt for Python 3.9
be2733
be2733
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-7
be2733
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
be2733
be2733
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.4-6
be2733
- Rebuilt for Python 3.8.0rc1 (#1748018)
be2733
be2733
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.4-5
be2733
- Rebuilt for Python 3.8
be2733
be2733
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-4
be2733
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
be2733
be2733
* Sun Mar 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.4-3
be2733
- Subpackage python2-pyperclip has been removed
be2733
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
be2733
be2733
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.4-2
be2733
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
be2733
be2733
* Wed Jul 25 2018 Haïkel Guémar <hguemar@fedoraproject.org> - 1.6.4-1
be2733
- Initial package.