## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; 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 %bcond_without tests %global _description %{expand: Helper module to easily develop special remotes for git annex. AnnexRemote handles all the protocol stuff for you, so you can focus on the remote itself. It implements the complete external special remote protocol and fulfils all specifications regarding whitespaces etc. This is ensured by an excessive test suite. Extensions to the protocol are normally added within hours after they have been published.} Name: python-annexremote Version: 1.6.0 Release: %autorelease Summary: Git annex special remotes made easy # https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses License: GPLv3 URL: https://pypi.org/pypi/annexremote Source0: %{pypi_source annexremote} # Update the assertion error strings # Sent upstream: https://github.com/Lykos153/AnnexRemote/pull/29 # Required for Py3.10 (F35+) Patch0: 0001-fix-update-assertion-error-text.patch BuildArch: noarch %description %_description %package -n python3-annexremote Summary: %{summary} BuildRequires: python3-devel BuildRequires: git-core %description -n python3-annexremote %_description %package doc Summary: Documentation for %{name} %description doc This package provides documentation for %{name}. %prep %if 0%{?fedora} >= 35 %autosetup -n annexremote-%{version} -S git %else %autosetup -n annexremote-%{version} -N %endif # Replace nose with pytest sed -i "s/'nose'/'pytest'/" setup.py sed -i 's/ def Test/ def test_/' tests/test_*.py # Remove shebang sed -i '/^#![ ]*\/usr\/bin\/env.*$/ d' examples/git-annex-remote-directory chmod -x examples/git-annex-remote-directory %generate_buildrequires %pyproject_buildrequires -r %{?with_tests:-x test} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files annexremote %check # Basic import check test %py3_check_import annexremote %if %{with tests} %{pytest} %endif %files -n python3-annexremote -f %{pyproject_files} %doc README.md %files doc %license LICENSE %doc docs/annexremote examples %changelog * Fri Jan 20 2023 Fedora Release Engineering - 1.6.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 1.6.0-2 - Rebuilt for Python 3.11 * Sat Apr 02 2022 Ankur Sinha (Ankur Sinha Gmail) - 1.6.0-1 - feat: to 1.6.0 (fixes rhbz#2064053) * Fri Jan 21 2022 Fedora Release Engineering - 1.5.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Sep 07 2021 Ankur Sinha (Ankur Sinha Gmail) - 1.5.0-2 - feat: only apply patch for F35+ * Tue Sep 07 2021 Ankur Sinha (Ankur Sinha Gmail) - 1.5.0-1 - feat: init