File entangle.spec of Package entangle

#
# spec file for package spec
#
# Copyright (c) 2015 SUSE LINUX 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
Version:        0.7.0
Release:        0
Summary:        A photobooth like application for libgphoto2
License:        GPL-3.0+
Group:          Productivity/Graphics/Other
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
BuildRequires:  dbus-1-glib-devel
BuildRequires:  glib2-tools
BuildRequires:  gnome-icon-theme-symbolic
BuildRequires:  gobject-introspection-devel
BuildRequires:  gtk-doc
BuildRequires:  gtk3-devel
BuildRequires:  intltool
BuildRequires:  itstool
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
#BuildRequires:  yelp-tools
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires

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

%package plugin-photobox
Summary:        Captive interface for public photo box
Group:          Productivity/Graphics/Other
Requires:       %{name} = %{version}
Requires:       python3

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

This package provides the photobox plugin for %{name}.

%package plugin-shooter
Summary:        Repeated batch mode shooting
Group:          Productivity/Graphics/Other
Requires:       %{name} = %{version}
Requires:       python3

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

This package provides the shooter plugin for %{name}.

%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 %{?_smp_mflags} V=1

# Requires network connection actually
#%check
#make %{?_smp_mflags} check

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
rm -rf %{buildroot}%{_datadir}/%{name}/website
rm -f %{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled
find %{buildroot} -type f -name "*.la" -delete -print
# We do not provide a devel subpackage
rm -f %{buildroot}%{_libdir}/lib%{name}_*.so
rm -rf %{buildroot}%{_datadir}/gir-1.0/
%suse_update_desktop_file %{name}
%find_lang %{name}

%post
%glib2_gsettings_schema_post
/sbin/ldconfig

%postun
%glib2_gsettings_schema_postun
/sbin/ldconfig

%files
%defattr(-, root, root)
%doc COPYING NEWS README
%{_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*.*
%{_datadir}/%{name}/sRGB.icc
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.entangle-photo.manager.gschema.xml
%{_mandir}/man1/entangle.1.gz
%{_libdir}/libentangle_*.so*
%{_libdir}/girepository-1.0/Entangle-0.1.typelib
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%dir %{_datadir}/%{name}/plugins

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

%files plugin-photobox
%defattr(-,root,root)
%dir %{_libdir}/%{name}/plugins/photobox
%{_libdir}/%{name}/plugins/photobox/photobox.plugin
%{_libdir}/%{name}/plugins/photobox/photobox.py
%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 plugin-shooter
%defattr(-,root,root)
%dir %{_libdir}/%{name}/plugins/shooter
%dir %{_datadir}/%{name}/plugins/shooter
%dir %{_datadir}/%{name}/plugins/shooter/schemas
%{_libdir}/%{name}/plugins/shooter/shooter.plugin
%{_libdir}/%{name}/plugins/shooter/shooter.py*
%{_datadir}/%{name}/plugins/shooter/schemas/gschemas.compiled
%{_datadir}/%{name}/plugins/shooter/schemas/org.entangle-photo.plugins.shooter.gschema.xml

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

%changelog