Notification time stamped 2021-03-31 20:26:06 UTC
From b74cf1edaa659ecb941deeb661b92226abfa977e Mon Sep 17 00:00:00 2001
From: Artem Polishchuk <ego.cordatus(a)gmail.com>
Date: Mar 31 2021 20:25:58 +0000
Subject: build: Workaround for RH#1944886
---
diff --git a/materia-gtk-theme.spec b/materia-gtk-theme.spec
index 281e193..93131c3 100644
--- a/materia-gtk-theme.spec
+++ b/materia-gtk-theme.spec
@@ -4,7 +4,7 @@
Name: materia-gtk-theme
Version: 0.0.%{vergit}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Material Design theme for GNOME/GTK based desktop environments
BuildArch: noarch
@@ -43,6 +43,94 @@ find %{buildroot}%{_datadir}/themes -name "COPYING" -exec rm
-rf {} \;
find %{buildroot}%{_datadir}/themes -name "index.theme" -exec chmod -x {} \;
+# Workaround for RH#1944886
+#
https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Repla...
+%pretrans -p <lua>
+path = "%{_datadir}/themes/Materia/gtk-3.0"
+st = posix.stat(path)
+if st and st.type == "directory" then
+ status = os.rename(path, path .. ".rpmmoved")
+ if not status then
+ suffix = 0
+ while not status do
+ suffix = suffix + 1
+ status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." ..
suffix)
+ end
+ os.rename(path, path .. ".rpmmoved")
+ end
+end
+
+path = "%{_datadir}/themes/Materia-compact/gtk-3.0"
+st = posix.stat(path)
+if st and st.type == "directory" then
+ status = os.rename(path, path .. ".rpmmoved")
+ if not status then
+ suffix = 0
+ while not status do
+ suffix = suffix + 1
+ status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." ..
suffix)
+ end
+ os.rename(path, path .. ".rpmmoved")
+ end
+end
+
+path = "%{_datadir}/themes/Materia-dark-compact/gtk-3.0"
+st = posix.stat(path)
+if st and st.type == "directory" then
+ status = os.rename(path, path .. ".rpmmoved")
+ if not status then
+ suffix = 0
+ while not status do
+ suffix = suffix + 1
+ status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." ..
suffix)
+ end
+ os.rename(path, path .. ".rpmmoved")
+ end
+end
+
+path = "%{_datadir}/themes/Materia-dark/gtk-3.0"
+st = posix.stat(path)
+if st and st.type == "directory" then
+ status = os.rename(path, path .. ".rpmmoved")
+ if not status then
+ suffix = 0
+ while not status do
+ suffix = suffix + 1
+ status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." ..
suffix)
+ end
+ os.rename(path, path .. ".rpmmoved")
+ end
+end
+
+path = "%{_datadir}/themes/Materia-light-compact/gtk-3.0"
+st = posix.stat(path)
+if st and st.type == "directory" then
+ status = os.rename(path, path .. ".rpmmoved")
+ if not status then
+ suffix = 0
+ while not status do
+ suffix = suffix + 1
+ status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." ..
suffix)
+ end
+ os.rename(path, path .. ".rpmmoved")
+ end
+end
+
+path = "%{_datadir}/themes/Materia-light/gtk-3.0"
+st = posix.stat(path)
+if st and st.type == "directory" then
+ status = os.rename(path, path .. ".rpmmoved")
+ if not status then
+ suffix = 0
+ while not status do
+ suffix = suffix + 1
+ status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." ..
suffix)
+ end
+ os.rename(path, path .. ".rpmmoved")
+ end
+end
+
+
%files
%license COPYING
%doc README.md HACKING.md TODO.md
@@ -50,6 +138,9 @@ find %{buildroot}%{_datadir}/themes -name "index.theme" -exec
chmod -x {} \;
%changelog
+* Wed Mar 31 2021 Artem Polishchuk <ego.cordatus(a)gmail.com> - 0.0.20210322-2
+- build: Workaround for RH#1944886
+
* Mon Mar 22 2021 Artem Polishchuk <ego.cordatus(a)gmail.com> - 0.0.20210322-1
- build(update): 20210322
https://src.fedoraproject.org/rpms/materia-gtk-theme/c/b74cf1edaa659ecb94...