e3a1621
Name:		diceware
e6b1a0c
Version:	0.9.5
73f55a4
Release:	15%{?dist}
e3a1621
Summary:	Create passphrases which one can remember
e3a1621
e3a1621
License:	GPLv3+
e3a1621
URL:		https://pypi.python.org/pypi/diceware
e3a1621
Source0:	https://files.pythonhosted.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz
e3a1621
e3a1621
BuildArch:	noarch
e3a1621
BuildRequires:	python3-setuptools
e3a1621
BuildRequires:	python3-devel
e3a1621
BuildRequires:	python3-pytest
e3a1621
BuildRequires:	python3-pytest-runner
e3a1621
BuildRequires:	%{_bindir}/rst2man
e3a1621
e3a1621
%description
e3a1621
A simple command line tool which can create simple passphrases
e3a1621
which human can remember.
e3a1621
e3a1621
%package doc
e3a1621
Summary:    Documentation for Diceware
e3a1621
BuildArch:  noarch
e3a1621
BuildRequires:	python3-sphinx
e3a1621
BuildRequires:	python3-sphinx_rtd_theme
e3a1621
%description doc
e3a1621
Diceware is a simple command line tool which can create simple
e3a1621
passphrases which human can remember.
e3a1621
e3a1621
This package provides documentation for Diceware.
e3a1621
e3a1621
e3a1621
e3a1621
%prep
e3a1621
%autosetup
e3a1621
e3a1621
e3a1621
%build
e3a1621
%py3_build
e3a1621
e3a1621
e3a1621
%install
e3a1621
%py3_install
e3a1621
mkdir -p %{buildroot}%{_mandir}/man1
e3a1621
rst2man docs/manpage.rst %{buildroot}%{_mandir}/man1/diceware.1
e3a1621
e3a1621
pushd docs
e3a1621
PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build-3 -b html -d _build/doctrees . _build/html
e3a1621
popd
e3a1621
e3a1621
# Remove unneeded build artifacts.
e3a1621
rm -rf docs/_build/.buildinfo
e3a1621
rm -rf docs/_build/html/.buildinfo
e3a1621
rm -rf docs/_build/.doctrees
e3a1621
e3a1621
e3a1621
%check
e3a1621
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version}
e3a1621
e3a1621
%files doc
e3a1621
%doc docs/_build/html
e3a1621
e3a1621
%files
e3a1621
%doc README.rst COPYRIGHT
e3a1621
%license LICENSE
e3a1621
%{_bindir}/%{name}
e3a1621
%{python3_sitelib}/%{name}*
e3a1621
%{_mandir}/man1/diceware.1*
e3a1621
e3a1621
e3a1621
e3a1621
%changelog
73f55a4
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-15
73f55a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
73f55a4
775f6ad
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-14
775f6ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
775f6ad
0808b50
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.9.5-13
0808b50
- Rebuilt for Python 3.11
0808b50
d041d22
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-12
d041d22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
d041d22
aabf2c7
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-11
aabf2c7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
aabf2c7
c142c0e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.9.5-10
c142c0e
- Rebuilt for Python 3.10
c142c0e
67a74aa
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-9
67a74aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
67a74aa
d94d45e
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-8
d94d45e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d94d45e
a8c5246
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.9.5-7
a8c5246
- Rebuilt for Python 3.9
a8c5246
81342d9
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-6
81342d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
81342d9
3fa2138
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.5-5
3fa2138
- Rebuilt for Python 3.8.0rc1 (#1748018)
3fa2138
faed48e
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.9.5-4
faed48e
- Rebuilt for Python 3.8
faed48e
ed812bb
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-3
ed812bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ed812bb
a6672a6
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.5-2
a6672a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a6672a6
e6b1a0c
* Sat Jul 14 2018 Kushal Das <kushal@fedoraproject.org> - 0.9.5-1
e6b1a0c
- Updates to 0.9.5 release
e6b1a0c
0be3e64
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-6
0be3e64
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
0be3e64
b5ddd5e
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.9.3-5
b5ddd5e
- Rebuilt for Python 3.7
b5ddd5e
88f4522
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.3-4
88f4522
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
88f4522
e3a1621
* Wed Dec 27 2017 Kushal Das <kushal@fedoraproject.org> - 0.9.3-3
e3a1621
- Updates based on review and docs subpackage
e3a1621
e3a1621
* Wed Dec 27 2017 Kushal Das <kushal@fedoraproject.org> - 0.9.3-2
e3a1621
- Updates based on review
e3a1621
e3a1621
* Mon Nov 20 2017 Kushal Das <kushal@fedoraproject.org> - 0.9.3-1
e3a1621
- Initial build