File ufraw.spec of Package ufraw

#
# spec file for package ufraw
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           ufraw
BuildRequires:  gcc-c++ gimp-devel libgtkimageview-devel liblcms-devel libpng-devel libstdc++-devel libtiff-devel update-desktop-files
BuildRequires:  lensfun-devel libexiv2-devel
Url:            http://ufraw.sourceforge.net/
# gimptool-2.0 --gimpplugindir
%define _gimpplugindir %(gimptool-2.0 --gimpplugindir)
License:        GPL-2.0+
Group:          Productivity/Graphics/Other
AutoReqProv:    on
Version:        0.18
Release:        1
%define vversion 0.18
Summary:        The Unidentified Flying Raw
Source:         %{name}-%{version}.tar.bz2
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
License:        GPL-2.0+
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
AutoReqProv:    on
%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"
%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