]> git.pld-linux.org Git - packages/shotwell.git/blob - shotwell.spec
Update to 0.20.2
[packages/shotwell.git] / shotwell.spec
1 Summary:        Photo manager for GNOME
2 Name:           shotwell
3 Version:        0.20.2
4 Release:        1
5 License:        LGPL v2+ and CC-BY-SA
6 Group:          X11/Applications
7 Source0:        http://ftp.gnome.org/pub/GNOME/sources/shotwell/0.20/%{name}-%{version}.tar.xz
8 # Source0-md5:  0adb93edba5832c6572e2c851c5c920f
9 Patch0:         %{name}-cflags.patch
10 URL:            http://www.yorba.org/projects/shotwell/
11 # The dependencies are listed in Makefile
12 BuildRequires:  atk-devel
13 BuildRequires:  bash
14 BuildRequires:  gettext-devel
15 BuildRequires:  gexiv2-devel
16 BuildRequires:  glib2-devel >= 2.32.0
17 BuildRequires:  gstreamer-devel >= 1.0.0
18 BuildRequires:  gstreamer-plugins-base-devel >= 1.0.0
19 BuildRequires:  gtk+3-devel >= 3.6
20 BuildRequires:  gtk-webkit3-devel >= 1.4.0
21 BuildRequires:  json-glib-devel >= 0.6.16
22 BuildRequires:  libexif-devel >= 0.6.16
23 BuildRequires:  libgee-devel >= 0.8.5
24 BuildRequires:  libgphoto2-devel >= 2.4.2
25 BuildRequires:  libraw-devel >= 0.14.7-2
26 BuildRequires:  libsoup-devel >= 2.26.0
27 BuildRequires:  libxml2-devel >= 1:2.6.32
28 BuildRequires:  m4
29 BuildRequires:  pkgconfig
30 BuildRequires:  rest-devel >= 0.7
31 BuildRequires:  rpmbuild(macros) >= 1.311
32 BuildRequires:  sqlite3-devel >= 3.5.9
33 BuildRequires:  udev-glib-devel >= 145
34 BuildRequires:  vala >= 1:0.20.1
35 BuildRequires:  vala-gexiv2 >= 0.4.90
36 BuildRequires:  vala-libgee >= 0.8.5
37 Requires(post,postun):  desktop-file-utils
38 Requires(post,postun):  glib2 >= 1:2.26.0
39 Requires(post,postun):  gtk-update-icon-cache
40 Requires(post,postun):  hicolor-icon-theme
41 Requires:       hicolor-icon-theme
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %description
45 Shotwell is a digital photo organizer designed for the GNOME desktop
46 environment. It allows you to import photos from disk or camera,
47 organize them in various ways, view them in full-window or fullscreen
48 mode, and export them to share with others.
49
50 %prep
51 %setup -q
52 %patch0 -p1
53
54 %build
55 # this is not autoconf generated
56 ./configure \
57         --prefix=%{_prefix} \
58         --lib=%{_lib} \
59         --libexec=%{_libexecdir} \
60         --disable-desktop-update \
61         --disable-icon-update
62
63 %{__make} \
64         CC="%{__cc}" \
65         RPMCFLAGS="%{rpmcflags}"
66
67 %install
68 rm -rf $RPM_BUILD_ROOT
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 %find_lang shotwell --with-gnome
74
75 %{__rm} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/gschemas.compiled
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %post
81 %update_icon_cache hicolor
82 %update_desktop_database
83 %glib_compile_schemas
84
85 %postun
86 %update_icon_cache hicolor
87 %update_desktop_database_postun
88 %glib_compile_schemas
89
90 %files -f shotwell.lang
91 %defattr(644,root,root,755)
92 %doc AUTHORS COPYING MAINTAINERS NEWS README THANKS
93 %attr(755,root,root) %{_bindir}/shotwell*
94 %{_desktopdir}/%{name}-viewer.desktop
95 %{_desktopdir}/%{name}.desktop
96 %attr(755,root,root) %{_libexecdir}/shotwell-settings-migrator
97 %attr(755,root,root) %{_libexecdir}/shotwell-video-thumbnailer
98 %{_datadir}/appdata/shotwell.appdata.xml
99 %{_datadir}/%{name}
100 %{_datadir}/GConf/gsettings/*.convert
101 %{_datadir}/glib-2.0/schemas/*.gschema.xml
102 %dir %{_libdir}/%{name}
103 %dir %{_libdir}/%{name}/plugins
104 %dir %{_libdir}/%{name}/plugins/builtin
105 %{_libdir}/%{name}/plugins/builtin/*.png
106 %{_libdir}/%{name}/plugins/builtin/*.glade
107 %attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/*.so
108 %{_iconsdir}/hicolor/*/*/*.svg
This page took 0.078262 seconds and 3 git commands to generate.