https://bugzilla.redhat.com/show_bug.cgi?id=1515701 Robert-André Mauchin <zebob.m@xxxxxxxxx> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zebob.m@xxxxxxxxx --- Comment #2 from Robert-André Mauchin <zebob.m@xxxxxxxxx> --- - Use PythonHosted for Source0 to avoid dealing with checksum: Source0: https://files.pythonhosted.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz - %{__python3} setup.py build → %py3_build - %{__python3} setup.py install --skip-build --root %{buildroot} → %py3_install - Generate the docs: BuildRequires: python3-sphinx BuildRequires: python3-sphinx_rtd_theme Then: %install %py3_install pushd docs PYTHONPATH=%{buildroot}%{python3_sitelib} make html popd Finally add it to a -doc subpackage: %package doc Summary: Documentation for Diceware BuildArch: noarch %description doc Diceware is a simple command line tool which can create simple passphrases which human can remember. This package provides documentation for Diceware. And: %files doc %doc docs/_build/html - Run the tests: BuildRequires: python3-pytest BuildRequires: python3-pytest-runner Then: %check PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} - Regenerate the man page: First add this BR: BuildRequires: %{_bindir}/rst2man Then in %install: rst2man docs/manpage.rst %{buildroot}%{_mandir}/man1/diceware.1 And add it in %files: %{_mandir}/man1/diceware.1* - Remove the trailing tabs: Name: diceware Version: 0.9.3 - Simplify the summary: Summary: Create passphrases which one can remember -- You are receiving this mail because: You are on the CC list for the bug. You are always notified about changes to this product and component _______________________________________________ package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx