Add link to download area
[entangle:entangle.git] / entangle.spec.in
1 # -*- rpm-spec -*-
2
3 %define with_introspection 0
4
5 %if 0%{?fedora} >= 12
6 %define with_introspection 1
7 %endif
8 %if 0%{?rhel} >= 6
9 %define with_introspection 1
10 %endif
11
12 Summary: Tethered shooting & control of digital cameras
13 Name: entangle
14 Version: @VERSION@
15 Release: 1%{?dist}%{?extra_release}
16 License: GPLv3+
17 Group: Applications/Multimedia
18 Source: http://entangle-project.org/download/%{name}-%{version}.tar.gz
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
20 URL: http://entangle-project.org/
21
22 BuildRequires: glib2-devel >= 2.10.0
23 BuildRequires: gtk2-devel >= 2.12.0
24 BuildRequires: libgphoto2-devel >= 2.4.8
25 BuildRequires: libglade2-devel >= 2.6.0
26 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
27 BuildRequires: libgudev1-devel >= 145
28 %else
29 BuildRequires: hal-devel >= 0.5.10
30 %endif
31 BuildRequires: GConf2-devel >= 2.12.0
32 BuildRequires: dbus-glib-devel >= 0.60
33 BuildRequires: lcms-devel >= 1.18
34 BuildRequires: /usr/bin/tpage
35 %if %{with_introspection}
36 BuildRequires: gobject-introspection-devel
37 BuildRequires: gir-repository-devel
38 BuildRequires: gjs-devel
39 %endif
40 BuildRequires: startup-notification-devel >= 0.5
41 BuildRequires: unique-devel >= 1.0.0
42
43 Requires(post): desktop-file-utils
44 Requires(postun): desktop-file-utils
45
46 %description
47 Entangle is an application which uses GTK and libgphoto2 to provide a
48 graphical interface for tethered photography with digital cameras.
49
50 It includes control over camera shooting and configuration settings
51 and 'hands off' shooting directly from the controlling computer.
52
53 %prep
54 %setup -q
55
56 %build
57
58 %if %{with_introspection}
59 %define introspection_arg --enable-introspection --with-javascript
60 %else
61 %define introspection_arg --disable-introspection --without-javascript
62 %endif
63
64 %configure %{introspection_arg}
65 make %{?_smp_mflags}
66
67 %install
68 rm -fr %{buildroot}
69
70 %makeinstall
71
72 rm -f %{buildroot}%{_libdir}/entangle/plugins/*.a
73 rm -f %{buildroot}%{_libdir}/entangle/plugins/*.la
74
75 cd %{buildroot}%{_datadir}/%{name}/website
76 ln -s ../../gtk-doc/html/Entangle api
77
78 %clean
79 rm -fr %{buildroot}
80
81 %post
82 update-desktop-database %{_datadir}/applications
83
84 %postun
85 update-desktop-database %{_datadir}/applications
86
87 %files
88 %defattr(-, root, root)
89 %doc README COPYING AUTHORS NEWS ChangeLog
90 %{_bindir}/entangle
91 %{_datadir}/%{name}/%{name}.glade
92 %{_datadir}/%{name}/%{name}-16x16.png
93 %{_datadir}/%{name}/%{name}-32x32.png
94 %{_datadir}/%{name}/%{name}-48x48.png
95 %{_datadir}/%{name}/%{name}-64x64.png
96 %{_datadir}/%{name}/%{name}-128x128.png
97 %{_datadir}/%{name}/%{name}-256x256.png
98 %{_datadir}/%{name}/%{name}.svg
99 %{_datadir}/%{name}/plugins.png
100 %{_datadir}/%{name}/plugins-22.png
101 %{_datadir}/%{name}/folders.png
102 %{_datadir}/%{name}/folders-22.png
103 %{_datadir}/%{name}/color-management.png
104 %{_datadir}/%{name}/color-management-22.png
105 %{_datadir}/%{name}/sRGB.icc
106 %{_datadir}/gtk-doc/html/Entangle
107 %{_datadir}/applications/%{name}.desktop
108 %doc %{_datadir}/%{name}/website/
109 %if %{with_introspection}
110 %{_datadir}/gir-1.0/Entangle-0.1.gir
111 %{_datadir}/gir-1.0/GPhoto-2.0.gir
112 %{_libdir}/girepository-1.0/Entangle-0.1.typelib
113 %{_libdir}/girepository-1.0/GPhoto-2.0.typelib
114 %dir %{_libdir}/entangle
115 %dir %{_libdir}/entangle/plugins
116 %{_libdir}/entangle/plugins/javascript.so
117 %dir %{_datadir}/%{name}/plugins
118 %dir %{_datadir}/%{name}/plugins/javascript
119 %{_datadir}/%{name}/plugins/javascript/plugin.cfg
120 %endif
121
122 %changelog
123 * Wed Sep 30 2009 Daniel P. Berrange <berrange@redhat.com> - 0.0.1-1
124 - Initial package