public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Pazdziora <jpazdziora@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-release] f45: Produce distro-level SWID tag in /usr/lib/swidtag/fedoraproject.org.
Date: Mon, 10 Aug 2026 09:34:36 GMT	[thread overview]
Message-ID: <178635447638.1.4828995273545395893.rpms-fedora-release-9f7bbda1a66f@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/fedora-release
            Branch : f45
            Commit : 9f7bbda1a66fbbb30b128d16e875acdd3fa35a30
            Author : Jan Pazdziora <jpazdziora@redhat.com>
            Date   : 2018-10-16T15:29:36+02:00
            Stats  : +39/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-release/c/9f7bbda1a66fbbb30b128d16e875acdd3fa35a30?branch=f45

            Log:
            Produce distro-level SWID tag in /usr/lib/swidtag/fedoraproject.org.

Signed-off-by: Jan Pazdziora <jpazdziora@redhat.com>

---
diff --git a/distro-template.swidtag b/distro-template.swidtag
new file mode 100644
index 0000000..94e1752
--- /dev/null
+++ b/distro-template.swidtag
@@ -0,0 +1,28 @@
+<!-- When changing this file, bump up the @tagVersion value. -->
+<?xml version="1.0" encoding="utf-8"?>
+<SoftwareIdentity
+  xmlns="http://standards.iso.org/iso/19770/-2/2015/schema.xsd"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://standards.iso.org/iso/19770/-2/2015/schema.xsd http://standards.iso.org/iso/19770/-2/2015-current/schema.xsd"
+  xml:lang="en-US"
+  tagId="org.fedoraproject.Fedora-$version"
+  tagVersion="1"
+  name="Fedora"
+  version="$version"
+  versionScheme="unknown"
+  media="(OS:linux)">
+  <Entity
+    name="Fedora Project"
+    regid="fedoraproject.org"
+    role="tagCreator softwareCreator aggregator distributor licensor" />
+  <Link
+    rel="license"
+    href="https://fedoraproject.org/wiki/Legal:Licenses/LicenseAgreement" />
+  <Meta
+    product="Fedora"
+    colloquialVersion="$version"
+    summary="Linux distribution developed by the community-supported Fedora Project and sponsored by Red Hat, Inc."
+    entitlementDataRequired="false"
+    unspscCode="43233004"
+    unspscVersion="20.0601" />
+</SoftwareIdentity>

diff --git a/fedora-release.spec b/fedora-release.spec
index 10ea4c0..d96c7b9 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -1,6 +1,7 @@
 %define release_name Rawhide
 %define dist_version 30
 %define bug_version rawhide
+%{!?_swidtagdir: %define _swidtagdir %{_prefix}/lib/swidtag/fedoraproject.org}
 
 # Change this when branching to fNN
 %define doc_version rawhide
@@ -14,7 +15,7 @@
 Summary:        Fedora release files
 Name:           fedora-release
 Version:        30
-Release:        0.9
+Release:        0.10
 License:        MIT
 URL:            https://fedoraproject.org/
 
@@ -31,6 +32,7 @@ Source15:       80-workstation.preset
 Source16:       org.gnome.shell.gschema.override
 Source17:       org.projectatomic.rpmostree1.rules
 Source18:       80-iot.preset
+Source19:       distro-template.swidtag
 
 Obsoletes:      redhat-release
 Obsoletes:      convert-to-edition < 30-0.7
@@ -377,6 +379,9 @@ install -Dm0644 %{SOURCE15} -t %{buildroot}%{_prefix}/lib/os.release.d/presets/
 install -Dm0644 %{SOURCE16} -t %{buildroot}%{_datadir}/glib-2.0/schemas/
 install -Dm0644 %{SOURCE17} -t %{buildroot}%{_datadir}/polkit-1/rules.d/
 
+# Create distro-level SWID tag file
+install -d %{buildroot}%{_swidtagdir}
+sed -e "s#\$version#%{bug_version}#g" -e 's/<!--.*-->//;/^$/d' %{SOURCE19} > %{buildroot}%{_swidtagdir}/org.fedoraproject.Fedora-%{bug_version}.swidtag
 
 %post -p <lua>
 %include %{SOURCE4}
@@ -539,6 +544,8 @@ uninstall_edition("xfce")
 %{_prefix}/lib/systemd/system-preset/85-display-manager.preset
 %{_prefix}/lib/systemd/system-preset/90-default.preset
 %{_prefix}/lib/systemd/system-preset/99-default-disable.preset
+%dir %{_swidtagdir}
+%{_swidtagdir}/org.fedoraproject.Fedora-%{bug_version}.swidtag
 
 
 %files atomichost
@@ -589,6 +596,9 @@ uninstall_edition("xfce")
 %attr(0644,root,root) /usr/lib/os.release.d/os-release-xfce
 
 %changelog
+* Thu Oct 11 2018 Jan Pazdziora <jpazdziora@redhat.com> 30-0.10
+- Produce distro-level SWID tag in /usr/lib/swidtag/fedoraproject.org.
+
 * Mon Sep 24 2018 Mohan Boddu <mboddu@bhujji.com> 30-0.9
 - Enable the stratis daemon for managing stratis storage
 

                 reply	other threads:[~2026-08-10  9:34 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=178635447638.1.4828995273545395893.rpms-fedora-release-9f7bbda1a66f@fedoraproject.org \
    --to=jpazdziora@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