public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/kwin] f45: Add RPM macros for kwin versioning to devel package
@ 2026-10-31 10:29 Neal Gompa
  0 siblings, 0 replies; only message in thread
From: Neal Gompa @ 2026-10-31 10:29 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/kwin
            Branch : f45
            Commit : 11f775b899dff0fa9dc7f70904365c31da1fd34b
            Author : Neal Gompa <ngompa@fedoraproject.org>
            Date   : 2026-10-30T22:23:55-04:00
            Stats  : +22/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/kwin/c/11f775b899dff0fa9dc7f70904365c31da1fd34b?branch=f45

            Log:
            Add RPM macros for kwin versioning to devel package

This adds RPM macros to allow kwin plugins to strictly depend on
the exact version of kwin it was built against in the event they use
private/unstable APIs, so that needed rebuilds can be much more easily
detected.

---
diff --git a/kwin.spec b/kwin.spec
index 045d06c..7b88d30 100644
--- a/kwin.spec
+++ b/kwin.spec
@@ -1,6 +1,6 @@
 Name:    kwin
 Version: 6.8.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 Summary: KDE Window manager
 
 License: BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND GPL-3.0-or-later AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-only AND LGPL-2.1-or-later AND LGPL-3.0-only AND (GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.1-only OR LGPL-3.0-only) AND MIT
@@ -11,6 +11,9 @@ URL:     https://invent.kde.org/plasma/kwin
 Source0: http://download.kde.org/%{stable_kf6}/plasma/%{maj_ver_kf6}.%{min_ver_kf6}.%{bug_ver_kf6}/%{name}-%{version}.tar.xz
 Source1: http://download.kde.org/%{stable_kf6}/plasma/%{maj_ver_kf6}.%{min_ver_kf6}.%{bug_ver_kf6}/%{name}-%{version}.tar.xz.sig
 
+# macros
+Source10: macros.kwin.in
+
 ## upstream patches
 
 
@@ -225,6 +228,16 @@ mkdir -p %{buildroot}%{_sysconfdir}/xdg/Xwayland-session.d
 # temporary(?) hack to allow initial-setup to use /usr/bin/kwin too
 ln -sr %{buildroot}%{_kf6_bindir}/kwin_wayland %{buildroot}%{_bindir}/kwin
 
+# rpm macros
+install -p -m644 -D %{SOURCE10} \
+  %{buildroot}%{_rpmmacrodir}/macros.kwin
+sed -i \
+  -e "s|@@NAME@@|%{name}|g" \
+  -e "s|@@EPOCH@@|%{?epoch}%{!?epoch:0}|g" \
+  -e "s|@@VERSION@@|%{version}|g" \
+  -e "s|@@EVR@@|%{?epoch:%{epoch:}}%{version}-%{release}|g" \
+  %{buildroot}%{_rpmmacrodir}/macros.kwin
+
 
 %files
 %{_bindir}/kwin
@@ -273,12 +286,16 @@ ln -sr %{buildroot}%{_kf6_bindir}/kwin_wayland %{buildroot}%{_bindir}/kwin
 %{_includedir}/kwin
 %{_libdir}/cmake/KWin
 %{_libdir}/libkwin.so
+%{_rpmmacrodir}/macros.kwin
 
 %files doc -f %{name}-doc.lang
 %license LICENSES/*.txt
 
 
 %changelog
+* Sat Oct 31 2026 Neal Gompa <ngompa@fedoraproject.org> - 6.8.2-2
+- Add RPM macros for kwin versioning to devel package
+
 * Tue Oct 27 2026 Steve Cossette <steve@ninjasinpajamas.com> - 6.8.2-1
 - 6.8.2
 

diff --git a/macros.kwin.in b/macros.kwin.in
new file mode 100644
index 0000000..256f366
--- /dev/null
+++ b/macros.kwin.in
@@ -0,0 +1,4 @@
+%_kwin @@NAME@@
+%_kwin_epoch @@EPOCH@@
+%_kwin_version @@VERSION@@
+%_kwin_evr @@EVR@@

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-31 10:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-31 10:29 [rpms/kwin] f45: Add RPM macros for kwin versioning to devel package Neal Gompa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox