Package python3-module-pyperclip: Specfile

%define  modulename pyperclip

Name:    python3-module-%modulename
Version: 1.8.2
Release: alt1

Summary: Python module for cross-platform clipboard functions.

License: BSD-3-Clause
Group:   Development/Python3

Packager: Grigory Ustinov <>

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-sphinx

BuildArch: noarch

Source:  %modulename-%version.tar


%package doc
Summary: Documentation for %modulename
Group: Development/Documentation

%description doc
Documentation for %modulename.

%setup -n %modulename-%version

# Fix ends of line encoding
sed -i 's/\r$//' docs/*

# generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}


%doc *.md

%files doc
%doc html

* Wed Mar 17 2021 Grigory Ustinov <> 1.8.2-alt1
- Build new version.

* Tue Nov 10 2020 Grigory Ustinov <> 1.8.1-alt1
- Build new version.

* Sun Jun 21 2020 Grigory Ustinov <> 1.8.0-alt1
- Build new version.

* Wed Nov 13 2019 Grigory Ustinov <> 1.7.0-alt2
- Build with docs.

* Tue Oct 22 2019 Grigory Ustinov <> 1.7.0-alt1
- Initial build for Sisyphus.