!1 Init package

From: @misaka00251 
Reviewed-by: @panchenbo 
Signed-off-by: @panchenbo
This commit is contained in:
openeuler-ci-bot 2022-09-08 04:38:41 +00:00 committed by Gitee
commit b3df9e4949
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 119 additions and 0 deletions

115
oxygen-icon-theme.spec Normal file
View File

@ -0,0 +1,115 @@
%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
Version: 5.97.0
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
%elseß
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/frameworks/%{versiondir}/oxygen-icons5-%{version}.tar.xz
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
%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}
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
* Thu Jul 14 2022 misaka00251 <misaka00251@misakanet.cn> - 1:5.97.0-1
- Init package

4
oxygen-icon-theme.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: KDE/oxygen-icons5
tag_prefix: "^v"
separator: "."

BIN
oxygen-icons5-5.97.0.tar.xz Normal file

Binary file not shown.