summaryrefslogtreecommitdiff
path: root/gtk3-stackrpms/gtk3-nocsd/gtk3-nocsd.spec
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-05-27 10:18:57 -0400
committerB. Stack <bgstack15@gmail.com>2021-05-27 10:18:57 -0400
commite65f85bafd2307052abb77258c1722834758c16c (patch)
tree0e25ff44f8fc16b839b0b540d39a5fbcef618832 /gtk3-stackrpms/gtk3-nocsd/gtk3-nocsd.spec
parentgtk3-s add readme (diff)
downloadstackrpms-e65f85bafd2307052abb77258c1722834758c16c.tar.gz
stackrpms-e65f85bafd2307052abb77258c1722834758c16c.tar.bz2
stackrpms-e65f85bafd2307052abb77258c1722834758c16c.zip
add all gtk3-s rpms
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