Группа :: Development/Python3
Пакет: python3-module-pyperclip
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%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
URL: https://github.com/asweigart/pyperclip
Packager: Grigory Ustinov <grenka at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-sphinx
BuildArch: noarch
Source: %modulename-%version.tar
%description
%summary
%package doc
Summary: Documentation for %modulename
Group: Development/Documentation
%description doc
Documentation for %modulename.
%prep
%setup -n %modulename-%version
# Fix ends of line encoding
sed -i 's/\r$//' README.md docs/*
%build
%python3_build
# generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
%python3_install
%files
%python3_sitelibdir/%modulename/
%python3_sitelibdir/*.egg-info
%doc *.md
%files doc
%doc html
%changelog
…
Полный changelog можно просмотреть здесь
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
URL: https://github.com/asweigart/pyperclip
Packager: Grigory Ustinov <grenka at altlinux.org>
BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-sphinx
BuildArch: noarch
Source: %modulename-%version.tar
%description
%summary
%package doc
Summary: Documentation for %modulename
Group: Development/Documentation
%description doc
Documentation for %modulename.
%prep
%setup -n %modulename-%version
# Fix ends of line encoding
sed -i 's/\r$//' README.md docs/*
%build
%python3_build
# generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%install
%python3_install
%files
%python3_sitelibdir/%modulename/
%python3_sitelibdir/*.egg-info
%doc *.md
%files doc
%doc html
%changelog
…
Полный changelog можно просмотреть здесь