]> git.pld-linux.org Git - packages/shotwell.git/blob - shotwell.spec
- release 2 (libraw rebuild)
[packages/shotwell.git] / shotwell.spec
1 Summary:        Photo manager for GNOME
2 Summary(pl.UTF-8):      Zarządca zdjęć dla GNOME
3 Name:           shotwell
4 Version:        0.22.0
5 Release:        2
6 License:        LGPL v2+ and CC-BY-SA
7 Group:          X11/Applications
8 Source0:        http://ftp.gnome.org/pub/GNOME/sources/shotwell/0.22/%{name}-%{version}.tar.xz
9 # Source0-md5:  18421a67a1b859caf8542777a42b9ce3
10 Patch0:         %{name}-cflags.patch
11 Patch1:         %{name}-plugins.patch
12 URL:            https://wiki.gnome.org/Apps/Shotwell
13 # The dependencies are listed in Makefile
14 BuildRequires:  atk-devel
15 BuildRequires:  bash
16 BuildRequires:  gettext-tools
17 BuildRequires:  gexiv2-devel >= 0.4.90
18 BuildRequires:  glib2-devel >= 1:2.32.0
19 BuildRequires:  gnome-doc-utils
20 BuildRequires:  gstreamer-devel >= 1.0.0
21 BuildRequires:  gstreamer-plugins-base-devel >= 1.0.0
22 BuildRequires:  gtk+3-devel >= 3.12.2
23 BuildRequires:  gtk-webkit3-devel >= 1.4.0
24 BuildRequires:  json-glib-devel >= 0.6.16
25 BuildRequires:  libexif-devel >= 1:0.6.16
26 BuildRequires:  libgee-devel >= 0.8.5
27 BuildRequires:  libgphoto2-devel >= 2.4.2
28 BuildRequires:  libraw-devel >= 0.14.7-2
29 BuildRequires:  libsoup-devel >= 2.26.0
30 BuildRequires:  libxml2-devel >= 1:2.6.32
31 BuildRequires:  m4
32 BuildRequires:  pkgconfig
33 BuildRequires:  rest-devel >= 0.7
34 BuildRequires:  rpmbuild(macros) >= 1.311
35 BuildRequires:  sqlite3-devel >= 3.5.9
36 BuildRequires:  udev-glib-devel >= 1:145
37 BuildRequires:  vala >= 1:0.20.1
38 BuildRequires:  vala-gexiv2 >= 0.4.90
39 BuildRequires:  vala-libgee >= 0.8.5
40 Requires(post,postun):  desktop-file-utils
41 Requires(post,postun):  glib2 >= 1:2.26.0
42 Requires(post,postun):  gtk-update-icon-cache
43 Requires(post,postun):  hicolor-icon-theme
44 Requires:       glib2 >= 1:2.32.0
45 Requires:       gtk+3 >= 3.12.2
46 Requires:       gtk-webkit3 >= 1.4.0
47 Requires:       hicolor-icon-theme
48 Requires:       libexif >= 1:0.6.16
49 Requires:       libgphoto2 >= 2.4.2
50 Requires:       libraw >= 0.14.7-2
51 Requires:       libsoup >= 2.26.0
52 Requires:       libxml2 >= 1:2.6.32
53 Requires:       sqlite3 >= 3.5.9
54 Requires:       udev-glib >= 1:145
55 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57 %description
58 Shotwell is a digital photo organizer designed for the GNOME desktop
59 environment. It allows you to import photos from disk or camera,
60 organize them in various ways, view them in full-window or fullscreen
61 mode, and export them to share with others.
62
63 %description -l pl.UTF-8
64 Shotwell to organizator zdjęć cyfrowych, zaprojektowany dla środowiska
65 graficznego GNOME. Pozwala importować zdjęcia z dysku lub aparatu,
66 organizować je na różne sposoby, przeglądać w trybie okienkowym lub
67 pełnoekranowym oraz eksportować, aby podzielić się nimi z innymi.
68
69 %prep
70 %setup -q
71 %patch0 -p1
72 %patch1 -p1
73
74 %build
75 # this is not autoconf generated
76 ./configure \
77         --prefix=%{_prefix} \
78         --lib=%{_lib} \
79         --libexec=%{_libexecdir} \
80         --disable-desktop-update \
81         --disable-icon-update
82
83 %{__make} \
84         CC="%{__cc}" \
85         RPMCFLAGS="%{rpmcflags}"
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 %find_lang shotwell --with-gnome
94
95 %{__rm} $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/gschemas.compiled
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post
101 %update_icon_cache hicolor
102 %update_desktop_database
103 %glib_compile_schemas
104
105 %postun
106 %update_icon_cache hicolor
107 %update_desktop_database_postun
108 %glib_compile_schemas
109
110 %files -f shotwell.lang
111 %defattr(644,root,root,755)
112 %doc AUTHORS COPYING MAINTAINERS NEWS README THANKS
113 %attr(755,root,root) %{_bindir}/shotwell
114 %{_desktopdir}/%{name}-viewer.desktop
115 %{_desktopdir}/%{name}.desktop
116 %attr(755,root,root) %{_libexecdir}/shotwell-settings-migrator
117 %attr(755,root,root) %{_libexecdir}/shotwell-video-thumbnailer
118 %{_datadir}/appdata/shotwell.appdata.xml
119 %{_datadir}/%{name}
120 %{_datadir}/GConf/gsettings/shotwell.convert
121 %{_datadir}/glib-2.0/schemas/org.yorba.shotwell.gschema.xml
122 %{_datadir}/glib-2.0/schemas/org.yorba.shotwell-extras.gschema.xml
123 %dir %{_libdir}/%{name}
124 %dir %{_libdir}/%{name}/plugins
125 %dir %{_libdir}/%{name}/plugins/builtin
126 %{_libdir}/%{name}/plugins/builtin/*.png
127 %{_libdir}/%{name}/plugins/builtin/*.glade
128 %attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/*.so
129 %{_iconsdir}/hicolor/*/apps/shotwell.svg
This page took 0.087162 seconds and 3 git commands to generate.