File create-resources.spec of Package create-resources
#
# spec file for package create-resources
#
# Copyright (c) 2017 SUSE LINUX 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: create-resources
Version: 0.1.3
Release: 0
Summary: Shared graphics resources from the create freedesktop.org project
License: GPL-2.0+
Group: Productivity/Graphics/Other
Url: http://create.freedesktop.org/wiki/Main_Page
Source0: create-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM create-scons-on-py3.patch dimstar@opensuse.org -- Fix build with scons using python3 as interpreter
Patch0: create-scons-on-py3.patch
BuildRequires: fdupes
BuildRequires: scons
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Shared brushes, clipart, gradients, patterns, swatches, used for graphics
programs.
%prep
%setup -q -n create-%{version}
%patch0 -p1
%build
%install
mkdir -p %{buildroot}%{_prefix}
scons install PREFIX=%{buildroot}%{_prefix}
mkdir -p %{buildroot}%{_docdir}
mv %{buildroot}%{_datadir}/doc/create %{buildroot}%{_docdir}/create-resources
rm -f %{buildroot}%{_docdir}/create-resources/INSTALL
%fdupes %{buildroot}
%files
%defattr(-,root,root,-)
%{_datadir}/create/
%doc %{_docdir}/create-resources/
%changelog