File oxygen-icon-theme.spec of Package oxygen-icon-theme

#
# spec file for package oxygen-icon-theme (Version 4.3.5)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           oxygen-icon-theme
BuildRequires:  cmake kde4-filesystem libqt4-devel
%if %suse_version > 1020
BuildRequires:  fdupes
%endif
License:        LGPLv2.1+
Group:          System/GUI/KDE
Summary:        Oxygen Icon Theme
Url:            http://www.kde.org
Version:        4.3.5
Release:        0.<RELEASE1>
Requires:       hicolor-icon-theme
Recommends:     oxygen-icon-theme-scalable
Source0:        oxygen-icons-%version.tar.bz2
Source1:        22x22-package-manager-icon.png
Source2:        32x32-package-manager-icon.png
Source3:        48x48-package-manager-icon.png
Source4:        22x22-document.png
Source5:        32x32-document.png
Source6:        48x48-document.png
Source7:        64x64-document.png
Source8:        128x128-document.png
Source9:        document.svgz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Provides:       kdelibs4-icons = 3.92.0
Obsoletes:      kdelibs4-icons <= 3.92.0

%description
This package contains the non-scalable icons of the Oxygen icon theme.



Authors:
--------
    The KDE Team <kde@kde.org>

%prep
%setup -q -n oxygen-icons-%version

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  make install DESTDIR=$RPM_BUILD_ROOT
  mkdir -p $RPM_BUILD_ROOT/usr/share/icons/oxygen/scalable/filesystems
  mkdir -p $RPM_BUILD_ROOT/usr/share/icons/oxygen/128x128/actions
  mkdir -p $RPM_BUILD_ROOT/usr/share/icons/oxygen/64x64/actions
  install -D -m 0644 %SOURCE1 $RPM_BUILD_ROOT/usr/share/icons/oxygen/22x22/apps/package-manager-icon.png
  install -D -m 0644 %SOURCE2 $RPM_BUILD_ROOT/usr/share/icons/oxygen/32x32/apps/package-manager-icon.png
  install -D -m 0644 %SOURCE3 $RPM_BUILD_ROOT/usr/share/icons/oxygen/48x48/apps/package-manager-icon.png
  install -D -m 0644 %SOURCE4 $RPM_BUILD_ROOT/usr/share/icons/oxygen/22x22/apps/document.png
  install -D -m 0644 %SOURCE5 $RPM_BUILD_ROOT/usr/share/icons/oxygen/32x32/apps/document.png
  install -D -m 0644 %SOURCE6 $RPM_BUILD_ROOT/usr/share/icons/oxygen/48x48/apps/document.png
  install -D -m 0644 %SOURCE7 $RPM_BUILD_ROOT/usr/share/icons/oxygen/64x64/apps/document.png
  install -D -m 0644 %SOURCE8 $RPM_BUILD_ROOT/usr/share/icons/oxygen/128x128/apps/document.png
  install -D -m 0644 %SOURCE9 $RPM_BUILD_ROOT/usr/share/icons/oxygen/scalable/apps/document.svgz
  install -D -m 0644 $RPM_BUILD_ROOT/usr/share/icons/oxygen/22x22/places/folder-html.png $RPM_BUILD_ROOT/usr/share/icons/oxygen/22x22/places/folder_html.png
  install -D -m 0644 $RPM_BUILD_ROOT/usr/share/icons/oxygen/32x32/places/folder-html.png $RPM_BUILD_ROOT/usr/share/icons/oxygen/32x32/places/folder_html.png
  install -D -m 0644 $RPM_BUILD_ROOT/usr/share/icons/oxygen/48x48/places/folder-html.png $RPM_BUILD_ROOT/usr/share/icons/oxygen/48x48/places/folder_html.png
  install -D -m 0644 $RPM_BUILD_ROOT/usr/share/icons/oxygen/64x64/places/folder-html.png $RPM_BUILD_ROOT/usr/share/icons/oxygen/64x64/places/folder_html.png
  install -D -m 0644 $RPM_BUILD_ROOT/usr/share/icons/oxygen/128x128/places/folder-html.png $RPM_BUILD_ROOT/usr/share/icons/oxygen/128x128/places/folder_html.png
  #install -D -m 0644 $RPM_BUILD_ROOT/usr/share/icons/oxygen/scalable/places/folder-html.svgz $RPM_BUILD_ROOT/usr/share/icons/oxygen/scalable/places/folder_html.svgz
%if %suse_version > 1020
  %fdupes $RPM_BUILD_ROOT
%endif

%clean
  rm -rf $RPM_BUILD_ROOT

%package scalable
License:        LGPLv2.1+
Group:          System/GUI/KDE
Summary:        Oxygen Icon Theme
Requires:       oxygen-icon-theme = %version
Provides:       kdelibs4-icons-scalable = 3.92.0
Obsoletes:      kdelibs4-icons-scalable <= 3.92.0

%description scalable
This package contains the scalable icons of the Oxygen icon theme.



Authors:
--------
    The KDE Team <kde@kde.org>

%files scalable
%defattr(-,root,root)
%_kde4_iconsdir/oxygen/scalable

%files
%defattr(-,root,root)
%exclude %_kde4_iconsdir/oxygen/scalable/*/*
%if 0
#------------------------------------------------------------------------
#r922660 | bettio | 2009-02-07 14:30:17 +0100 (Sa, 07. Feb 2009) | 3 lines
##
#-60 mb: we don't need to install SVGs because no one needs to render Oxygen SVGs.
#I will not backport this commit but I hope that distro will not waste space.
%dir %_kde4_iconsdir/oxygen/scalable/actions
%dir %_kde4_iconsdir/oxygen/scalable/apps
%dir %_kde4_iconsdir/oxygen/scalable/devices
%dir %_kde4_iconsdir/oxygen/scalable/emblems
%dir %_kde4_iconsdir/oxygen/scalable/filesystems
%dir %_kde4_iconsdir/oxygen/scalable/mimetypes
%dir %_kde4_iconsdir/oxygen/scalable/places
%endif
%_kde4_iconsdir/oxygen

%changelog
openSUSE Build Service is sponsored by