2 Commits

2 changed files with 13 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 17 04:37:38 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Use pyproject macros to build and install.
- Explicitly list files and directories in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Apr 25 13:47:41 UTC 2022 - Stefan Brüns <stefan.bruens@rwth-aachen.de> Mon Apr 25 13:47:41 UTC 2022 - Stefan Brüns <stefan.bruens@rwth-aachen.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-cligj # spec file for package python-cligj
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cligj Name: python-cligj
Version: 0.7.2 Version: 0.7.2
Release: 0 Release: 0
@@ -26,7 +25,9 @@ URL: https://github.com/mapbox/cligj
Group: Development/Languages/Python Group: Development/Languages/Python
# pypi source lack license and tests # pypi source lack license and tests
Source: https://github.com/mapbox/cligj/archive/%{version}.tar.gz#/cligj-%{version}.tar.gz Source: https://github.com/mapbox/cligj/archive/%{version}.tar.gz#/cligj-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION test requirements # SECTION test requirements
@@ -47,10 +48,10 @@ Common arguments and options for GeoJSON processing commands, using Click.
chmod a-x LICENSE chmod a-x LICENSE
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -62,6 +63,7 @@ py.test-%{$python_bin_suffix}
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/cligj
%{python_sitelib}/cligj-%{version}.dist-info
%changelog %changelog