]> git.pld-linux.org Git - packages/shotwell.git/blob - shotwell.spec
ee182bdb95d5d6b78c3d483ea3b91345a961468c
[packages/shotwell.git] / shotwell.spec
1 Summary:        Photo manager for GNOME
2 Name:           shotwell
3 Version:        0.13.1
4 Release:        1
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
14 BuildRequires:  bash
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
30 BuildRequires:  m4
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)
45
46 %description
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.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55 %patch1 -p1
56 %patch2 -p1
57
58 %build
59 # this is not autoconf generated
60 ./configure \
61         --prefix=%{_prefix} \
62         --lib=%{_lib} \
63         --disable-schemas-install \
64         --disable-desktop-update \
65         --disable-icon-update
66
67 %{__make} \
68         CC="%{__cc}" \
69         RPMCFLAGS="%{rpmcflags}"
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
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}
80
81 %find_lang shotwell --with-gnome
82 %find_lang shotwell-extras
83
84 cat shotwell.lang shotwell-extras.lang > shotwell-all.lang
85
86 %{__rm} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/gschemas.compiled
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post
92 %update_icon_cache hicolor
93 %update_desktop_database
94 %glib_compile_schemas
95
96 %postun
97 %update_icon_cache hicolor
98 %update_desktop_database_postun
99 %glib_compile_schemas
100
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
108 %{_datadir}/%{name}
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
This page took 0.099714 seconds and 2 git commands to generate.