diff options
| author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-10 16:06:32 -0800 |
|---|---|---|
| committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2021-12-10 16:06:32 -0800 |
| commit | d49916335341d8595c2c6d4e4628d1ed5969fc39 (patch) | |
| tree | 382a4ab12ea62f87e03fbc57d20e5aec8002c318 /python | |
| parent | 97c9e70ad7237e07d3fe210c4d349f370710156e (diff) | |
| download | specs-d49916335341d8595c2c6d4e4628d1ed5969fc39.tar.gz specs-d49916335341d8595c2c6d4e4628d1ed5969fc39.tar.xz specs-d49916335341d8595c2c6d4e4628d1ed5969fc39.zip | |
+ hyperkitty
Diffstat (limited to 'python')
| -rw-r--r-- | python/python-hyperkitty.spec | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/python/python-hyperkitty.spec b/python/python-hyperkitty.spec new file mode 100644 index 0000000..34de99d --- /dev/null +++ b/python/python-hyperkitty.spec @@ -0,0 +1,96 @@ +# Build doc by default +%bcond_without doc + +# mailman3's TestableMaster can't be used outside of a +# source checkout? +%bcond_with tests + +%global srcname hyperkitty +%global pypi_name HyperKitty + +Name: python-%{srcname} +Version: 1.3.5 +Release: %autorelease +Summary: A web interface to access GNU Mailman v3 archives +License: GPLv3+ +URL: https://gitlab.com/mailman/hyperkitty +Source0: %{pypi_source %{pypi_name}} +# don't check out modules from git +Patch0: %{pypi_name}-tox-localdeps.patch + +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-setuptools + +%if %{with doc} +BuildRequires: python%{python3_pkgversion}-sphinx +%endif + +%global _description %{expand: +HyperKitty is an open source Django application under development. It aims to +provide a web interface to access GNU Mailman v3 archives.} + +%description %{_description} + + +%package -n %{srcname} +Summary: %{summary} + +%description -n %{srcname} %{_description} + + +%package -n %{srcname}-doc +Summary: Documentation for %{srcname} +Suggests: %{srcname} = %{version}-%{release} + +%description -n %{srcname}-doc %{_description} + +This package contains the documentation for %{srcname}. + + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + + +%generate_buildrequires +%if %{with tests} +%pyproject_buildrequires -t +%else +%pyproject_buildrequires +%endif + + +%build +%pyproject_wheel + +%if %{with doc} +(cd doc && PYTHONPATH=..:${PYTHONPATH} make html) +%endif + + +%install +%pyproject_install +%pyproject_save_files %{srcname} + + +%if %{with tests} +%check +PYTHONPATH=$(pwd)/src:${PYTHONPATH} \ +%tox +%endif + + +%files -n %{srcname} -f %{pyproject_files} +%license COPYING.txt +%doc AUTHORS.txt README.rst + +%if %{with doc} +%files -n %{srcname}-doc +%license COPYING.txt +%doc doc/_build/html/* +%endif + + +%changelog +%autochangelog |
