# # 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.0 Release: 1 License: GPL v2 Group: X11/Libraries Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.bz2 # Source0-md5: fbcd429cc822cb88a815d97a4e66be4d URL: http://www.kde.org/ BuildRequires: cmake >= 2.8.0 BuildRequires: rpmbuild(macros) >= 1.293 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description KDE4 - Oxygen Icons. %description -l pl.UTF-8 Ikony Oxygen dla KDE4. %package -n kde4-icons-oxygen Summary: KDE icons - oxygen Summary(pl.UTF-8): Motyw ikon do KDE - oxygen Group: Themes Provides: kde4-icons Obsoletes: kde-icons-oxygen %description -n kde4-icons-oxygen KDE icons - oxygen. %description -n kde4-icons-oxygen -l pl.UTF-8 Motyw ikon do KDE - oxygen. %package -n kde4-icons-oxygen-svg Summary: KDE SVG icons - oxygen Summary(pl.UTF-8): Motyw ikon SVG do KDE - oxygen Group: Themes Provides: kde4-icons %description -n kde4-icons-oxygen-svg KDE icons - oxygen. This package contains SVG icons. %description -n kde4-icons-oxygen-svg -l pl.UTF-8 Motyw ikon do KDE - oxygen. Ten pakiet zawiera ikony SVG. %prep %setup -q -n %{orgname}-%{version} %build install -d build cd build %cmake .. \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ -DCMAKE_CXX_COMPILER_WORKS=1 \ -DCMAKE_C_COMPILER_WORKS=1 \ %if "%{_lib}" == "lib64" -DLIB_SUFFIX=64 %endif %install rm -rf $RPM_BUILD_ROOT %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT cp -r scalable $RPM_BUILD_ROOT%{_iconsdir}/oxygen/ install -d $RPM_BUILD_ROOT%{_iconsdir}/oxygen/42x42/{apps,devices,mimetypes,places} %clean rm -rf $RPM_BUILD_ROOT %files -n kde4-icons-oxygen %defattr(644,root,root,755) # digikam has it's own icon in digikam.spec %dir %{_iconsdir}/oxygen/256x256 %dir %{_iconsdir}/oxygen/256x256/actions %dir %{_iconsdir}/oxygen/256x256/apps %dir %{_iconsdir}/oxygen/256x256/categories %dir %{_iconsdir}/oxygen/256x256/devices %dir %{_iconsdir}/oxygen/256x256/mimetypes %dir %{_iconsdir}/oxygen/256x256/places %dir %{_iconsdir}/oxygen/256x256/status %dir %{_iconsdir}/oxygen/42x42 %dir %{_iconsdir}/oxygen/42x42/apps %dir %{_iconsdir}/oxygen/42x42/devices %dir %{_iconsdir}/oxygen/42x42/mimetypes %dir %{_iconsdir}/oxygen/42x42/places %exclude %{_iconsdir}/oxygen/*x*/apps/digikam.* %exclude %{_iconsdir}/oxygen/*x*/apps/showfoto.* %{_iconsdir}/oxygen/*x*/actions/* %{_iconsdir}/oxygen/*x*/apps/* %{_iconsdir}/oxygen/*x*/categories/* %{_iconsdir}/oxygen/*x*/devices/* %{_iconsdir}/oxygen/*x*/mimetypes/* %{_iconsdir}/oxygen/*x*/places/* %{_iconsdir}/oxygen/*x*/status/* %{_iconsdir}/oxygen/*x*/animations/* %{_iconsdir}/oxygen/*x*/emblems/* %{_iconsdir}/oxygen/*x*/emotes/* %{_iconsdir}/oxygen/index.theme %files -n kde4-icons-oxygen-svg %defattr(644,root,root,755) %dir %{_iconsdir}/oxygen/scalable # digikam has it's own icon in digikam.spec %exclude %{_iconsdir}/oxygen/scalable/apps/digikam.* %{_iconsdir}/oxygen/scalable/text-formatting.svg %{_iconsdir}/oxygen/scalable/actions %{_iconsdir}/oxygen/scalable/apps %{_iconsdir}/oxygen/scalable/categories %{_iconsdir}/oxygen/scalable/devices %{_iconsdir}/oxygen/scalable/emblems %{_iconsdir}/oxygen/scalable/emotes %{_iconsdir}/oxygen/scalable/mimetypes %{_iconsdir}/oxygen/scalable/places %{_iconsdir}/oxygen/scalable/status