File entangle.spec of Package entangle

#
# spec file for package entangle
#
# 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:           entangle
BuildRequires:  dbus-1-glib-devel
BuildRequires:  glib2-tools
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk3-devel
BuildRequires:  intltool
BuildRequires:  libgexiv2-devel
BuildRequires:  libgphoto2-devel
BuildRequires:  libgudev-1_0-devel
BuildRequires:  liblcms-devel
BuildRequires:  libpeas-devel
BuildRequires:  libraw-devel
BuildRequires:  libtool
BuildRequires:  perl-Template-Toolkit
BuildRequires:  update-desktop-files
Summary:        A photobooth like application for libgphoto2
License:        GPL-3.0+
Group:          Development/Tools/Other
Version:        0.5.3
Release:        0
Url:            http://entangle-photo.org/
Source0:        http://entangle-photo.org/download/sources/%name-%version.tar.gz
Source1:        http://entangle-photo.org/download/sources/%name-%version.tar.gz.asc
Source2:        %name.keyring
Patch0:         entangle-desktop.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Entangle provides a graphical interface for "tethered shooting", aka
taking photographs with a digital camera completely controlled from
the computer.

%package doc
Summary:        Documentation for entangle
Group:          Documentation/HTML
Requires:       %{name} = %{version}

%description doc
Entangle provides a graphical interface for "tethered shooting", aka
taking photographs with a digital camera completely controlled from
the computer.

Documentation for entangle.

%lang_package

%prep
%setup -q
%patch0 -p1

%build
%configure --disable-static
make V=1

%check
make %{?_smp_mflags} check

%install
make DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_datadir}/%{name}/website
rm -f %{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled

%suse_update_desktop_file %{name}
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
glib-compile-schemas /usr/share/glib-2.0/schemas ||:

%postun
glib-compile-schemas /usr/share/glib-2.0/schemas ||:

%files
%defattr(-, root, root)
%doc COPYING ChangeLog
%{_bindir}/entangle
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}-camera-info.xml
%{_datadir}/%{name}/%{name}-camera-manager.xml
%{_datadir}/%{name}/%{name}-camera-picker.xml
%{_datadir}/%{name}/%{name}-camera-support.xml
%{_datadir}/%{name}/%{name}-help-about.xml
%{_datadir}/%{name}/%{name}-image-popup.xml
%{_datadir}/%{name}/%{name}-preferences.xml
%{_datadir}/%{name}/%{name}-16x16.png
%{_datadir}/%{name}/%{name}-32x32.png
%{_datadir}/%{name}/%{name}-48x48.png
%{_datadir}/%{name}/%{name}-64x64.png
%{_datadir}/%{name}/%{name}-128x128.png
%{_datadir}/%{name}/%{name}-256x256.png
%{_datadir}/%{name}/%{name}.svg
%{_datadir}/%{name}/icons
%{_datadir}/%{name}/plugins.png
%{_datadir}/%{name}/plugins-22.png
%{_datadir}/%{name}/capture.png
%{_datadir}/%{name}/capture-22.png
%{_datadir}/%{name}/color-management.png
%{_datadir}/%{name}/color-management-22.png
%{_datadir}/%{name}/interface.png
%{_datadir}/%{name}/interface-22.png
%{_datadir}/%{name}/imageviewer.png
%{_datadir}/%{name}/imageviewer-22.png
%{_datadir}/%{name}/sRGB.icc
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.entangle-photo.manager.gschema.xml
%{_datadir}/gir-1.0/Entangle-0.1.gir
%{_mandir}/man1/entangle.1.gz
%{_libdir}/girepository-1.0/Entangle-0.1.typelib
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%dir %{_datadir}/%{name}/plugins

%files doc
%doc README AUTHORS NEWS
%defattr(-, root, root)
%{_datadir}/gtk-doc/*

%files lang -f %{name}.lang
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by