summaryrefslogtreecommitdiff
path: root/gtk3-stackrpms/gtk3-nocsd/gtk3-nocsd.spec
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-05-27 15:14:14 +0000
committerB. Stack <bgstack15@gmail.com>2021-05-27 15:14:14 +0000
commit26c6a65743933c774f68871c275e0d7225e6ecad (patch)
tree5979a95a0556b843105ded256c56f3f4b0007f06 /gtk3-stackrpms/gtk3-nocsd/gtk3-nocsd.spec
parentMerge branch 'irfanview-bump' into 'master' (diff)
parentgtk3-autom add BR gcc (diff)
downloadstackrpms-26c6a65743933c774f68871c275e0d7225e6ecad.tar.gz
stackrpms-26c6a65743933c774f68871c275e0d7225e6ecad.tar.bz2
stackrpms-26c6a65743933c774f68871c275e0d7225e6ecad.zip
Merge branch 'gtk3-stackrpms' into 'master'
Gtk3 stackrpms See merge request bgstack15/stackrpms!239
Diffstat (limited to 'gtk3-stackrpms/gtk3-nocsd/gtk3-nocsd.spec')
-rw-r--r--gtk3-stackrpms/gtk3-nocsd/gtk3-nocsd.spec83
1 files changed, 83 insertions, 0 deletions
diff --git a/gtk3-stackrpms/gtk3-nocsd/gtk3-nocsd.spec b/gtk3-stackrpms/gtk3-nocsd/gtk3-nocsd.spec
new file mode 100644
index 0000000..9681030
--- /dev/null
+++ b/gtk3-stackrpms/gtk3-nocsd/gtk3-nocsd.spec
@@ -0,0 +1,83 @@
+Name: gtk3-nocsd
+Version: 3
+Release: 13%{?dist}
+Summary: Disables the client side decoration of Gtk+ 3
+
+License: LGPLv2.1
+URL: https://github.com/PCMan/%{name}
+Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+# AUR - Marco Kundt
+Source1: https://aur.archlinux.org/cgit/aur.git/plain/30-%{name}.sh?h=%{name}-git#/30-%{name}.sh
+
+Patch0: %{name}-multilib.patch
+Patch1: %{url}/commit/c64505268575e60322de682ea751660eba8d0e71.patch#/%{name}-gh-c64505268575e60322de682ea751660eba8d0e71.patch
+Patch2: %{url}/commit/82ff5a0da54aa6da27232b55eb93e5f4b5de22f2.patch#/%{name}-gh-82ff5a0da54aa6da27232b55eb93e5f4b5de22f2.patch
+
+BuildRequires: make
+BuildRequires: gcc
+BuildRequires: pkgconfig(gobject-introspection-1.0)
+BuildRequires: pkgconfig(gtk+-3.0)
+
+%description
+%{name} is a small module used to disable the client side decoration of
+Gtk+ 3.
+
+%prep
+%autosetup -p1
+
+cp -p %{SOURCE1} %{name}.sh
+
+sed \
+ -e "/x\"$GTK_CSD\"x/s,\],\0 \&\& echo \$LD_PRELOAD | grep -v -q -F \'/usr/\${LIB}/libgtk3-nocsd.so.0\'," \
+ -i %{name}.sh
+
+sed -e 's|$(LDFLAGS_LIB)|\0 $(LDFLAGS)|g' -i Makefile
+
+%build
+
+%set_build_flags
+export prefix=%{_prefix}
+export libdir=%{_libdir}
+export bindir=%{_bindir}
+export datadir=%{_datadir}
+export mandir=%{_mandir}
+
+%make_build
+
+%install
+
+export prefix=%{_prefix}
+export libdir=%{_libdir}
+export bindir=%{_bindir}
+export datadir=%{_datadir}
+export mandir=%{_mandir}
+
+%make_install
+
+chmod +x %{buildroot}%{_libdir}/lib%{name}.so.0
+
+mkdir -p %{buildroot}%{_sysconfdir}/profile.d
+install -pm0644 %{name}.sh %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
+
+%files
+%license COPYING
+%doc ChangeLog README.md
+%{_sysconfdir}/profile.d/%{name}.sh
+%{_bindir}/%{name}
+%{_libdir}/lib%{name}.so.0
+%{_datadir}/bash-completion/completions/%{name}
+%{_mandir}/man1/%{name}.1*
+
+%changelog
+* Thu May 27 2021 B. Stack <bgstack15@gmail.com> - 3-13
+- fork to stackrpms
+
+* Mon Feb 20 2017 Phantom X <megaphantomx at bol dot com dot br> - 3-3
+- Tweak profile script
+- Drop %%config from profile script
+
+* Sun Feb 19 2017 Phantom X <megaphantomx at bol dot com dot br> - 3-2
+- Fix multilib
+
+* Fri Feb 10 2017 Phantom X <megaphantomx at bol dot com dot br> - 3-1
+- Initial spec
bgstack15