## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global srcname geomet Name: python-%{srcname} Version: 1.0.0 Release: %autorelease Summary: GeoJSON <-> WKT/WKB conversion utilities License: Apache-2.0 URL: https://github.com/geomet/geomet Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %description Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa. %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} Convert GeoJSON to WKT/WKB (Well-Known Text/Binary), and vice versa. %prep %autosetup -n %{srcname}-%{version} # Remove unnecessary shebang for file in geomet/tool.py; do sed -i.orig -e '1d' ${file} && \ touch -r ${file}.orig ${file} && \ rm ${file}.orig done %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check %{python3} setup.py test %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %{_bindir}/geomet %changelog * Sat Nov 26 2022 Elliott Sales de Andrade 1.0.0-1 - Update to latest version (#2142621) * Sun Nov 20 2022 Elliott Sales de Andrade 0.3.0-9 - Use SPDX license * Sun Nov 20 2022 Elliott Sales de Andrade 0.3.0-8 - Switch to latest Python macros * Fri Jul 22 2022 Fedora Release Engineering - 0.3.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.3.0-5 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 0.3.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.3.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.3.0-2 - Rebuilt for Python 3.10 * Sat Feb 06 2021 Elliott Sales de Andrade - 0.3.0-1 - Update to latest version (#1911378) * Wed Jan 27 2021 Fedora Release Engineering - 0.2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.2.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.2.1-4 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.2.1-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Sat Aug 24 2019 Elliott Sales de Andrade - 0.2.1-1 - Update to latest version * Mon Aug 19 2019 Miro Hrončok - 0.2.0-3.post2 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.2.0-2.post2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Mar 15 2019 Elliott Sales de Andrade - 0.2.0-1.post2 - Initial package.