File gtkam.spec of Package gtkam

#
# spec file for package gtkam
#
# 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:           gtkam
BuildRequires:  fdupes
BuildRequires:  gimp-devel
BuildRequires:  intltool
BuildRequires:  libexif-gtk-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  libgphoto2-devel
BuildRequires:  update-desktop-files
Summary:        A GTK Digital Camera Tool
License:        GPL-2.0+
Group:          Hardware/Camera
Version:        0.2.0
Release:        0
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://gphoto.org
Requires:       %{name}-lang = %{version}

%description
GTKam is a GTK and GNOME based tool for accessing a digital camera,
viewing thumbnails, and downloading pictures from the camera.

%package doc
Summary:        Documentation for gtkcam
Group:          Documentation/Man
Requires:       %{name} = %{version}

%description doc
Documentation for gtkcam.



Authors:
--------
    Scott Fritzinger <scottf@unr.edu>
    Philippe Marzouk <bullmali@afribone.net.ml>
    Colin Marquardt <colin@marquardt-home.de>

%lang_package
%prep
%setup -q

%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
%configure
make %{?jobs:-j%jobs}

%install
%makeinstall
# cleanup
rm -r $RPM_BUILD_ROOT%{_datadir}/doc/gtkam
%suse_update_desktop_file %{name} Graphics Photography
%find_lang %{name}
%fdupes $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog CHANGES COPYING NEWS README TODO
%{_bindir}/gtkam
%{_datadir}/applications/*.desktop
%{_datadir}/gtkam
# FIXME: There is no generic %{_datadir}/images. Better would be %{_datadir}/pixmaps (upstream problem).
%dir %{_datadir}/images
%dir %{_datadir}/omf
%{_datadir}/images/gtkam
%{_datadir}/pixmaps/gtkam.png
%{_datadir}/pixmaps/gtkam-camera.png
%{_libdir}/gimp/2.0/plug-ins/gtkam-gimp

%files lang -f %{name}.lang

%files doc
%defattr(-,root,root)
%doc AUTHORS ChangeLog CHANGES COPYING NEWS README TODO
%{_mandir}/man1/*.*

%changelog
openSUSE Build Service is sponsored by