- .spec cosmetics
- drop icon-related deps
- breeze-cursor-theme: tighten %files, don't use %ghost, drop scriptlets
- avoid kde4breeze.upd, causes problems for new users (#1283348)
epel9
Rex Dieter 9 years ago
parent b3ffc272d8
commit ca4e7629dc

@ -4,11 +4,11 @@
Name: plasma-breeze Name: plasma-breeze
Version: 5.5.3 Version: 5.5.3
Release: 1%{?dist} Release: 2%{?dist}
Summary: Artwork, styles and assets for the Breeze visual style for the Plasma Desktop Summary: Artwork, styles and assets for the Breeze visual style for the Plasma Desktop
License: GPLv2+ License: GPLv2+
URL: https://projects.kde.org/projects/kde/workspace/breeze URL: https://projects.kde.org/breeze
%global revision %(echo %{version} | cut -d. -f3) %global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50 %if %{revision} >= 50
@ -18,6 +18,7 @@ URL: https://projects.kde.org/projects/kde/workspace/breeze
%endif %endif
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{base_name}-%{version}.tar.xz Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{base_name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: kf5-rpm-macros BuildRequires: kf5-rpm-macros
BuildRequires: extra-cmake-modules BuildRequires: extra-cmake-modules
BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtbase-devel
@ -97,7 +98,7 @@ make %{?_smp_mflags} -C %{_target_platform}
%if 0%{?build_kde4:1} %if 0%{?build_kde4:1}
mkdir -p %{_target_platform}_kde4 mkdir %{_target_platform}_kde4
pushd %{_target_platform}_kde4 pushd %{_target_platform}_kde4
%{cmake_kde4} -DUSE_KDE4=TRUE .. %{cmake_kde4} -DUSE_KDE4=TRUE ..
popd popd
@ -114,16 +115,11 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}_kde4 make install/fast DESTDIR=%{buildroot} -C %{_target_platform}_kde4
%endif %endif
## icon optimizations # omit/rename kde4breeze.upd, seems to be causing problems for
for theme in breeze_cursors Breeze_Snow; do # (at least) new users, lame workaround for
pushd %{buildroot}%{_datadir}/icons/${theme} # http://bugzilla.redhat.com/1283348
du -s . mv %{buildroot}%{_kf5_datadir}/kconf_update/kde4breeze.upd \
time optimizegraphics ||: %{buildroot}%{_kf5_datadir}/kconf_update/kde4breeze.upd.BAK
du -s .
/usr/sbin/hardlink -c -v %{buildroot}%{_datadir}/icons/${theme}
du -s .
popd
done
%post %post
@ -139,16 +135,16 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
fi fi
%files %files
%doc cursors/Breeze/README COPYING COPYING-ICONS %license COPYING COPYING-ICONS
%{_kf5_qtplugindir}/org.kde.kdecoration2/breezedecoration.so %{_kf5_qtplugindir}/org.kde.kdecoration2/breezedecoration.so
%{_kf5_qtplugindir}/styles/breeze.so %{_kf5_qtplugindir}/styles/breeze.so
%{_kf5_datadir}/kstyle/themes/breeze.themerc %{_kf5_datadir}/kstyle/themes/breeze.themerc
%{_kf5_qtplugindir}/kstyle_breeze_config.so %{_kf5_qtplugindir}/kstyle_breeze_config.so
%{_kf5_datadir}/kconf_update/kde4breeze.upd %{_kf5_datadir}/kconf_update/kde4breeze.upd*
%{_kf5_libdir}/kconf_update_bin/kde4breeze %{_kf5_libdir}/kconf_update_bin/kde4breeze
%{_kf5_qmldir}/QtQuick/Controls/Styles/Breeze %{_kf5_qmldir}/QtQuick/Controls/Styles/Breeze
%{_bindir}/breeze-settings5 %{_bindir}/breeze-settings5
%{_datadir}/icons/hicolor/scalable/apps/breeze-settings.svgz %{_datadir}/icons/hicolor/*/apps/breeze-settings.*
%{_kf5_datadir}/kservices5/breezedecorationconfig.desktop %{_kf5_datadir}/kservices5/breezedecorationconfig.desktop
%{_kf5_datadir}/kservices5/breezestyleconfig.desktop %{_kf5_datadir}/kservices5/breezestyleconfig.desktop
%{_kf5_datadir}/kservices5/plasma-lookandfeel-org.kde.breezedark.desktop.desktop %{_kf5_datadir}/kservices5/plasma-lookandfeel-org.kde.breezedark.desktop.desktop
@ -157,7 +153,7 @@ fi
%files common -f breeze.lang %files common -f breeze.lang
%{_datadir}/color-schemes/*.colors %{_datadir}/color-schemes/*.colors
%{_datadir}/QtCurve/Breeze.qtcurve %{_datadir}/QtCurve/Breeze.qtcurve
%{_datadir}/wallpapers/Next %{_datadir}/wallpapers/Next/
%if 0%{?build_kde4:1} %if 0%{?build_kde4:1}
%files -n kde-style-breeze %files -n kde-style-breeze
@ -166,28 +162,22 @@ fi
%{_kde4_appsdir}/kstyle/themes/breeze.themerc %{_kde4_appsdir}/kstyle/themes/breeze.themerc
%endif %endif
%post -n breeze-cursor-theme
touch --no-create %{_datadir}/icons/{breeze_cursors,Breeze_Snow} &> /dev/null || :
%posttrans -n breeze-cursor-theme
gtk-update-icon-cache %{_datadir}/icons/{breeze_cursors,Breeze_Snow} &> /dev/null || :
%postun -n breeze-cursor-theme
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/{breeze_cursors,Breeze_Snow} &> /dev/null || :
gtk-update-icon-cache %{_datadir}/icons/{breeze_cursors,Breeze_Snow} &> /dev/null || :
fi
%files -n breeze-cursor-theme %files -n breeze-cursor-theme
%{_kf5_datadir}/icons/Breeze_Snow %doc cursors/Breeze/README
%ghost %{_kf5_datadir}/icons/Breeze_Snow/index.theme %dir %{_kf5_datadir}/icons/Breeze_Snow/
%{_kf5_datadir}/icons/breeze_cursors %{_kf5_datadir}/icons/Breeze_Snow/cursors/
%ghost %{_kf5_datadir}/icons/breeze_cursors/index.theme %{_kf5_datadir}/icons/Breeze_Snow/index.theme
%dir %{_kf5_datadir}/icons/breeze_cursors/
%{_kf5_datadir}/icons/breeze_cursors/cursors/
%{_kf5_datadir}/icons/breeze_cursors/index.theme
%changelog %changelog
* Thu Jan 07 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.5.3-1 * Fri Jan 08 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.5.3-2
- Plasma 5.5.3 - .spec cosmetics
- drop icon-related deps
- breeze-cursor-theme: tighten %%files, don't use %%ghost, drop scriptlets
- avoid kde4breeze.upd, causes problems for new users (#1283348)
* Thu Jan 07 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.5.3-1 * Thu Jan 07 2016 Daniel Vrátil <dvratil@fedoraproject.org> - 5.5.3-1
- Plasma 5.5.3 - Plasma 5.5.3

Loading…
Cancel
Save