From e3a16214c4274b15a965d1251ab6b9d3a7fe35e8 Mon Sep 17 00:00:00 2001 From: Kushal Das Date: Dec 28 2017 14:21:47 +0000 Subject: Initial build --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6d9d812 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/diceware-0.9.3.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 64c8503..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# diceware - -The diceware package \ No newline at end of file diff --git a/diceware.spec b/diceware.spec new file mode 100644 index 0000000..641e43d --- /dev/null +++ b/diceware.spec @@ -0,0 +1,80 @@ +Name: diceware +Version: 0.9.3 +Release: 3%{?dist} +Summary: Create passphrases which one can remember + +License: GPLv3+ +URL: https://pypi.python.org/pypi/diceware +Source0: https://files.pythonhosted.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: python3-setuptools +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-pytest-runner +BuildRequires: %{_bindir}/rst2man + +%description +A simple command line tool which can create simple passphrases +which human can remember. + +%package doc +Summary: Documentation for Diceware +BuildArch: noarch +BuildRequires: python3-sphinx +BuildRequires: python3-sphinx_rtd_theme +%description doc +Diceware is a simple command line tool which can create simple +passphrases which human can remember. + +This package provides documentation for Diceware. + + + +%prep +%autosetup + + +%build +%py3_build + + +%install +%py3_install +mkdir -p %{buildroot}%{_mandir}/man1 +rst2man docs/manpage.rst %{buildroot}%{_mandir}/man1/diceware.1 + +pushd docs +PYTHONPATH=%{buildroot}%{python3_sitelib} sphinx-build-3 -b html -d _build/doctrees . _build/html +popd + +# Remove unneeded build artifacts. +rm -rf docs/_build/.buildinfo +rm -rf docs/_build/html/.buildinfo +rm -rf docs/_build/.doctrees + + +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} + +%files doc +%doc docs/_build/html + +%files +%doc README.rst COPYRIGHT +%license LICENSE +%{_bindir}/%{name} +%{python3_sitelib}/%{name}* +%{_mandir}/man1/diceware.1* + + + +%changelog +* Wed Dec 27 2017 Kushal Das - 0.9.3-3 +- Updates based on review and docs subpackage + +* Wed Dec 27 2017 Kushal Das - 0.9.3-2 +- Updates based on review + +* Mon Nov 20 2017 Kushal Das - 0.9.3-1 +- Initial build diff --git a/sources b/sources new file mode 100644 index 0000000..deb30a5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (diceware-0.9.3.tar.gz) = 59cbc09069051ac6fc5c35922f1ea23a122212bb58c6e1ce136bebc0765f04fd81c78afed3af7b93ffe63d600b3c2a9afc8a8bf58c0da7ca5692e97e5b919303