# trim changelog included in binary rpms %global _changelog_trimtime %(date +%s -d "1 year ago") %if ! 0%{?bootstrap} ## enable icon optimizations, takes awhile %global optimize 1 %endif ## allow building with an older extra-cmake-modules %global kf5_version 5.27.0 Name: oxygen-icon-theme Summary: Oxygen icon theme Epoch: 1 Version: 5.48.0 Release: 2%{?dist} # http://techbase.kde.org/Policies/Licensing_Policy License: LGPLv3+ URL: https://techbase.kde.org/Projects/Oxygen %global versiondir %(echo %{version} | cut -d. -f1-2) %global revision %(echo %{version} | cut -d. -f3) %if %{revision} >= 50 %global stable unstable %else %global stable stable %endif Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/src/oxygen-icons5-%{version}.tar.xz BuildArch: noarch # we are noarch, skip trying to find debuginfo %global debug_package %{nil} ## upstreamable patches BuildRequires: kf5-rpm-macros BuildRequires: extra-cmake-modules >= %{?kf5_version}%{!?kf5_version:%{version}} BuildRequires: qt5-qtbase-devel BuildRequires: hardlink %if 0%{?optimize} # for optimizegraphics BuildRequires: kde-dev-scripts %endif BuildRequires: kde-filesystem BuildRequires: time # inheritance, though could consider Recommends: if needed -- rex Requires: hicolor-icon-theme # upstream names Provides: oxygen-icons5 = %{epoch}:%{version}-%{release} Provides: oxygen-icons = %{epoch}:%{version}-%{release} Provides: kf5-oxygen-icons = %{epoch}:%{version}-%{release} # some icons moved here from kdepim, add explicit Conflicts to help dep solvers %if 0%{?fedora} < 24 # http://bugzilla.redhat.com/1308475 Conflicts: kmail < 4.14.10-10 %else # http://bugzilla.redhat.com/1308358 Conflicts: kmail < 15.12.2 %endif %description %{summary}. %prep %autosetup -n oxygen-icons5-%{version} -p1 %if 0%{?kf5_version:1} sed -i -e "s|%{version}|%{kf5_version}|g" CMakeLists.txt %endif %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake_kf5} .. popd %make_build -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} # optimize pushd %{buildroot}%{_kf5_datadir}/icons/oxygen du -s . /usr/sbin/hardlink -c -v %{buildroot}%{_kf5_datadir}/icons/oxygen du -s . %if 0%{?optimize} time optimizegraphics du -s . ## As of 15.04.3, hardlink reports #Directories 78 #Objects 6926 #IFREG 6848 #Comparisons 901 #Linked 901 #saved 7737344 /usr/sbin/hardlink -c -v %{buildroot}%{_kf5_datadir}/icons/oxygen du -s . %endif popd # create/own all potential dirs mkdir -p %{buildroot}%{_kf5_datadir}/icons/oxygen/{16x16,22x22,24x24,32x32,36x36,48x48,64x64,96x96,128x128,512x512,scalable}/{actions,apps,devices,mimetypes,places} %if 0%{?fedora} > 25 %filetriggerin -- %{_datadir}/icons/oxygen touch %{_datadir}/icons/oxygen &> /dev/null || : %transfiletriggerin -- %{_datadir}/icons/oxygen gtk-update-icon-cache %{_datadir}/icons/oxygen &>/dev/null || : # arg, looks like this case cannot be handled by triggers? -- rex %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/oxygen &> /dev/null || : fi %transfiletriggerpostun -- %{_datadir}/icons/oxygen gtk-update-icon-cache %{_datadir}/icons/oxygen &>/dev/null || : %else # classic scriptlets %post touch --no-create %{_kf5_datadir}/icons/oxygen &> /dev/null || : %posttrans gtk-update-icon-cache %{_kf5_datadir}/icons/oxygen &> /dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_kf5_datadir}/icons/oxygen &> /dev/null || : gtk-update-icon-cache %{_kf5_datadir}/icons/oxygen &> /dev/null || : fi %endif %files %doc AUTHORS CONTRIBUTING %license COPYING %dir %{_datadir}/icons/oxygen/ %{_datadir}/icons/oxygen/index.theme %{_datadir}/icons/oxygen/base/ %{_datadir}/icons/oxygen/*x*/ %{_datadir}/icons/oxygen/scalable/ %changelog * Fri Jul 13 2018 Fedora Release Engineering - 1:5.48.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 09 2018 Rex Dieter - 1:5.48.0-1 - 5.48.0 * Sat Jun 02 2018 Rex Dieter - 1:5.47.0-1 - 5.47.0 * Sat May 05 2018 Rex Dieter - 1:5.46.0-1 - 5.46.0 * Sun Apr 08 2018 Rex Dieter - 1:5.45.0-1 - 5.45.0 * Sat Mar 03 2018 Rex Dieter - 1:5.44.0-1 - 5.44.0 * Wed Feb 07 2018 Rex Dieter - 1:5.43.0-1 - 5.43.0 * Fri Jan 19 2018 Rex Dieter - 1:5.42.0-2 - Requires: hicolor-icon-theme * Mon Jan 08 2018 Rex Dieter - 1:5.42.0-1 - 5.42.0 * Mon Dec 04 2017 Rex Dieter - 1:5.41.0-1 - 5.41.0 * Fri Nov 10 2017 Rex Dieter - 1:5.40.0-1 - 5.40.0 * Sun Oct 08 2017 Rex Dieter - 1:5.39.0-1 - 5.39.0 * Fri Sep 08 2017 Rex Dieter - 1:5.38.0-2 - use scriptlet triggers * Sun Sep 03 2017 Rex Dieter - 1:5.38.0-1 - 5.38.0 * Fri Aug 25 2017 Rex Dieter - 1:5.37.0-1 - 5.37.0 * Thu Jul 27 2017 Fedora Release Engineering - 1:5.36.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 03 2017 Rex Dieter - 1:5.36.0-1 - 5.36.0 * Sun Jun 04 2017 Rex Dieter - 1:5.35.0-1 - 5.35.0 * Mon May 15 2017 Rex Dieter - 1:5.34.0-1 - 5.34.0 * Mon Apr 03 2017 Rex Dieter - 1:5.33.0-1 - 5.33.0 * Sat Mar 04 2017 Rex Dieter - 1:5.32.0-1 - 5.32.0 * Mon Feb 06 2017 Rex Dieter - 5.31.0-1 - 5.31.0, update URL * Fri Dec 16 2016 Rex Dieter - 1:5.29.0-1 - 5.29.0 * Mon Oct 03 2016 Rex Dieter - 5.27.0-1 - 5.27.0 * Wed Sep 21 2016 Rex Dieter - 5.26.0-1 - 5.26.0 * Sun Aug 07 2016 Rex Dieter - 5.25.0-1 - 5.25.0 * Wed Jul 06 2016 Daniel Vrátil - 5.24.0-1 - KDE Frameworks 5.24.0 * Tue Jun 07 2016 Rex Dieter - 5.23.0-1 - 5.23.0 * Mon May 09 2016 Rex Dieter - 5.22.0-1 - 5.22.0 * Mon Apr 04 2016 Rex Dieter - 5.21.0-2 - (re)enable icon optimizations, support bootstrapping * Mon Apr 04 2016 Rex Dieter - 5.21.0-1 - KDE Frameworks 5.21.0 - update URL, drop %%ghost index-theme.cache hacks, disable icon optimizations (temporary) * Mon Mar 14 2016 Daniel Vrátil - 5.20.0-1 - KDE Frameworks 5.20.0 * Tue Feb 16 2016 Rex Dieter 5.19.0-3 - kdenlive conflicts (#1308932), -BR: cmake * Mon Feb 15 2016 Rex Dieter 5.19.0-2 - add versioned Conflicts: kmail (#1308475, #1308358) * Thu Feb 11 2016 Daniel Vrátil - 5.19.0-1 - KDE Frameworks 5.19.0 * Thu Feb 04 2016 Fedora Release Engineering - 1:5.18.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Jan 03 2016 Daniel Vrátil - 5.18.0-1 - KDE Frameworks 5.18.0 * Fri Dec 18 2015 Rex Dieter 1:5.17.0-2 - .spec cosmetics, use %%license, fix %%changelog, update URL, drop Provides: system-kde-icon-theme * Tue Dec 08 2015 Daniel Vrátil - 1:5.17.0-1 - KDE Frameworks 5.17.0 * Sun Nov 08 2015 Daniel Vrátil - 1:5.16.0-1 - KDE Frameworks 5.16.0 * Sun Nov 08 2015 Daniel Vrátil - 1:5.16.0-1 - Moved to KDE Frameworks 5 * Fri Aug 14 2015 Rex Dieter 15.04.3-2 - use optimizegraphics (from kde-dev-scripts) * Sun Jun 28 2015 Rex Dieter - 15.04.3-1 - 15.04.3 * Thu Jun 18 2015 Fedora Release Engineering - 15.04.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Jun 01 2015 Rex Dieter 15.04.2-1 - 15.04.2 * Thu May 14 2015 Rex Dieter 15.04.1-1 - 15.04.1 * Fri Apr 10 2015 Rex Dieter 15.04.0-1 - 15.04.0 * Sat Feb 28 2015 Rex Dieter 14.12.3-1 - 14.12.3 * Mon Feb 23 2015 Rex Dieter 14.12.2-1 - 14.12.2 * Sat Jan 10 2015 Rex Dieter 14.12.1-1 - 14.12.1, drop cmake hacks * Sun Dec 07 2014 Rex Dieter 14.11.97-1 - 14.11.97 * Sat Nov 08 2014 Rex Dieter - 4.14.3-1 - 4.14.3 * Sat Oct 11 2014 Rex Dieter - 4.14.2-1 - 4.14.2 * Mon Sep 15 2014 Rex Dieter - 4.14.1-1 - 4.14.1 * Thu Aug 14 2014 Rex Dieter - 4.14.0-1 - 4.14.0 * Tue Aug 05 2014 Rex Dieter - 4.13.97-1 - 4.13.97 * Sun Jul 13 2014 Rex Dieter - 4.13.3-1 - 4.13.3 * Sat Jun 07 2014 Fedora Release Engineering - 4.13.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Jun 07 2014 Rex Dieter 4.13.2-1 - 4.13.2 * Fri May 09 2014 Rex Dieter 4.13.1-1 - 4.13.1 * Fri Apr 11 2014 Rex Dieter - 4.13.0-1 - 4.13.0 * Mon Mar 31 2014 Rex Dieter - 4.12.97-1 - 4.12.97 * Sat Mar 22 2014 Rex Dieter 4.12.95-1 - 4.12.95 * Mon Mar 17 2014 Rex Dieter 4.12.90-1 - 4.12.90 * Fri Feb 28 2014 Rex Dieter - 4.12.3-1 - 4.12.3 * Fri Jan 31 2014 Rex Dieter - 4.12.2-1 - 4.12.2 * Fri Jan 10 2014 Rex Dieter - 4.12.1-1 - 4.12.1 * Wed Dec 18 2013 Rex Dieter - 4.12.0-1 - 4.12.0 * Sun Dec 01 2013 Rex Dieter - 4.11.97-1 - 4.11.97 * Thu Nov 21 2013 Rex Dieter - 4.11.95-1 - 4.11.95 * Fri Nov 15 2013 Rex Dieter - 4.11.90-1 - 4.11.90 * Fri Nov 01 2013 Rex Dieter - 4.11.3-1 - 4.11.3 * Sat Sep 28 2013 Rex Dieter - 4.11.2-1 - 4.11.2 * Tue Sep 03 2013 Rex Dieter 4.11.1-1 - 4.11.1 * Thu Aug 08 2013 Than Ngo - 4.11.0-1 - 4.11.0 * Thu Jul 25 2013 Rex Dieter - 4.10.97-1 - 4.10.97 * Tue Jul 23 2013 Rex Dieter - 4.10.95-1 - 4.10.95 * Thu Jun 27 2013 Rex Dieter - 4.10.90-1 - 4.10.90 * Sat Jun 01 2013 Rex Dieter - 4.10.4-1 - 4.10.4 * Mon May 06 2013 Than Ngo - 4.10.3-1 - 4.10.3 * Sat Mar 30 2013 Rex Dieter - 4.10.2-1 - 4.10.2 * Sat Mar 02 2013 Rex Dieter 4.10.1-1 - 4.10.1 * Thu Jan 31 2013 Rex Dieter - 4.10.0-1 - 4.10.0 * Sat Jan 19 2013 Rex Dieter - 4.9.98-1 - 4.9.98 * Thu Jan 03 2013 Rex Dieter - 4.9.97-1 - 4.9.97 * Wed Dec 19 2012 Rex Dieter - 4.9.95-1 - 4.9.95 * Mon Dec 03 2012 Rex Dieter 4.9.90-1 - 4.9.90 (4.10beta2) * Fri Nov 02 2012 Rex Dieter 4.9.3-1 - 4.9.3 * Fri Sep 28 2012 Rex Dieter - 4.9.2-1 - 4.9.2 * Mon Sep 03 2012 Than Ngo - 4.9.1-1 - 4.9.1 * Sun Aug 12 2012 Rex Dieter - 4.9.0-2 - remove .spec cruft - fancify Source0 handling * Thu Jul 26 2012 Rex Dieter - 4.9.0-1 - 4.9.0 * Fri Jul 20 2012 Fedora Release Engineering - 4.8.97-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Jul 11 2012 Rex Dieter - 4.8.97-1 - 4.8.97 * Wed Jun 27 2012 Jaroslav Reznik - 4.8.95-1 - 4.8.95 * Fri Jun 08 2012 Jaroslav Reznik - 4.8.90-1 - 4.8.90 * Fri May 25 2012 Jaroslav Reznik - 4.8.80-1 - 4.8.80 * Mon Apr 30 2012 Jaroslav Reznik - 4.8.3-1 - 4.8.3 * Fri Mar 30 2012 Jaroslav Reznik - 4.8.2-1 - 4.8.2 * Mon Mar 05 2012 Radek Novacek 4.8.1-1 - 4.8.1 * Sun Jan 22 2012 Rex Dieter - 4.8.0-1 - 4.8.0 * Wed Jan 11 2012 Rex Dieter 4.7.97-2 - icon theme cache not removed on uninstall (#771487) - try harder to own all related dirs * Wed Jan 04 2012 Radek Novacek - 4.7.97-1 - 4.7.97 * Fri Dec 23 2011 Rex Dieter 4.7.95-2 - Provides: oxygen-icons * Wed Dec 21 2011 Radek Novacek - 4.7.95-1 - 4.7.95 * Sat Dec 03 2011 Rex Dieter 4.7.90-1 - 4.7.90 * Fri Nov 18 2011 Jaroslav Reznik 4.7.80-1 - 4.7.80 (beta 1) * Fri Oct 28 2011 Rex Dieter 4.7.3-1 - 4.7.3 * Tue Oct 04 2011 Rex Dieter 4.7.2-1 - 4.7.2 * Wed Sep 14 2011 Radek Novacek 4.7.1-1 - 4.7.1 * Tue Jul 26 2011 Jaroslav Reznik - 4.7.0-1 - 4.7.0 * Fri Jul 08 2011 Jaroslav Reznik - 4.6.95-1 - 4.6.95 (rc2) * Tue Jun 28 2011 Than Ngo - 4.6.90-1 - 4.6.90 (rc1) * Fri May 27 2011 Jaroslav Reznik 4.6.80-1 - 4.6.80 (beta1) * Thu Apr 28 2011 Rex Dieter 4.6.3-1 - 4.6.3 * Wed Apr 06 2011 Jaroslav Reznik 4.6.2-1 - 4.6.2 * Sat Feb 26 2011 Rex Dieter 4.6.1-1 - 4.6.1 * Tue Feb 08 2011 Fedora Release Engineering - 4.6.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Jan 21 2011 Jaroslav Reznik 4.6.0-1 - 4.6.0 * Wed Jan 05 2011 Jaroslav Reznik 4.5.95-1 - 4.5.95 (4.6rc2) * Wed Dec 22 2010 Rex Dieter 4.5.90-1 - 4.5.90 (4.6rc1) * Fri Dec 03 2010 Thomas Janssen 4.5.85-1 - 4.5.85 (4.6beta2) * Sat Nov 20 2010 Rex Dieter - 4.5.80-1 - 4.5.80 (4.6beta1) * Sun Oct 31 2010 Than Ngo - 4.5.3-1 - 4.5.3 * Fri Oct 01 2010 Rex Dieter - 4.5.2-1 - 4.5.2 * Tue Sep 28 2010 Rex Dieter - 4.5.1-2 - Obsoletes: fedora-kde-icon-theme (f13+) - Provides: system-kde-icon-theme (f13+) * Fri Aug 27 2010 Rex Dieter - 4.5.1-1 - 4.5.1 * Thu Aug 05 2010 Jaroslav Reznik - 4.5.0-1 - 4.5.0 * Sun Jul 25 2010 Rex Dieter - 4.4.95-1 - 4.5 RC3 (4.4.95) * Wed Jul 07 2010 Rex Dieter - 4.4.92-1 - 4.5 RC2 (4.4.92) * Fri Jun 25 2010 Rex Dieter - 4.4.90-1 - 4.5 RC 1 (4.4.90) * Mon Jun 07 2010 Jaroslav Reznik - 4.4.85-1 - 4.5 Beta 2 (4.4.85) * Fri May 21 2010 Jaroslav Reznik - 4.4.80-1 - 4.5 Beta 1 (4.4.80) * Fri Apr 30 2010 Jaroslav Reznik - 4.4.3-1 - 4.4.3 * Mon Mar 29 2010 Lukas Tinkl - 4.4.2-1 - 4.4.2 * Sat Feb 27 2010 Rex Dieter - 4.4.1-1 - 4.4.1 * Tue Feb 09 2010 Rex Dieter - 4.4.0-2 - hardlink dup'd icons * Fri Feb 05 2010 Than Ngo - 4.4.0-1 - 4.4.0 * Sun Jan 31 2010 Rex Dieter - 4.3.98-1 - KDE 4.3.98 (4.4rc3) * Thu Jan 21 2010 Lukas Tinkl - 4.3.95-1 - KDE 4.3.95 (4.4rc2) * Wed Jan 6 2010 Rex Dieter - 4.3.90-1 - 4.3.90 (4.4 rc1) * Fri Dec 18 2009 Rex Dieter - 4.3.85-1 - 4.3.85 (4.4 beta2) * Tue Dec 1 2009 Lukáš Tinkl - 4.3.80-1 - KDE 4.4 beta1 (4.3.80) * Sat Nov 21 2009 Ben Boeckel - 4.3.75-0.1.svn1048496 - Update to 4.3.75 snapshot * Sat Oct 31 2009 Rex Dieter - 4.3.3-1 - 4.3.3 * Mon Oct 05 2009 Than Ngo - 4.3.2-1 - 4.3.2 * Fri Aug 28 2009 Than Ngo - 4.3.1-1 - 4.3.1 * Thu Jul 30 2009 Than Ngo - 4.3.0-1 - 4.3.0 * Sat Jul 25 2009 Fedora Release Engineering - 4.2.98-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Jul 22 2009 Than Ngo - 4.2.98-1 - 4.3rc3 * Mon Jul 13 2009 Than Ngo - 4.2.96-1 - 4.3rc2 * Fri Jun 26 2009 Than Ngo - 4.2.95-1 - 4.3rc1 * Wed Jun 03 2009 Rex Dieter 4.2.90-1 - KDE-4.3 beta2 (4.2.90) * Fri May 08 2009 Rex Dieter - 4.2.85-1 - oxygen-icons-4.2.85 * Tue Mar 31 2009 Rex Dieter - 4.2.2-1 - kde-4.2.2 * Mon Mar 30 2009 Rex Dieter - 4.2.1-11 - License: LGPLv3+ - %%doc: AUTHORS CONTRIBUTING COPYING TODO* * Fri Mar 27 2009 Rex Dieter - 4.2.1-10 - standalone (noarch) oxygen-icon-theme