2022-09-07 18:59:13 +08:00
|
|
|
%if ! 0%{?bootstrap}
|
|
|
|
|
# enable icon optimizations
|
|
|
|
|
%global optimize 0
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global kf5_version 5.27.0
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: oxygen-icon-theme
|
|
|
|
|
Summary: Oxygen icon theme
|
|
|
|
|
Epoch: 1
|
2024-01-09 10:26:59 +08:00
|
|
|
Version: 5.113.0
|
2022-09-07 18:59:13 +08:00
|
|
|
Release: 1
|
|
|
|
|
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
|
2024-01-09 10:26:59 +08:00
|
|
|
%else
|
2022-09-07 18:59:13 +08:00
|
|
|
%global stable stable
|
|
|
|
|
%endif
|
2024-01-09 10:26:59 +08:00
|
|
|
Source0: https://download.kde.org/%{stable}/frameworks/%{versiondir}/oxygen-icons-%{version}.tar.xz
|
2022-09-07 18:59:13 +08:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
Requires: hicolor-icon-theme
|
|
|
|
|
|
|
|
|
|
Provides: oxygen-icons5 = %{epoch}:%{version}-%{release}
|
|
|
|
|
Provides: oxygen-icons = %{epoch}:%{version}-%{release}
|
|
|
|
|
Provides: kf5-oxygen-icons = %{epoch}:%{version}-%{release}
|
|
|
|
|
|
|
|
|
|
Conflicts: kmail < 15.12.2
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-01-09 10:26:59 +08:00
|
|
|
%autosetup -n oxygen-icons-%{version} -p1
|
2022-09-07 18:59:13 +08:00
|
|
|
|
|
|
|
|
%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}
|
|
|
|
|
|
|
|
|
|
pushd %{buildroot}%{_kf5_datadir}/icons/oxygen
|
|
|
|
|
|
|
|
|
|
du -s .
|
|
|
|
|
|
|
|
|
|
hardlink -c -v %{buildroot}%{_kf5_datadir}/icons/oxygen
|
|
|
|
|
|
|
|
|
|
du -s .
|
|
|
|
|
|
|
|
|
|
%if 0%{?optimize}
|
|
|
|
|
time optimizegraphics
|
|
|
|
|
|
|
|
|
|
du -s .
|
|
|
|
|
|
|
|
|
|
hardlink -c -v %{buildroot}%{_kf5_datadir}/icons/oxygen
|
|
|
|
|
|
|
|
|
|
du -s .
|
|
|
|
|
%endif
|
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_kf5_datadir}/icons/oxygen/{16x16,22x22,24x24,32x32,36x36,48x48,64x64,96x96,128x128,512x512,scalable}/{actions,apps,devices,mimetypes,places}
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
%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
|
2024-01-09 10:26:59 +08:00
|
|
|
* Mon Jan 08 2024 Tianze Li <litianze@uniontech.com> - 1:5.113.0-1
|
|
|
|
|
- Update to 5.113.0
|
|
|
|
|
|
2022-09-07 18:59:13 +08:00
|
|
|
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 1:5.97.0-1
|
|
|
|
|
- Init package
|