File ufraw.spec of Package ufraw

#
# spec file for package ufraw
#
# 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:           ufraw
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  gimp-devel
BuildRequires:  lensfun-devel
BuildRequires:  libexiv2-devel
BuildRequires:  libgtkimageview-devel
BuildRequires:  libjpeg-devel
BuildRequires:  liblcms-devel
BuildRequires:  libpng-devel
BuildRequires:  libstdc++-devel
BuildRequires:  libtiff-devel
BuildRequires:  update-desktop-files
Url:            http://ufraw.sourceforge.net/
# gimptool-2.0 --gimpplugindir
%define _gimpplugindir %(gimptool-2.0 --gimpplugindir)
Version:        0.19.2
Release:        0
Summary:        The Unidentified Flying Raw
License:        GPL-2.0+
Group:          Productivity/Graphics/Other
Source:         http://downloads.sourceforge.net/project/ufraw/ufraw/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch:          %{name}-desktop.patch
Patch1:         %{name}-boundary.patch
Patch2:         %{name}-glibc210.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Recommends:     %{name}-lang

%description
Application to read and manipulate raw images from digital cameras. It
takes care of the color management, handles the Nikon curve formats and
has an editor for the tone curves. For batch processing of images you
can use the command-line.



Authors:
--------
    Udi Fuchs UdiFuchs@gmail.com

%package -n gimp-ufraw
Summary:        Raw photo loader plugin for The GIMP
Group:          Productivity/Graphics/Other
Obsoletes:      rawphoto < %{version}
Obsoletes:      ufraw-gimp < %{version}
Provides:       gimp-2.0-dcraw-plugin
Provides:       rawphoto = %{version}
Provides:       ufraw-gimp = %{version}
Enhances:       gimp-2.0
Suggests:       dcraw-gnome
%if %{?gimp_api_version:1}0
Requires:       gimp(abi) = %{gimp_abi_version}
Requires:       gimp(api) = %{gimp_api_version}
%else
%requires_eq gimp
%endif

%description -n gimp-ufraw
UFRaw is a utility to read and manipulate raw images from digital
cameras. It can be used as a GIMP plug-in. It reads raw images using
Dave Coffin's raw conversion utility DCRaw. And it supports basic color
management using Little CMS, allowing the user to apply color profiles.



Authors:
--------
    Udi Fuchs UdiFuchs@gmail.com

%lang_package
%prep
%setup -q
%patch
%patch1
%patch2 -p1

%build
%ifarch ppc64
  export CFLAGS="-m64 $RPM_OPT_FLAGS"
%else
  export CFLAGS="$RPM_OPT_FLAGS"
%endif
export CXXFLAGS="$CFLAGS"
./autogen.sh
%configure --enable-contrast
make %{?jobs:-j%jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
%suse_update_desktop_file -i ufraw Photography
%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%files lang -f %name.lang

%files
%defattr(-,root,root)
%doc COPYING MANIFEST README TODO
%_bindir/*
%_mandir/man?/*
%_datadir/pixmaps/ufraw.png
%_datadir/applications/*.desktop

%files -n gimp-ufraw
%defattr(-,root,root)
%dir %{_libdir}/gimp/
%dir %{_libdir}/gimp/2.0
%_gimpplugindir/plug-ins/

%changelog
openSUSE Build Service is sponsored by