File entangle.spec of Package entangle

#
# spec file for package entangle
#
# Copyright (c) 2014 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:  gnome-icon-theme-symbolic
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.6.0
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}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%dir %{_datadir}/%{name}
#%{_datadir}/%{name}/%{name}-camera-info.ui
%{_datadir}/%{name}/%{name}-camera-manager.ui
%{_datadir}/%{name}/%{name}-camera-picker.ui
%{_datadir}/%{name}/%{name}-camera-support.ui
%{_datadir}/%{name}/%{name}-help-about.ui
%{_datadir}/%{name}/%{name}-image-popup.ui
%{_datadir}/%{name}/%{name}-preferences-display.ui

%{_datadir}/icons/hicolor/*/apps/entangle*.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 %{_libdir}/%{name}/plugins/photobox
%{_libdir}/%{name}/plugins/photobox/photobox.plugin
%{_libdir}/%{name}/plugins/photobox/photobox.py
%dir %{_datadir}/%{name}/plugins
%dir %{_datadir}/%{name}/plugins/photobox
%dir %{_datadir}/%{name}/plugins/photobox/schemas
%{_datadir}/%{name}/plugins/photobox/schemas/gschemas.compiled
%{_datadir}/%{name}/plugins/photobox/schemas/org.entangle-photo.plugins.photobox.gschema.xml

%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