# Conditional build:
#
%define _state stable
-%define snap svn1048496
%define orgname oxygen-icons
Summary: KDE4 - Oxygen icons
Summary(pl.UTF-8): Ikony Oxygen dla KDE4
Name: kde4-oxygen-icons
-Version: 4.4.4
+Version: 4.9.2
Release: 1
License: GPL v2
Group: X11/Libraries
-Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.bz2
-# Source0-md5: fb5aeee6517a1fd834cfd32a16d91780
+Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
+# Source0-md5: 1b3988ff21e19ad02d019dfa5c13270f
Source1: %{name}-pld_czarny.png
+Source2: kpld.tar.gz
+# Source2-md5: 1111e8a60b33ad694e91d574233dde0e
URL: http://www.kde.org/
BuildRequires: cmake >= 2.8.0
-BuildRequires: rpmbuild(macros) >= 1.293
+BuildRequires: rpmbuild(macros) >= 1.600
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Motyw ikon do KDE - oxygen. Ten pakiet zawiera ikony SVG.
%prep
-%setup -q -n %{orgname}-%{version}
+%setup -q -n %{orgname}-%{version} -a2
%build
install -d build
cd build
-%cmake .. \
- -DCMAKE_INSTALL_PREFIX=%{_prefix} \
- -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
+%cmake \
-DCMAKE_CXX_COMPILER_WORKS=1 \
-DCMAKE_CXX_COMPILER="%{__cc}" \
-DCMAKE_C_COMPILER_WORKS=1 \
-%if "%{_lib}" == "lib64"
- -DLIB_SUFFIX=64
-%endif
+ ../
%install
rm -rf $RPM_BUILD_ROOT
cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_iconsdir}/oxygen/48x48/apps/pld_czarny.png
+# install PLD KMenu icon
+install kpld/kde16x16.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/16x16/apps/kde-pld.png
+install kpld/kde22x22.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/22x22/apps/kde-pld.png
+install kpld/kde32x32.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/32x32/apps/kde-pld.png
+install kpld/kde48x48.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/48x48/apps/kde-pld.png
+install kpld/kde64x64.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/64x64/apps/kde-pld.png
+install kpld/kde128x128.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/128x128/apps/kde-pld.png
+install kpld/kde256x256.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/256x256/apps/kde-pld.png
+install kpld/kde.svg $RPM_BUILD_ROOT%{_iconsdir}/oxygen/scalable/apps/kde-pld.svg
+install kpld/kde16x16.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/16x16/places/start-here-kde.png
+install kpld/kde22x22.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/22x22/places/start-here-kde.png
+install kpld/kde32x32.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/32x32/places/start-here-kde.png
+install kpld/kde48x48.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/48x48/places/start-here-kde.png
+install kpld/kde64x64.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/64x64/places/start-here-kde.png
+install kpld/kde128x128.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/128x128/places/start-here-kde.png
+install kpld/kde256x256.png $RPM_BUILD_ROOT%{_iconsdir}/oxygen/256x256/places/start-here-kde.png
+
%clean
rm -rf $RPM_BUILD_ROOT
%{_iconsdir}/oxygen/*x*/devices/*
%{_iconsdir}/oxygen/*x*/mimetypes/*
%{_iconsdir}/oxygen/*x*/places/*
+%{_iconsdir}/oxygen/*x*/special/*
%{_iconsdir}/oxygen/*x*/status/*
%{_iconsdir}/oxygen/*x*/animations/*
%{_iconsdir}/oxygen/*x*/emblems/*
%dir %{_iconsdir}/oxygen/scalable
# digikam has it's own icon in digikam.spec
%exclude %{_iconsdir}/oxygen/scalable/apps/digikam.*
+%{_iconsdir}/oxygen/scalable/object-rotate.svgz
%{_iconsdir}/oxygen/scalable/text-formatting.svg
%{_iconsdir}/oxygen/scalable/actions
%{_iconsdir}/oxygen/scalable/apps
%{_iconsdir}/oxygen/scalable/emotes
%{_iconsdir}/oxygen/scalable/mimetypes
%{_iconsdir}/oxygen/scalable/places
+%{_iconsdir}/oxygen/scalable/special
%{_iconsdir}/oxygen/scalable/status