gnome-theme-openmamba/gnome-theme-openmamba.spec

102 lines
4.3 KiB
RPMSpec

Name: gnome-theme-openmamba
Version: 0.3
Release: 3mamba
Summary: openmamba default theme for the Gnome desktop environment
Group: Graphical Desktop/Look 'n' feel
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://openmamba.org/en/
Source: https://gitlab.mambasoft.it/openmamba/gnome-theme-openmamba.git/v%{version}/gnome-theme-openmamba-%{version}.tar.bz2
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
Requires: gnome-themes-standard
#Requires: QtCurve-Gtk2
Requires(post):GConf
%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
* Sun Jan 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3-3mamba
- updated packager; specfile fixes
* Sat Sep 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3-2mamba
- require gnome-themes-standard instead of gnome-themes (gnome 3)
* Mon Aug 06 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3-1mamba
- update to 0.3
* Mon Aug 06 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2-6mamba
- add gconftool-2 post command to set openmamba-green as default theme
* Sun Aug 05 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <silvan.calarco@mambasoft.it> 0.2-4mamba
- set background image as defaults, not mandatory. Also set 'stretched' as default picture_options
* Sun Sep 25 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2-3mamba
- added post requirement for GConf; fixed package description
* Sat Sep 24 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <silvan.calarco@mambasoft.it> 0.2-1mamba
- update to 0.2
* Sat Sep 24 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.1-2mamba
- added requirement for gnome-themes
* Sat Sep 10 2011 Filippo Bedendo Bordon <michiamophil@libero.it> 0.1-1mamba
- package created by autospec