File sugar-artwork.spec of Package sugar-artwork

#
# spec file for package sugar-artwork
#
# Copyright (c) 2013 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:           sugar-artwork
Version:        0.107.2
%if 0%{?suse_version}
Release:        1
%else
Release:        1%{?dist}
%endif
License:  ASL-2.0
Summary:        Artwork for Sugar look-and-feel
Url:            http://sugarlabs.org/
Group:          System/GUI/Other
Source0: http://download.sugarlabs.org/sources/sucrose/glucose/%{name}/%{name}-%{version}.tar.xz
Source1:        %{name}-rpmlintrc
Requires:       gtk2 >= 2.9.0
Requires:       gtk3
BuildRequires:  fdupes
BuildRequires:  gtk3-devel
BuildRequires:  icon-naming-utils
BuildRequires:  icon-slicer
BuildRequires:  perl-XML-Parser
BuildRequires:  python
BuildRequires:  xorg-x11
BuildRequires:  pkgconfig(gtk+-2.0) >= 2.9.0

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Contains the themes and icons that make up the Sugar default look and feel.

%prep
%setup -q


%build
%define __libtoolize true
%configure
make %{?_smp_mflags}

%install
%make_install
rm -f %{buildroot}/%{_libdir}/gtk-2.0/*/engines/*.la
%fdupes -s %{buildroot}


%clean
rm -rf %{buildroot}

%post
touch --no-create %{_datadir}/icons/sugar || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/sugar || :

%postun
touch --no-create %{_datadir}/icons/sugar || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/sugar || :

%files
%defattr(-,root,root,-)
%{_datadir}/icons/*
%{_datadir}/themes/*
%{_libdir}/gtk*/*/engines/*
%doc COPYING NEWS README

%changelog
openSUSE Build Service is sponsored by