2024-01-05 20:57:30 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f1-2)
|
|
|
|
|
|
|
|
Name: breeze-gtk
|
|
|
|
Version: 5.5.2
|
2024-01-05 20:57:30 +01:00
|
|
|
Release: 4mamba
|
2024-01-05 20:57:30 +01:00
|
|
|
Summary: A GTK Theme Built to Match KDE's Breeze
|
|
|
|
Group: Graphical Desktop/Look 'n' feel
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.kde.org
|
|
|
|
Source: http://download.kde.org/stable/plasma/%{version}/breeze-gtk-%{version}.tar.xz
|
2024-01-05 20:57:30 +01:00
|
|
|
Patch0: breeze-gtk-5.5.2-gtkrc-openmamba.patch
|
2024-01-05 20:57:30 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libqt5-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: rpm-macros-kde5
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
Provides: oxygen-gtk3
|
|
|
|
Obsoletes: oxygen-gtk3
|
|
|
|
Provides: QtCurve
|
|
|
|
Requires: breeze-icons
|
|
|
|
Requires: adwaita-icon-theme
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
A GTK Theme Built to Match KDE's Breeze.
|
|
|
|
|
|
|
|
%debug_package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
# openmamba color in breeze for gtk 3
|
|
|
|
sed -i "s|#3daee9|#52ae32|g" Breeze-gtk/gtk-3.0/gtk.css
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake_kde5 -d build
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
|
|
|
|
|
|
|
install -d -m0755 %{buildroot}%{_sysconfdir}/gtk-3.0
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/gtk-3.0/settings.ini-Breeze << _EOF
|
|
|
|
[Settings]
|
|
|
|
gtk-font-name=Bitstream Vera Sans Roman 9
|
|
|
|
gtk-theme-name=Breeze
|
|
|
|
gtk-icon-theme-name=breeze
|
|
|
|
gtk-fallback-icon-theme=Adwaita
|
|
|
|
gtk-toolbar-style=GTK_TOOLBAR_ICONS
|
|
|
|
gtk-menu-images=0
|
|
|
|
gtk-button-images=0
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
/usr/sbin/update-alternatives --remove settings.ini %{_datadir}/themes/Breeze/gtk-3.0/settings.ini-Breeze
|
|
|
|
/usr/sbin/update-alternatives --remove gtkrc %{_datadir}/themes/Breeze/gtk-2.0/gtkrc
|
|
|
|
/usr/sbin/update-alternatives --remove gtkrc %{_datadir}/themes/Breeze-Dark/gtk-2.0/gtkrc
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%posttrans
|
|
|
|
if [ $1 -ge 1 ]; then
|
|
|
|
/usr/sbin/alternatives --install \
|
|
|
|
%{_sysconfdir}/gtk-3.0/settings.ini settings.ini %{_sysconfdir}/gtk-3.0/settings.ini-Breeze 50
|
|
|
|
/usr/sbin/alternatives --install \
|
|
|
|
%{_sysconfdir}/gtk-2.0/gtkrc gtkrc %{_datadir}/themes/Breeze/gtk-2.0/gtkrc 50
|
|
|
|
/usr/sbin/alternatives --install \
|
|
|
|
%{_sysconfdir}/gtk-2.0/gtkrc gtkrc %{_datadir}/themes/Breeze-Dark/gtk-2.0/gtkrc 40
|
|
|
|
fi
|
|
|
|
:
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_sysconfdir}/gtk-3.0/settings.ini-Breeze
|
|
|
|
%{_libdir}/kconf_update_bin/gtkbreeze5.5
|
|
|
|
%{_datadir}/kconf_update/gtkbreeze5.5.upd
|
|
|
|
%dir %{_datadir}/themes/Breeze
|
|
|
|
%dir %{_datadir}/themes/Breeze/gtk-2.0
|
|
|
|
%{_datadir}/themes/Breeze/gtk-2.0/*
|
|
|
|
%dir %{_datadir}/themes/Breeze/gtk-3.0
|
|
|
|
%{_datadir}/themes/Breeze/gtk-3.0/*
|
|
|
|
%dir %{_datadir}/themes/Breeze-Dark
|
|
|
|
%dir %{_datadir}/themes/Breeze-Dark/gtk-2.0
|
|
|
|
%{_datadir}/themes/Breeze-Dark/gtk-2.0/*
|
|
|
|
%dir %{_datadir}/themes/Breeze-Dark/gtk-3.0
|
|
|
|
%{_datadir}/themes/Breeze-Dark/gtk-3.0/*
|
|
|
|
%doc COPYING.LIB
|
|
|
|
|
|
|
|
%changelog
|
2024-01-05 20:57:30 +01:00
|
|
|
* Sun Dec 27 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.2-4mamba
|
|
|
|
- fixes to custom gtkrc
|
|
|
|
|
2024-01-05 20:57:30 +01:00
|
|
|
* Fri Dec 25 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.2-3mamba
|
|
|
|
- add alternative for gtkrc and settings.ini and patch for openmamba colors
|
|
|
|
|
|
|
|
* Fri Dec 25 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.2-2mamba
|
|
|
|
- obsolete oxygen-gtk and provide gtk-3.0 settings.ini
|
|
|
|
|
|
|
|
* Fri Dec 25 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.2-1mamba
|
|
|
|
- package created using the webbuild interface
|