Fix support for VPATH builds
[entangle:entangle.git] / entangle.spec.in
1 # -*- rpm-spec -*-
2
3 Summary: Tethered shooting & control of digital cameras
4 Name: entangle
5 Version: @VERSION@
6 Release: 1%{?dist}%{?extra_release}
7 License: GPLv3+
8 Group: Applications/Multimedia
9 Source: http://entangle-photo.org/download/sources/%{name}-%{version}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
11 URL: http://entangle-photo.org/
12
13 BuildRequires: glib2-devel >= 2.26.0
14 BuildRequires: gtk3-devel >= 3.0
15 BuildRequires: libgphoto2-devel >= 2.4.11
16 BuildRequires: libgudev1-devel >= 145
17 BuildRequires: dbus-glib-devel >= 0.60
18 BuildRequires: lcms2-devel >= 2.0
19 BuildRequires: gobject-introspection-devel
20 BuildRequires: libpeas-devel >= 1.2.0
21 BuildRequires: libgexiv2-devel >= 0.2.2
22 BuildRequires: intltool
23 BuildRequires: libX11-devel
24 BuildRequires: libXext-devel >= 1.3.0
25 BuildRequires: LibRaw-devel >= 0.9.0
26
27 BuildRequires: gnome-icon-theme-symbolic
28 Requires: gnome-icon-theme-symbolic
29
30 Requires(post): desktop-file-utils
31 Requires(postun): desktop-file-utils
32
33 %description
34 Entangle is an application which uses GTK and libgphoto2 to provide a
35 graphical interface for tethered photography with digital cameras.
36
37 It includes control over camera shooting and configuration settings
38 and 'hands off' shooting directly from the controlling computer.
39
40 %prep
41 %setup -q
42
43 %build
44
45 %configure --disable-schemas-compile
46 make %{?_smp_mflags} V=1
47
48 %install
49 rm -fr %{buildroot}
50
51 make install DESTDIR=$RPM_BUILD_ROOT
52 rm -rf %{buildroot}%{_datadir}/%{name}/website
53 %find_lang %{name}
54
55 %clean
56 rm -fr %{buildroot}
57
58 %post
59 update-desktop-database %{_datadir}/applications
60 glib-compile-schemas /usr/share/glib-2.0/schemas ||:
61 touch -c %{_datadir}/icons/hicolor
62 if [ -x /usr/bin/gtk-update-icon-cache ]; then
63         /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor || :
64 fi
65
66 %postun
67 update-desktop-database %{_datadir}/applications
68 glib-compile-schemas /usr/share/glib-2.0/schemas ||:
69 touch -c %{_datadir}/icons/hicolor
70 if [ -x /usr/bin/gtk-update-icon-cache ]; then
71         /usr/bin/gtk-update-icon-cache -q %{_datadir}/icons/hicolor || :
72 fi
73
74 %files -f %{name}.lang
75 %defattr(-, root, root)
76 %doc README COPYING AUTHORS NEWS ChangeLog
77 %{_bindir}/entangle
78 %{_mandir}/man1/entangle.1*
79 %{_datadir}/%{name}/%{name}-camera-manager.ui
80 %{_datadir}/%{name}/%{name}-camera-picker.ui
81 %{_datadir}/%{name}/%{name}-camera-support.ui
82 %{_datadir}/%{name}/%{name}-help-about.ui
83 %{_datadir}/%{name}/%{name}-image-popup.ui
84 %{_datadir}/%{name}/%{name}-preferences-display.ui
85 %{_datadir}/icons/hicolor/*/apps/entangle.png
86 %{_datadir}/icons/hicolor/*/apps/entangle-*.png
87 %{_datadir}/icons/hicolor/scalable/apps/entangle.svg
88 %dir %{_libdir}/%{name}
89 %dir %{_libdir}/%{name}/plugins
90 %dir %{_libdir}/%{name}/plugins/photobox
91 %dir %{_datadir}/%{name}
92 %dir %{_datadir}/%{name}/plugins
93 %dir %{_datadir}/%{name}/plugins/photobox
94 %dir %{_datadir}/%{name}/plugins/photobox/schemas
95 %{_libdir}/%{name}/plugins/photobox/photobox.plugin
96 %{_libdir}/%{name}/plugins/photobox/photobox.py*
97 %{_datadir}/%{name}/plugins/photobox/schemas/gschemas.compiled
98 %{_datadir}/%{name}/plugins/photobox/schemas/org.entangle-photo.plugins.photobox.gschema.xml
99 %{_datadir}/%{name}/sRGB.icc
100 %{_datadir}/gtk-doc/html/Entangle
101 %{_datadir}/applications/%{name}.desktop
102 %{_datadir}/appdata/%{name}.appdata.xml
103 %{_datadir}/glib-2.0/schemas/org.entangle-photo.manager.gschema.xml
104 %{_datadir}/gir-1.0/Entangle-0.1.gir
105 %{_libdir}/girepository-1.0/Entangle-0.1.typelib
106
107 %changelog