File gimp-separate+.spec of Package gimp-separate+

#
# spec file for package gimp-separate+
#
# Copyright (c) 2012 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:           gimp-separate+
Version:        0.5.8
Release:        0
License:        GPL-2.0
Summary:        GIMP Plugin for Color-management Functions
Url:            http://cue.yellowmagic.info/softwares/separate-plus/index.html
Group:          Productivity/Graphics/Bitmap Editors
Source0:        http://jaist.dl.sourceforge.jp/separate-plus/47873/separate+-%{version}.zip
# PATCH-FIX-UPSTREAM gimp-separate+0.5.8-makefile.patch lazy.kent@opensuse.org -- correct install directories and options in Makefile
Patch0:         gimp-separate+0.5.8-makefile.patch
# PATCH-FIX-UPSTREAM gimp-separate+0.5.8-no-return.patch lazy.kent@opensuse.org -- fix no-return-in-non-void-function error
Patch1:         gimp-separate+0.5.8-no-return.patch
BuildRequires:  libjpeg-devel
BuildRequires:  libtiff-devel
BuildRequires:  unzip
BuildRequires:  pkgconfig(gimp-2.0)
BuildRequires:  pkgconfig(lcms2)
Requires:       gimp
Recommends:     %{name}-lang
Recommends:     AdobeICCProfiles
Recommends:     shared-color-profiles
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Separate+ is the plugin package that provides some useful
color-management functions for the GIMP.

Separate+ contains following components:
* separate: RGB to CMYK conversion / Softproofing plugin
* icc_colorspace: RGB to RGB conversion / Profile management plugin
* IccButton: Color profile selector widget for Gtk+ (experimental)

%lang_package

%prep
%setup -qn separate+-%{version}
%patch0
%patch1
cp sRGB/readme.txt README.sRGB

%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}

%install
%make_install LIB=%{_lib}
install -Dm 0644 sRGB/sRGB_type2.icc \
    %{buildroot}%{_datadir}/color/icc/sRGB_type2.icc
pushd abstract-profiles
for i in *.icc ; do
    install -Dm 0644 "${i}" %{buildroot}%{_datadir}/color/icc/"${i}"
done
popd
%find_lang gimp20-separate

%files
%defattr(-,root,root,-)
%doc COPYING README README_ICC_COLORSPACE README.sRGB sample-scripts
%{_datadir}/color
%{_libdir}/gimp/2.0/plug-ins/*

%files lang -f gimp20-separate.lang

%changelog
openSUSE Build Service is sponsored by