public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-tilestache] rawhide: Fix F45FTBFS + spec cleanup and modernization
@ 2026-08-06  0:28 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-06  0:28 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-tilestache
            Branch : rawhide
            Commit : ebc2becbfc6aec8148ff7a25f7e615c7ee3aefd0
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-05T21:27:06-03:00
            Stats  : +16/-12 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-tilestache/c/ebc2becbfc6aec8148ff7a25f7e615c7ee3aefd0?branch=rawhide

            Log:
            Fix F45FTBFS + spec cleanup and modernization

Resolves: rhbz#2378277
Resolves: rhbz#2485969
Resolves: rhbz#2504587

---
diff --git a/.gitignore b/.gitignore
index 4ecd51f..2a91a34 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
-/TileStache-86a331e6d8bad7fac1a4a53b46a2bd49c848f348.tar.gz
-/TileStache-e96532bf59bf79c9991dcc06628f28b27bb19c08.tar.gz
+/TileStache-*.tar.gz

diff --git a/python-tilestache.spec b/python-tilestache.spec
index 2df7af0..5e51c9b 100644
--- a/python-tilestache.spec
+++ b/python-tilestache.spec
@@ -1,7 +1,9 @@
 %global pkgname tilestache
 %global srcname TileStache
 
+%global forgeurl https://github.com/TileStache/TileStache
 %global commit e96532bf59bf79c9991dcc06628f28b27bb19c08
+%forgemeta
 
 Name:           python-%{pkgname}
 Version:        1.51.14
@@ -9,8 +11,8 @@ Release:        27%{?dist}
 Summary:        A stylish alternative for caching your map tiles
 
 License:        BSD-3-Clause
-URL:            http://tilestache.org
-Source0:        https://github.com/%{srcname}/%{srcname}/archive/%{commit}/%{srcname}-%{commit}.tar.gz
+URL:            %{forgeurl}
+Source:         %{forgesource}
 
 # Modify font search to find the system DejaVuSansMono.ttf - Not submitted upstream
 Patch0:         %{name}-1.49.11-use-system-fonts.patch
@@ -56,13 +58,12 @@ BuildRequires:  python%{python3_pkgversion}-devel
 BuildRequires:  python%{python3_pkgversion}-gdal
 BuildRequires:  python%{python3_pkgversion}-memcached
 BuildRequires:  python%{python3_pkgversion}-modestmaps >= 1.3.0
+BuildRequires:  python%{python3_pkgversion}-pkg-resources
 BuildRequires:  python%{python3_pkgversion}-pytest
-BuildRequires:  python%{python3_pkgversion}-setuptools
 BuildRequires:  python%{python3_pkgversion}-shapely
 BuildRequires:  python%{python3_pkgversion}-werkzeug
 Requires:       font(dejavusansmono)
 Conflicts:      python2-%{pkgname} < %{version}-%{release}
-%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
 
 %if %{undefined __pythondist_requires}
 Requires:       python%{python3_pkgversion}-imaging
@@ -86,12 +87,17 @@ sed -i '1i #!%{_bindir}/bash' examples/zoom_example/run_server.sh
 sed -i '1{s@^#!/usr/bin/env python@#!%{__python3}@}' examples/geotiff/server.py
 
 
+%generate_buildrequires
+%pyproject_buildrequires
+
+
 %build
-%py3_build
+%pyproject_wheel
 
 
 %install
-%py3_install
+%pyproject_install
+%pyproject_save_files -l %{srcname}
 
 install -d %{buildroot}%{_mandir}/man1
 install -p -m0644 man/tilestache-clean.1 %{buildroot}%{_mandir}/man1/
@@ -106,6 +112,8 @@ cp -a examples %{buildroot}%{_datadir}/%{srcname}/
 
 
 %check
+%pyproject_check_import -e 'TileStache.Goodies.Proj4Projection' -e 'TileStache.Goodies.Providers.Composite' -e 'TileStache.Goodies.Providers.MapnikGrid' -e 'TileStache.Goodies.Providers.MirrorOSM' -e 'TileStache.Goodies.StatusServer' -e 'TileStache.Goodies.VecTiles*'
+
 NO_DATABASE=1 OFFLINE_TESTS=1 %pytest \
   --override-ini 'python_files=*_tests.py' \
   --ignore tests/vectiles_tests.py \
@@ -117,11 +125,8 @@ NO_DATABASE=1 OFFLINE_TESTS=1 %pytest \
 %doc README.md
 %{_datadir}/%{srcname}
 
-%files -n python%{python3_pkgversion}-%{pkgname}
-%license LICENSE
+%files -n python%{python3_pkgversion}-%{pkgname} -f %{pyproject_files}
 %doc API.html CHANGELOG README.md
-%{python3_sitelib}/%{srcname}/
-%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
 %{_bindir}/tilestache-clean.py
 %{_bindir}/tilestache-compose.py
 %{_bindir}/tilestache-list.py

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-06  0:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-06  0:28 [rpms/python-tilestache] rawhide: Fix F45FTBFS + spec cleanup and modernization Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox