public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/appstream-data] rawhide: ELN with appstream-glib, take 2: split sources version
@ 2026-11-12 19:15 David Jasa
0 siblings, 0 replies; only message in thread
From: David Jasa @ 2026-11-12 19:15 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/appstream-data
Branch : rawhide
Commit : 14b4b7552bea2d2bc51492a3a7dcf0134015b518
Author : David Jasa <djasa@redhat.com>
Date : 2026-11-12T20:09:40+01:00
Stats : +9/-3 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/appstream-data/c/14b4b7552bea2d2bc51492a3a7dcf0134015b518?branch=rawhide
Log:
ELN with appstream-glib, take 2: split sources version
- the Version is set to %rhel if %fedora is not defined, this prevents
apparent downgrade from ELN to CentOS/RHEL
- the rawhide version is set manually in derived_from macro
- the sources uses sources_version that's fedora if defined and
%derived_from if not
---
diff --git a/appstream-data.spec b/appstream-data.spec
index 1ce5337..00330c1 100644
--- a/appstream-data.spec
+++ b/appstream-data.spec
@@ -1,12 +1,18 @@
+# Set to rawhide that the ELN is derived from
+%global derived_from 46
+
+%global os_version %{?fedora}%{?!fedora:%{?rhel}}
+%global sources_version %{?fedora}%{?!fedora:%{?derived_from}}
+
Summary: Fedora AppStream metadata
Name: appstream-data
-Version: %{?fedora}%{!?fedora:%{?rhel}}
+Version: %os_version
Release: %autorelease
BuildArch: noarch
License: CC0-1.0 AND CC-BY-1.0 AND CC-BY-SA-1.0 AND GFDL-1.1-or-later
URL: https://github.com/hughsie/appstream-glib
-Source1: https://dl.fedoraproject.org/pub/alt/screenshots/f%{version}/fedora-%{version}.xml.gz
-Source2: https://dl.fedoraproject.org/pub/alt/screenshots/f%{version}/fedora-%{version}-icons.tar.gz
+Source1: https://dl.fedoraproject.org/pub/alt/screenshots/f%{sources_version}/fedora-%{sources_version}.xml.gz
+Source2: https://dl.fedoraproject.org/pub/alt/screenshots/f%{sources_version}/fedora-%{sources_version}-icons.tar.gz
Source3: gstreamer-non-free.xml
Source4: other-repos.xml
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-12 19:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 19:15 [rpms/appstream-data] rawhide: ELN with appstream-glib, take 2: split sources version David Jasa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox