From 486b742f8e75fbc0ad99f54895b1537fca0f50c5 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:15:35 +0100 Subject: [PATCH] require gnome-themes-standard instead of gnome-themes (gnome 3) [release 0.3-2mamba;Sat Sep 15 2012] --- README.md | 2 + gnome-theme-openmamba.spec | 99 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+) create mode 100644 gnome-theme-openmamba.spec diff --git a/README.md b/README.md index 007db1e..4699c2b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # gnome-theme-openmamba +openmamba default theme for the Gnome desktop environment. + diff --git a/gnome-theme-openmamba.spec b/gnome-theme-openmamba.spec new file mode 100644 index 0000000..94fa55f --- /dev/null +++ b/gnome-theme-openmamba.spec @@ -0,0 +1,99 @@ +Name: gnome-theme-openmamba +Version: 0.3 +Release: 2mamba +Summary: openmamba default theme for the Gnome desktop environment +Group: Graphical Desktop/Look 'n' feel +Vendor: openmamba +Distribution: openmamba +Packager: Filippo Bedendo Bordon +URL: http://www.openmamba.it/ +Source: gnome-theme-openmamba-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires: gnome-themes-standard +#Requires: QtCurve-Gtk2 +Requires(post):GConf +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +openmamba default theme for the Gnome desktop environment. + +%prep +%setup -q + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%post +if [ $1 -ge 1 ]; then + gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --unset /desktop/gnome/background/picture_filename + gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/background/picture_filename /usr/share/pixmaps/backgrounds/gnome/openmamba-green/openmamba-green.jpg + gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/background/picture_options stretched + gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type boolean --set /desktop/gnome/interface/menus_have_icons true + gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/interface/gtk_theme openmamba-green +fi +: + +%postun +if [ $1 -eq 0 ]; then + gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --unset /desktop/gnome/background/picture_filename + gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --unset /desktop/gnome/background/picture_options + gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --unset /desktop/gnome/interface/gtk_theme +fi +: + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_datadir}/pixmaps/backgrounds/gnome/openmamba-green/openmamba-green.jpg +%{_datadir}/gnome-background-properties/gnome-openmamba-green.xml +%dir %{_datadir}/themes/openmamba-green +%dir %{_datadir}/themes/openmamba-green/gtk-2.0 +%{_datadir}/themes/openmamba-green/gtk-2.0/gtkrc +%dir %{_datadir}/themes/openmamba-green/gtk-3.0 +%{_datadir}/themes/openmamba-green/gtk-3.0/gtk-dark.css +%{_datadir}/themes/openmamba-green/gtk-3.0/gtk.css +%{_datadir}/themes/openmamba-green/gtk-3.0/gtk.gresource +%{_datadir}/themes/openmamba-green/gtk-3.0/settings.ini +%{_datadir}/themes/openmamba-green/index.theme +%dir %{_datadir}/themes/openmamba-green/metacity-1 +%{_datadir}/themes/openmamba-green/metacity-1/metacity-theme-1.xml + +%changelog +* Sat Sep 15 2012 Silvan Calarco 0.3-2mamba +- require gnome-themes-standard instead of gnome-themes (gnome 3) + +* Mon Aug 06 2012 Silvan Calarco 0.3-1mamba +- update to 0.3 + +* Mon Aug 06 2012 Silvan Calarco 0.2-6mamba +- add gconftool-2 post command to set openmamba-green as default theme + +* Sun Aug 05 2012 Silvan Calarco 0.2-5mamba +- don't require QtCurve-Gtk2 to avoid relying on KDE4 settings +- set menus_have_icons to 'true' (mambatray) + +* Tue Oct 11 2011 Silvan Calarco 0.2-4mamba +- set background image as defaults, not mandatory. Also set 'stretched' as default picture_options + +* Sun Sep 25 2011 Silvan Calarco 0.2-3mamba +- added post requirement for GConf; fixed package description + +* Sat Sep 24 2011 Silvan Calarco 0.2-2mamba +- set system-wide default background for theme using gconf in %post script +- added requirement for QtCurve-Gtk2 + +* Sat Sep 24 2011 Silvan Calarco 0.2-1mamba +- update to 0.2 + +* Sat Sep 24 2011 Silvan Calarco 0.1-2mamba +- added requirement for gnome-themes + +* Sat Sep 10 2011 Filippo Bedendo Bordon 0.1-1mamba +- package created by autospec