public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Kevin Fenzi <kevin@scrye.com>
To: git-commits@fedoraproject.org
Subject: [rpms/fedora-release] f45: Add a mobility desktop identity.
Date: Mon, 10 Aug 2026 09:36:06 GMT	[thread overview]
Message-ID: <178635456638.1.12480174652115679736.rpms-fedora-release-45f5d86b8be7@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/fedora-release
            Branch : f45
            Commit : 45f5d86b8be7ff2fa33f7fc6ab9f6abe9cd8e890
            Author : Kevin Fenzi <kevin@scrye.com>
            Date   : 2023-04-24T14:42:47-07:00
            Stats  : +55/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedora-release/c/45f5d86b8be7ff2fa33f7fc6ab9f6abe9cd8e890?branch=f45

            Log:
            Add a mobility desktop identity.

This should be usable by phosh and also upcoming possible mobility
images like kmobile and gnome-mobile and others.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>

---
diff --git a/fedora-release.spec b/fedora-release.spec
index 58c5164..ee7bd2c 100644
--- a/fedora-release.spec
+++ b/fedora-release.spec
@@ -40,6 +40,7 @@
 %bcond_with budgie
 %bcond_with sway
 %bcond_with sericea
+%bcond_with mobility
 %else
 %bcond_without basic
 %bcond_without cinnamon
@@ -64,6 +65,7 @@
 %bcond_without budgie
 %bcond_without sway
 %bcond_without sericea
+%bcond_without mobility
 %endif
 
 %if %{with silverblue} || %{with kinoite} || %{with sericea}
@@ -1035,6 +1037,43 @@ itself as Fedora Sericea.
 %endif
 
 
+%if %{with mobility}
+%package mobility
+Summary:        Base package for Fedora Mobility specific default configurations
+
+RemovePathPostfixes: .mobility
+Provides:       fedora-release = %{version}-%{release}
+Provides:       fedora-release-variant = %{version}-%{release}
+Provides:       system-release
+Provides:       system-release(%{version})
+Provides:       base-module(platform:f%{version})
+Requires:       fedora-release-common = %{version}-%{release}
+
+# fedora-release-common Requires: fedora-release-identity, so at least one
+# package must provide it. This Recommends: pulls in
+# fedora-release-identity-mobility if nothing else is already doing so.
+Recommends:     fedora-release-identity-mobility
+
+
+%description mobility
+Provides a base package for Fedora Mobility specific configuration
+files to depend on.
+
+
+%package identity-mobility
+Summary:        Package providing the identity for Fedora Mobility
+
+RemovePathPostfixes: .mobility
+Provides:       fedora-release-identity = %{version}-%{release}
+Conflicts:      fedora-release-identity
+Requires(meta): fedora-release-mobility = %{version}-%{release}
+
+
+%description identity-mobility
+Provides the necessary files for a Fedora installation that is identifying
+itself as Fedora Mobility.
+%endif
+
 %prep
 mkdir -p licenses
 sed 's|@@VERSION@@|%{dist_version}|g' %{SOURCE2} >licenses/Fedora-Legal-README.txt
@@ -1412,10 +1451,16 @@ sed -i -e 's|BUG_REPORT_URL=.*|BUG_REPORT_URL="https://gitlab.com/fedora/sigs/sw
 sed -e "s#\$version#%{bug_version}#g" -e 's/$edition/Sericea/;s/<!--.*-->//;/^$/d' %{SOURCE20} > %{buildroot}%{_swidtagdir}/org.fedoraproject.Fedora-edition.swidtag.sericea
 %endif
 
+%if %{with mobility}
+cp -p os-release %{buildroot}%{_prefix}/lib/os-release.mobility
+echo "VARIANT=\"Mobility\"" >> %{buildroot}%{_prefix}/lib/os-release.mobility
+echo "VARIANT_ID=mobility" >> %{buildroot}%{_prefix}/lib/os-release.mobility
+sed -i -e "s|(%{release_name}%{?prerelease})|(Mobility%{?prerelease})|g" %{buildroot}%{_prefix}/lib/os-release.mobility
+sed -e "s#\$version#%{bug_version}#g" -e 's/$edition/Mobility/;s/<!--.*-->//;/^$/d' %{SOURCE20} > %{buildroot}%{_swidtagdir}/org.fedoraproject.Fedora-edition.swidtag.mobility
+%endif
 # Create the symlink for /etc/os-release
 ln -s ../usr/lib/os-release %{buildroot}%{_sysconfdir}/os-release
 
-
 # Set up the dist tag macros
 install -d -m 755 %{buildroot}%{_rpmconfigdir}/macros.d
 cat >> %{buildroot}%{_rpmconfigdir}/macros.d/macros.dist << EOF
@@ -1704,5 +1749,14 @@ ln -s --relative %{buildroot}%{_swidtagdir} %{buildroot}%{_sysconfdir}/swid/swid
 %endif
 
 
+%if %{with mobility}
+%files mobility
+%files identity-mobility
+%{_prefix}/lib/os-release.mobility
+%attr(0644,root,root) %{_swidtagdir}/org.fedoraproject.Fedora-edition.swidtag.mobility
+%{_prefix}/lib/systemd/system-preset/81-desktop.preset
+%endif
+
+
 %changelog
 %autochangelog

                 reply	other threads:[~2026-08-10  9:36 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=178635456638.1.12480174652115679736.rpms-fedora-release-45f5d86b8be7@fedoraproject.org \
    --to=kevin@scrye.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