public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gdm] rawhide: Switch to gnome-srpm-macros macros
@ 2026-07-01 6:04 Milan Crha
0 siblings, 0 replies; only message in thread
From: Milan Crha @ 2026-07-01 6:04 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/gdm
Branch : rawhide
Commit : 06f3117aabd7118cb6db26e9b5a3169ef99025cb
Author : Milan Crha <mcrha@redhat.com>
Date : 2026-07-01T07:40:17+02:00
Stats : +4/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/gdm/c/06f3117aabd7118cb6db26e9b5a3169ef99025cb?branch=rawhide
Log:
Switch to gnome-srpm-macros macros
[skip changelog]
---
diff --git a/gdm.spec b/gdm.spec
index 410c412..942e024 100644
--- a/gdm.spec
+++ b/gdm.spec
@@ -2,9 +2,6 @@
%define gtk3_version 2.99.2
-%global tarball_version %%(echo %%{version} | tr '~' '.')
-%global major_version %%(echo %%{tarball_version} | cut -d "." -f 1)
-
# This controls support for launching X11 desktops.
# gdm itself will always use Wayland.
%if 0%{?rhel}
@@ -21,10 +18,12 @@ Summary: The GNOME Display Manager
License: GPL-2.0-or-later
URL: https://wiki.gnome.org/Projects/GDM
-Source0: https://download.gnome.org/sources/gdm/%{major_version}/gdm-%{tarball_version}.tar.xz
+Source0: https://download.gnome.org/sources/%{name}/%{gnome_major_version}/%{name}-%{gnome_tarball_version}.tar.xz
Source1: org.gnome.login-screen.gschema.override
Source2: gdm.sysusers
+%gnome_check_version
+
# Upstream patches
# From PR https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/357
Patch: gdm.service.in-Also-conflict-with-kmsconvt.patch
@@ -116,10 +115,7 @@ files that are helpful to PAM modules wishing to support
GDM specific authentication features.
%prep
-# check for human errors
-if [ `echo "%{version}" | grep -cE "\.alpha|\.beta|\.rc"` = "1" ]; then echo "Error: Use tilde in Version field in front of alpha/beta/rc; checked '%{version}'" 1>&2; exit 1; fi
-
-%autosetup -S git -p1 -n gdm-%{tarball_version}
+%autosetup -S git -p1 -n %{name}-%{gnome_tarball_version}
%build
%meson -Ddbus-sys=%{_datadir}/dbus-1/system.d \
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-01 6:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-01 6:04 [rpms/gdm] rawhide: Switch to gnome-srpm-macros macros Milan Crha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox