diff --git a/.gitignore b/.gitignore index e69de29..2478dc1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/fegistry-0.0.0.tar.gz diff --git a/0001-Explicitly-use-sphinx-build-3-when-building-docs.patch b/0001-Explicitly-use-sphinx-build-3-when-building-docs.patch new file mode 100644 index 0000000..d44abaa --- /dev/null +++ b/0001-Explicitly-use-sphinx-build-3-when-building-docs.patch @@ -0,0 +1,26 @@ +From 30df2983bfa87abce2e1e574e9e4668292ae8cd3 Mon Sep 17 00:00:00 2001 +From: Randy Barlow +Date: Mon, 9 Jan 2017 13:55:12 -0500 +Subject: [PATCH] Explicitly use sphinx-build-3 when building docs. + +Signed-off-by: Randy Barlow +--- + docs/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/docs/Makefile b/docs/Makefile +index d142fa1..7bf11ad 100644 +--- a/docs/Makefile ++++ b/docs/Makefile +@@ -3,7 +3,7 @@ + + # You can set these variables from the command line. + SPHINXOPTS = +-SPHINXBUILD = sphinx-build ++SPHINXBUILD = sphinx-build-3 + SPHINXPROJ = fegistry + SOURCEDIR = . + BUILDDIR = _build +-- +2.9.3 + diff --git a/fegistry.spec b/fegistry.spec new file mode 100644 index 0000000..46eed8c --- /dev/null +++ b/fegistry.spec @@ -0,0 +1,69 @@ +Name: fegistry +Version: 0.0.0 +Release: 1%{?dist} +BuildArch: noarch + +License: GPLv3+ +Summary: The Fedora registry endpoint +URL: https://pagure.io/fegistry +Source0: https://releases.pagure.org/fegistry/fegistry-%{version}.tar.gz +Patch0: 0001-Explicitly-use-sphinx-build-3-when-building-docs.patch + +BuildRequires: python3-devel +BuildRequires: python3-flake8 +BuildRequires: python3-flask +BuildRequires: python3-nose +BuildRequires: python3-nose-cov +BuildRequires: python3-sphinx + + +%description +Fegistry is the container registry endpoint for Fedora's users. It will answer +the initial requests when users docker pull Fedora containers. + + +%package -n python3-fegistry +Summary: Python library for fegistry + +%{?python_provide:%python_provide python3-fegistry} + +Requires: python3-flask + + +%description -n python3-fegistry +This sub-package contains the Python library for fegistry. + + +%prep +%setup -n fegistry-%{version} + +%patch0 -p1 + + +%build +%py3_build + +PYTHONPATH="$(pwd):$PYTHONPATH" make %{?_smp_mflags} -C docs/ html +# We don't need this file +rm docs/_build/html/objects.inv + + +%check +python3 setup.py nosetests + + +%install +%py3_install + + +%files -n python3-fegistry +%license COPYING +%doc docs/_build/html/* +%doc README.md +%{python3_sitelib}/fegistry +%{python3_sitelib}/fegistry-%{version}-py%{python3_version}.egg-info + + +%changelog +* Mon Jan 09 2017 Randy Barlow - 0.0.0-1 +- Initial release. diff --git a/sources b/sources index e69de29..74db4d1 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (fegistry-0.0.0.tar.gz) = f9c9a9a15dbb014ee3e497f030a8ed2f1d63b787ba306e3bb64db86e7a618e7b87e4cb8e606794bb836b2958576192ca3a3885bc68480cce356dc8233d802c17