## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # tests require running a solr server %bcond_with tests %global pypi_name django-haystack Name: python-%{pypi_name} Version: 3.2.1 Release: %autorelease Summary: Pluggable search for Django License: BSD-3-Clause URL: http://haystacksearch.org/ Source: %{pypi_source} BuildArch: noarch %global _description %{expand: Haystack provides modular search for Django. It features a unified, familiar API that allows you to plug in different search backends (such as Solr, Elasticsearch, Whoosh, Xapian, etc.) without having to modify your code. Haystack is BSD licensed, plays nicely with third-party app without needing to modify the source and supports advanced features like faceting, More Like This, highlighting, spatial search and spelling suggestions. You can find more information at http://haystacksearch.org/.} %description %_description %package -n python3-%{pypi_name} Summary: Haystack provides modular search for Django - Python 3 version BuildRequires: python3-devel %description -n python3-%{pypi_name} %_description This package provides Python 3 build of %{pypi_name}. %package docs Summary: Documentation for Django Haystack pluggable search # Not requiring the main package, as users may wish to install # the documentation separately. BuildRequires: make BuildRequires: python3dist(sphinx) # Those two sphinxcontrib dependencies are pulled by default by upstream Sphinx, # but in preparation for their separation, we explicitly list them to build # htmlhelp, json and pickle docs. # Upstream's tox.ini is not a good place for those, becasue it only builds html. BuildRequires: python3dist(sphinxcontrib-htmlhelp) BuildRequires: python3dist(sphinxcontrib-serializinghtml) %description docs Documentation for Django Haystack pluggable search %_description %prep %autosetup -p1 -n %{pypi_name}-%{version} %generate_buildrequires %pyproject_buildrequires %{?with_tests:-t} %build %pyproject_wheel # Re-generate documentation # Docs cannot be built in parallel # We cannot build 'linkcheck' because it requires network access pushd docs make clean html htmlhelp latex json pickle changes popd %install %pyproject_install %pyproject_save_files haystack %check # currently does not work: can't find test_haystack # export DJANGO_SETTINGS_MODULE=test_haystack.settings # export PYTHONPATH="%{buildroot}%{python3_sitelib}:$PWD" # pyproject_check_import %if %{with tests} %tox %endif %files -n python3-%{pypi_name} -f %{pyproject_files} %doc PKG-INFO README.rst AUTHORS %license LICENSE %files docs %doc docs/ %changelog ## START: Generated by rpmautospec * Fri Jul 19 2024 Fedora Release Engineering - 3.2.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 3.2.1-6 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 3.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 3.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Nov 09 2023 Miro Hrončok - 3.2.1-3 - Don't BuildRequire tox to generate a single dependency on sphinx * Tue Nov 07 2023 Miro Hrončok - 3.2.1-2 - Explicitly BuildRequire sphinxcontrib.htmlhelp and sphinxcontrib.serializinghtml * Thu Oct 26 2023 Michel Lind - 3.2.1-1 - Update to 3.2.1 - Modernize spec to use new Python packaging guidelines - Drop old Obsoletes added back in Fedora 28 - Use SPDX license identifier * Fri Jul 21 2023 Fedora Release Engineering - 3.0-0.1.b2.11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jun 29 2023 Python Maint - 3.0-0.1.b2.10 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 3.0-0.1.b2.9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 3.0-0.1.b2.8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 14 2022 Python Maint - 3.0-0.1.b2.7 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 3.0-0.1.b2.6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jul 27 2021 Fedora Release Engineering - 3.0-0.1.b2.5 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 3.0-0.1.b2.4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 3.0-0.1.b2.3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 3.0-0.1.b2.2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 3.0-0.1.b2.1 - Rebuilt for Python 3.9 * Mon May 04 2020 Nils Philippsen - 3.0-0.1.b2 - Update to version 3.0b2 * Thu Jan 30 2020 Fedora Release Engineering - 2.5.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 2.5.0-11 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 2.5.0-10 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 2.5.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 2.5.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 2.5.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.5.0-6 - Rebuilt for Python 3.7 * Tue Feb 13 2018 Matthias Runge - 2.5.0-5 - fix FTBFS - drop python2 package for https://fedoraproject.org/wiki/Changes/Django20 * Fri Feb 09 2018 Fedora Release Engineering - 2.5.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.5.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 2.5.0-2 - Rebuild for Python 3.6 * Wed Aug 3 2016 Jan Beran - 2.5.0-1 - update to version 2.5.0 - source update - modernized specfile with Python 3 packaging * Tue Jul 19 2016 Fedora Release Engineering - 2.3.1-3 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 2.3.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jun 16 2015 Stephen Gallagher 2.3.1-1 - Update to 2.3.1 * Sat Jun 07 2014 Fedora Release Engineering - 2.1.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Feb 27 2014 Stephen Gallagher 2.1.0-4 - Build -docs subpackage - Remove hidden files and cruft from other OSes - Force rebuild of documentation * Fri Jan 24 2014 Stephen Gallagher 2.1.0-3 - Remove extra BuildRequires: python-django * Thu Jan 23 2014 Stephen Gallagher - 2.1.0-2 - Correct %%description * Thu Jan 23 2014 Stephen Gallagher - 2.1.0-1 - Initial release ## END: Generated by rpmautospec