public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/trash-cli] pr6: Switch Source0 to Github
@ 2026-09-20 13:18 David Auer
  0 siblings, 0 replies; only message in thread
From: David Auer @ 2026-09-20 13:18 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/trash-cli
Branch : pr6
Commit : 32b3d5c01ace3f7ce45775f7e80fa70bafea6e6d
Author : David Auer <dreua@posteo.de>
Date   : 2025-01-19T16:53:55+01:00
Stats  : +5/-8 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/trash-cli/c/32b3d5c01ace3f7ce45775f7e80fa70bafea6e6d?branch=pr6

Log:
Switch Source0 to Github

---
diff --git a/trash-cli.spec b/trash-cli.spec
index 80d7346..74f9c6e 100644
--- a/trash-cli.spec
+++ b/trash-cli.spec
@@ -4,12 +4,7 @@ Version:        0.24.5.26
 Release:        %autorelease
 License:        GPL-2.0-or-later
 URL  :          https://github.com/andreafrancia/trash-cli
-
-# The %%{pypi_source trash-cli} did not work for some reason, therefore the manual url from pypi
-Source0:        https://files.pythonhosted.org/packages/f7/6c/d51b36377c35e4f9e69af4d8b61a920f26251483cdc0165f5513da7aefeb/trash_cli-0.24.5.26.tar.gz
-# TODO: Switch source to Github becaues the one from pypi is lacking tests and SHOULD therefore be replaced by a tar from Github
-# Reference: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_source_files_from_pypi
-# Once that is done a %check section should be added to run at least one basic test (or more if feasible)
+Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
 
 BuildArch:      noarch
 BuildRequires:  python3-setuptools
@@ -21,8 +16,7 @@ freedesktop.org compatible trash implementation. The command line interface is
 compatible with rm and you can use trash-put as an alias to rm.
 
 %prep
-# changed from %%{name} to trash_cli because pypi seems to convert dash to underscore here
-%autosetup -n trash_cli-%{version}
+%autosetup -n %{name}-%{version}
 
 %build
 %py3_build
@@ -30,6 +24,9 @@ compatible with rm and you can use trash-put as an alias to rm.
 %install
 %py3_install
 
+%check
+# Once that is done a %check section should be added to run at least one basic test (or more if feasible)
+
 %files
 %doc README.rst
 

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

only message in thread, other threads:[~2026-09-20 13:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-20 13:18 [rpms/trash-cli] pr6: Switch Source0 to Github David Auer

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