## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 3; 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 %global _description %{expand: After 10 years juggling with os.path, zipfile & Co. I thought it is time to bring back more pythonic to APIs. It is made with the philosophy that API's should be intuitive and their defaults should at least cover 80% of what programmer daily needs. Started with the semantic file system pathes, it grows continuous and includes more and more handy stuff for the daily python scripting.} Name: python-fspath Version: 20230218 Release: %{autorelease} Summary: Handling path names and executables more comfortable License: AGPL-3.0-or-later URL: http://return42.github.io/fspath Source0: %{pypi_source fspath} BuildArch: noarch %description %_description %package -n python3-fspath Summary: %{summary} BuildRequires: python3-devel BuildRequires: python3-pytest %description -n python3-fspath %_description %prep %autosetup -n fspath-%{version} # remove shebangs for f in fspath/{cli,debug,os_env}.py do sed -i '1d' "$f" done %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files fspath %check # tries to download the zip and then do stuff on the zip export TEST_TEMPDIR=$RPM_BUILD_ROOT/%{_tmppath} %pytest tests -k "not test_download and not test_ZIP" %files -n python3-fspath -f %{pyproject_files} %doc README.rst %{_bindir}/fspath %{_bindir}/which.py %changelog * Mon Mar 20 2023 Ankur Sinha (Ankur Sinha Gmail) 20230218-2 - update as per review - add readme - use latest pypi release - update tests * Mon Mar 20 2023 Ankur Sinha (Ankur Sinha Gmail) 20230218-1 - fix: update as per review comments - use latest version - update license to new license - replace non-ascii character * Mon Mar 20 2023 Ankur Sinha (Ankur Sinha Gmail) 20190323-3 - chore: add note about license change * Mon Mar 20 2023 Ankur Sinha (Ankur Sinha Gmail) 20190323-2 - feat: ready for review * Mon Mar 20 2023 Ankur Sinha (Ankur Sinha Gmail) 20190323-1 - init