File geeqie.spec of Package geeqie

#
# spec file for package geeqie (Version 1.0beta2.svn20090730)
#
# Copyright (c) 2009 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

BuildRequires:  gcc-c++ gtk2-devel intltool
%if 0%{?suse_version}
BuildRequires:  liblcms-devel update-desktop-files
%define docname	%{name}
%if %suse_version < 1030
%define _prefix	    /opt/gnome
%define _sysconfdir /etc%{prefix}
# workaround for gtk2 include conflicts on older SUSE versions:
%define _includedir %{_usr}
%endif
%else
BuildRequires:  lcms-devel
%define docname	%{name}-%{version}
%endif
%if 0%{?suse_version} > 1010
BuildRequires:  libexiv2-devel
%endif
%if 0%{?fedora_version}
BuildRequires:  exiv2-devel
%endif
%if 0%{?mandriva_version} > 2007
%ifarch x86_64
BuildRequires:  lib64exiv2-devel
%else
BuildRequires:  libexiv2-devel
%endif
%endif
Summary:        Graphics file browser utility

Name:           geeqie
Version:        1.0beta2.svn20090730
Release:        1
License:        GNU General Public License version 2 or later (GPL v2 or later)
Url:            http://geeqie.sf.net
Group:          Productivity/Graphics/Viewers
Source:         geeqie-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#
# these are requirements of the plugins
Requires:       exiv2 exiftran ImageMagick ufraw

%description
Geeqie is a browser for graphics files.
Offering single click viewing of your graphics files.
Includes thumbnail view, zoom and filtering features.
And external editor support.


%prep
%setup -q -n geeqie-1.0beta2

%build
%configure --with-readmedir="%{_docdir}/%{docname}"
%__make %{?jobs:-j%{jobs}}

%install
make install DESTDIR=%{buildroot}
%if 0%{?suse_version} > 1100
%suse_update_desktop_file -n geeqie
%endif
%__install -m 644 AUTHORS COPYING ChangeLog NEWS README README.lirc "%{buildroot}/%{_docdir}/%{docname}/"

%clean
%__rm -rf "%{buildroot}"

%files 
%defattr(-,root,root)
%doc %{_docdir}/%{docname}
%{_bindir}/geeqie*
%{_datadir}/geeqie
%{_datadir}/locale/*/LC_MESSAGES/*.mo
%{_datadir}/applications/geeqie.desktop
%{_datadir}/pixmaps/geeqie.png
%{_mandir}/man1/geeqie*
%{_prefix}/lib/geeqie
%changelog
openSUSE Build Service is sponsored by