File entangle.spec of Package entangle
#
# spec file for package entangle
#
# Copyright (c) 2017 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.1
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: glib2-tools
BuildRequires: intltool
BuildRequires: itstool
BuildRequires: libtool
BuildRequires: perl-Template-Toolkit
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gexiv2)
BuildRequires: pkgconfig(gnome-icon-theme-symbolic)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtk-doc)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libgphoto2)
BuildRequires: pkgconfig(libpeas-1.0)
BuildRequires: pkgconfig(libraw)
Recommends: %{name}-lang
%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 \
--disable-silent-rules
make %{?_smp_mflags}
# Requires network connection actually
#%check
#make %{?_smp_mflags} check
%install
%make_install
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
%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%{ext_man}
%{_libdir}/libentangle_*.so*
%{_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
%{_datadir}/gtk-doc/*
%files plugin-photobox
%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
%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
%changelog