public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Neal Gompa <ngompa@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/kwin] f45: Add RPM macros for kwin versioning to devel package
Date: Sat, 31 Oct 2026 10:29:43 GMT	[thread overview]
Message-ID: <179344258340.1.1283002082410354523.rpms-kwin-11f775b899df@fedoraproject.org> (raw)

            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@@

                 reply	other threads:[~2026-10-31 10:29 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=179344258340.1.1283002082410354523.rpms-kwin-11f775b899df@fedoraproject.org \
    --to=ngompa@fedoraproject.org \
    --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