public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: David Jasa <djasa@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/appstream-data] rawhide: ELN with appstream-glib, take 2: split sources version
Date: Thu, 12 Nov 2026 19:15:56 GMT	[thread overview]
Message-ID: <179451095659.1.7883960394242780738.rpms-appstream-data-14b4b7552bea@fedoraproject.org> (raw)

            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
 

                 reply	other threads:[~2026-11-12 19:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179451095659.1.7883960394242780738.rpms-appstream-data-14b4b7552bea@fedoraproject.org \
    --to=djasa@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox