Name: pynote Version: 1.0.0 Release: 2%{?dist} Summary: Manage notes on the commandline License: MIT URL: https://github.com/rumpelsepp/pynote Source0: https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-setuptools BuildRequires: python3-devel BuildRequires: python3-sphinx BuildRequires: gzip Requires: python3-click Requires: python3-babel Requires: python3-pygments Requires: python3-plaintable %package doc Summary: Documentation for %name Requires: %{name} = %{version}-%{release} %description Pynote is a project to manage your notes on the commandline. %description doc Documentation for %name %prep %setup -q -n %{name}-%{version} #Remove egg.info rm -rf %{name}.egg.info %build %{__python3} setup.py build --quiet %install %{__python3} setup.py install --skip-build --root %{buildroot} pushd docs make html && make man popd mv docs/html htmldocs gzip docs/man/note.1 gzip docs/man/noterc.5 mkdir -p %{buildroot}/%{_mandir}/man1 mkdir -p %{buildroot}/%{_mandir}/man5 install -p -m 0644 docs/man/note.1.gz %{buildroot}/%{_mandir}/man1/ install -p -m 0644 docs/man/noterc.5.gz %{buildroot}/%{_mandir}/man5/ rm -rf docs rm -f htmldocs/.buildinfo %files %{!?_licensedir:%global license %%doc} %license LICENSE %doc README.rst %{_mandir}/* %{_bindir}/* %{python3_sitelib}/%{name} %{python3_sitelib}/%{name}-%{version}-py?.?.egg-info %files doc %doc htmldocs %changelog * Wed Jun 10 2015 William Moreno Reyes - 1.0.0-2 - Include man - List all dependencies * Tue Jun 09 2015 William Moreno Reyes - 1.0.0-1 - Initial Packaging