File gimp-separate+.spec of Package gimp-separate+
#
# spec file for package gimp-separate+ (Version 0.5.8)
#
# Copyright (c) 2011 Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
Name: gimp-separate+
Version: 0.5.8
Release: 0
License: GPLv2
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+-0.5.8.zip
# PATCH-FIX-OPENSUSE 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
# PATCH-FIX-UPSTREAM gimp-separate+0.5.8-implicit-pointer-decl.patch lazy.kent@opensuse.org -- fix implicit-pointer-decl warning
Patch2: gimp-separate+0.5.8-implicit-pointer-decl.patch
BuildRequires: gimp-devel
BuildRequires: liblcms2-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
BuildRequires: unzip
Requires: gimp
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)
%prep
%setup -qn separate+-%{version}
%patch0
%patch1
%if 0%{?suse_version} && 0%{?suse_version} < 1140
%patch2
%endif
%__cp sRGB/readme.txt README.sRGB
%build
export CFLAGS="%{optflags}"
%__make %{?_smp_mflags}
%install
%makeinstall 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
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f gimp20-separate.lang
%defattr(-,root,root,-)
%doc COPYING README README_ICC_COLORSPACE README.sRGB sample-scripts
%{_datadir}/color
%{_libdir}/gimp/2.0/plug-ins/*
%changelog