1 Summary: Photo manager for GNOME
5 License: LGPL v2+ and CC-BY-SA
6 Group: X11/Applications
7 Source0: http://yorba.org/download/shotwell/0.13/%{name}-%{version}.tar.xz
8 # Source0-md5: 71eb1346093705ca2b37c12a21994d14
9 Patch0: %{name}-cflags.patch
10 Patch1: %{name}-libexec.patch
11 Patch2: %{name}-format_string.patch
12 URL: http://yorba.org/shotwell/
13 # The dependencies are listed in Makefile
15 BuildRequires: gettext-devel
16 BuildRequires: gexiv2-devel
17 BuildRequires: glib2-devel >= 2.30.0
18 BuildRequires: gstreamer-devel >= 0.10.28
19 BuildRequires: gstreamer-plugins-base-devel >= 0.10.32
20 BuildRequires: gtk+3-devel >= 3.4
21 BuildRequires: gtk-webkit3-devel >= 1.4.0
22 BuildRequires: json-glib-devel >= 0.6.16
23 BuildRequires: libexif-devel >= 0.6.16
24 BuildRequires: libgphoto2-devel >= 2.4.2
25 BuildRequires: libraw-devel >= 0.14.7-2
26 BuildRequires: libsoup-devel >= 2.26.0
27 BuildRequires: libunique3-devel >= 3.0.0
28 BuildRequires: libusb-compat-devel
29 BuildRequires: libxml2-devel >= 1:2.6.32
31 BuildRequires: pkgconfig
32 BuildRequires: rest-devel >= 0.7
33 BuildRequires: rpmbuild(macros) >= 1.311
34 BuildRequires: sqlite3-devel >= 3.5.9
35 BuildRequires: udev-glib-devel >= 145
36 BuildRequires: vala >= 1:0.17.2
37 BuildRequires: vala-gexiv2 >= 0.3.92
38 BuildRequires: vala-libgee >= 0.5.0
39 Requires(post,postun): desktop-file-utils
40 Requires(post,postun): glib2 >= 1:2.26.0
41 Requires(post,postun): gtk-update-icon-cache
42 Requires(post,postun): hicolor-icon-theme
43 Requires: hicolor-icon-theme
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 Shotwell is a digital photo organizer designed for the GNOME desktop
48 environment. It allows you to import photos from disk or camera,
49 organize them in various ways, view them in full-window or fullscreen
50 mode, and export them to share with others.
59 # this is not autoconf generated
63 --disable-schemas-install \
64 --disable-desktop-update \
69 RPMCFLAGS="%{rpmcflags}"
72 rm -rf $RPM_BUILD_ROOT
75 DESTDIR=$RPM_BUILD_ROOT
77 # ta_IN is a duplicate of ta
78 # te_IN is incomplete duplicate of te
79 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{ta_IN,te_IN}
81 %find_lang shotwell --with-gnome
82 %find_lang shotwell-extras
84 cat shotwell.lang shotwell-extras.lang > shotwell-all.lang
86 %{__rm} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/gschemas.compiled
89 rm -rf $RPM_BUILD_ROOT
92 %update_icon_cache hicolor
93 %update_desktop_database
97 %update_icon_cache hicolor
98 %update_desktop_database_postun
101 %files -f shotwell-all.lang
102 %defattr(644,root,root,755)
103 %doc AUTHORS COPYING MAINTAINERS NEWS README THANKS
104 %attr(755,root,root) %{_bindir}/shotwell*
105 %{_desktopdir}/%{name}-viewer.desktop
106 %{_desktopdir}/%{name}.desktop
107 %attr(755,root,root) %{_libdir}/%{name}/shotwell-settings-migrator
109 %{_datadir}/GConf/gsettings/*.convert
110 %{_datadir}/glib-2.0/schemas/*.gschema.xml
111 %dir %{_libdir}/%{name}
112 %dir %{_libdir}/%{name}/plugins
113 %dir %{_libdir}/%{name}/plugins/builtin
114 %{_libdir}/%{name}/plugins/builtin/*.png
115 %{_libdir}/%{name}/plugins/builtin/*.glade
116 %attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/*.so
117 %{_iconsdir}/hicolor/*/*/*.svg