Update for 0.2.0 release
[entangle:entangle.git] / entangle.spec.in
1 # -*- rpm-spec -*-
2
3 %define with_introspection 0
4 %define with_plugins 0
5
6 %if 0%{?fedora} >= 14
7 %define with_introspection 1
8 %define with_plugins 1
9 %endif
10
11 Summary: Tethered shooting & control of digital cameras
12 Name: entangle
13 Version: @VERSION@
14 Release: 1%{?dist}
15 License: GPLv3+
16 Group: Applications/Multimedia
17 Source: http://entangle-photo.org/download/sources/%{name}-%{version}.tar.gz
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
19 URL: http://entangle-photo.org/
20
21 BuildRequires: glib2-devel >= 2.10.0
22 BuildRequires: gtk2-devel >= 2.12.0
23 BuildRequires: libgphoto2-devel >= 2.4.8
24 BuildRequires: libglade2-devel >= 2.6.0
25 %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
26 BuildRequires: libgudev1-devel >= 145
27 %else
28 BuildRequires: hal-devel >= 0.5.10
29 %endif
30 BuildRequires: GConf2-devel >= 2.12.0
31 BuildRequires: dbus-glib-devel >= 0.60
32 BuildRequires: lcms-devel >= 1.18
33 BuildRequires: /usr/bin/tpage
34 %if %{with_introspection}
35 BuildRequires: gobject-introspection-devel
36 %endif
37 %if %{with_plugins}
38 BuildRequires: libpeas-devel >= 0.5.5
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
60 %else
61 %define introspection_arg --disable-introspection
62 %endif
63 %if %{with_plugins}
64 %define plugins_arg --with-plugins
65 %else
66 %define plugins_arg --without-plugins
67 %endif
68
69 %configure %{introspection_arg} %{plugins_arg}
70 make %{?_smp_mflags}
71
72 %install
73 rm -fr %{buildroot}
74
75 %makeinstall
76 rm -rf %{buildroot}%{_datadir}/%{name}/website
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 %if %{with_introspection}
109 %{_datadir}/gir-1.0/Entangle-0.1.gir
110 %{_libdir}/girepository-1.0/Entangle-0.1.typelib
111 %endif
112 %if %{with_plugins}
113 %dir %{_libdir}/%{name}
114 %dir %{_libdir}/%{name}/plugins
115 %dir %{_datadir}/%{name}/plugins
116 %endif
117
118 %changelog
119 * Fri Apr  9 2010 Daniel P. Berrange <berrange@redhat.com> - 0.1.0-2
120 - Remove redundant website content from RPM
121
122 * Thu Apr  8 2010 Daniel P. Berrange <berrange@redhat.com> - 0.1.0-1
123 - Initial release