]>
Commit | Line | Data |
---|---|---|
d657a100 JB |
1 | # |
2 | # Conditional build: | |
d804a4e8 | 3 | %bcond_with apport # Ubuntu apport hook |
b93a0f75 | 4 | %bcond_without opencv # faces detection using OpenCV |
d657a100 JB |
5 | %bcond_with unity # Ubuntu Unity integration |
6 | # | |
ef4a4c23 | 7 | Summary: Photo manager for GNOME |
4124c1b6 | 8 | Summary(pl.UTF-8): Zarządca zdjęć dla GNOME |
ef4a4c23 | 9 | Name: shotwell |
2982408c JB |
10 | Version: 0.32.2 |
11 | Release: 1 | |
ef4a4c23 MB |
12 | License: LGPL v2+ and CC-BY-SA |
13 | Group: X11/Applications | |
70c4d378 | 14 | Source0: https://download.gnome.org/sources/shotwell/0.32/%{name}-%{version}.tar.xz |
2982408c | 15 | # Source0-md5: cd5add9baad09e162c1bfda8f420fa0b |
70c4d378 | 16 | Patch0: %{name}-unity.patch |
4124c1b6 | 17 | URL: https://wiki.gnome.org/Apps/Shotwell |
62c7ac7a | 18 | BuildRequires: cairo-devel |
d804a4e8 JB |
19 | BuildRequires: gcr-devel >= 3 |
20 | BuildRequires: gcr-ui-devel >= 3 | |
21 | BuildRequires: gdk-pixbuf2-devel >= 2.0 | |
feaaf128 | 22 | BuildRequires: gettext-tools >= 0.19.7 |
70c4d378 | 23 | BuildRequires: gexiv2-devel >= 0.12.3 |
62c7ac7a | 24 | BuildRequires: glib2-devel >= 1:2.40.0 |
70c4d378 JB |
25 | BuildRequires: gstreamer-devel >= 1.20 |
26 | BuildRequires: gstreamer-plugins-base-devel >= 1.20 | |
d804a4e8 | 27 | BuildRequires: gtk+3-devel >= 3.22 |
70c4d378 | 28 | BuildRequires: gtk-webkit4.1-devel >= 2.26 |
d804a4e8 | 29 | BuildRequires: json-glib-devel >= 1.0 |
4124c1b6 | 30 | BuildRequires: libexif-devel >= 1:0.6.16 |
385f8f1c | 31 | BuildRequires: libgee-devel >= 0.8.5 |
feaaf128 | 32 | BuildRequires: libgphoto2-devel >= 2.5.0 |
0055cd94 JB |
33 | BuildRequires: libportal-devel >= 0.5 |
34 | BuildRequires: libportal-gtk3-devel >= 0.5 | |
0bc3d124 | 35 | BuildRequires: libraw-devel >= 0.14.7-2 |
70c4d378 JB |
36 | BuildRequires: libsecret-devel |
37 | BuildRequires: libsoup3-devel >= 3.0 | |
d657a100 | 38 | %{?with_unity:BuildRequires: libunity-devel} |
70c4d378 | 39 | BuildRequires: libwebp-devel |
ef4a4c23 | 40 | BuildRequires: libxml2-devel >= 1:2.6.32 |
70c4d378 | 41 | BuildRequires: meson >= 0.59.0 |
d804a4e8 | 42 | BuildRequires: ninja >= 1.5 |
a2df15b9 | 43 | %{?with_opencv:BuildRequires: opencv-devel >= 1:3.4.0} |
feaaf128 | 44 | BuildRequires: pkgconfig >= 1:0.22 |
d804a4e8 | 45 | BuildRequires: rpmbuild(macros) >= 1.736 |
ef4a4c23 | 46 | BuildRequires: sqlite3-devel >= 3.5.9 |
d3136c0c | 47 | BuildRequires: tar >= 1:1.22 |
4124c1b6 | 48 | BuildRequires: udev-glib-devel >= 1:145 |
d657a100 | 49 | BuildRequires: vala >= 2:0.28.0 |
d804a4e8 | 50 | BuildRequires: vala-gcr >= 3 |
0055cd94 | 51 | BuildRequires: vala-gcr-ui >= 3 |
70c4d378 | 52 | BuildRequires: vala-gexiv2 >= 0.12.3 |
385f8f1c | 53 | BuildRequires: vala-libgee >= 0.8.5 |
0055cd94 JB |
54 | BuildRequires: vala-libportal >= 0.5 |
55 | BuildRequires: vala-libportal-gtk3 >= 0.5 | |
5ac39848 | 56 | BuildRequires: vala-libsecret |
70c4d378 | 57 | %{?with_unity:BuildRequires: vala-libunity} |
d3136c0c | 58 | BuildRequires: xz |
feaaf128 | 59 | BuildRequires: yelp-tools |
ef4a4c23 | 60 | Requires(post,postun): desktop-file-utils |
d804a4e8 | 61 | Requires(post,postun): glib2 >= 1:2.40.0 |
a7666439 AF |
62 | Requires(post,postun): gtk-update-icon-cache |
63 | Requires(post,postun): hicolor-icon-theme | |
70c4d378 | 64 | Requires: gexiv2 >= 0.12.3 |
62c7ac7a | 65 | Requires: glib2 >= 1:2.40.0 |
d804a4e8 | 66 | Requires: gtk+3 >= 3.22 |
70c4d378 | 67 | Requires: gtk-webkit4.1 >= 2.26 |
ef4a4c23 | 68 | Requires: hicolor-icon-theme |
d804a4e8 | 69 | Requires: json-glib >= 1.0 |
4124c1b6 | 70 | Requires: libexif >= 1:0.6.16 |
d804a4e8 | 71 | Requires: libgee >= 0.8.5 |
feaaf128 | 72 | Requires: libgphoto2 >= 2.5.0 |
4124c1b6 | 73 | Requires: libraw >= 0.14.7-2 |
70c4d378 | 74 | Requires: libsoup3 >= 3.0 |
4124c1b6 | 75 | Requires: libxml2 >= 1:2.6.32 |
a2df15b9 | 76 | %{?with_opencv:Requires: opencv >= 1:3.4.0} |
4124c1b6 JB |
77 | Requires: sqlite3 >= 3.5.9 |
78 | Requires: udev-glib >= 1:145 | |
ef4a4c23 MB |
79 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80 | ||
81 | %description | |
82 | Shotwell is a digital photo organizer designed for the GNOME desktop | |
83 | environment. It allows you to import photos from disk or camera, | |
84 | organize them in various ways, view them in full-window or fullscreen | |
85 | mode, and export them to share with others. | |
86 | ||
4124c1b6 JB |
87 | %description -l pl.UTF-8 |
88 | Shotwell to organizator zdjęć cyfrowych, zaprojektowany dla środowiska | |
89 | graficznego GNOME. Pozwala importować zdjęcia z dysku lub aparatu, | |
90 | organizować je na różne sposoby, przeglądać w trybie okienkowym lub | |
91 | pełnoekranowym oraz eksportować, aby podzielić się nimi z innymi. | |
92 | ||
ef4a4c23 MB |
93 | %prep |
94 | %setup -q | |
722138ee | 95 | %patch0 -p1 |
ef4a4c23 MB |
96 | |
97 | %build | |
d804a4e8 JB |
98 | %meson build \ |
99 | --default-library=shared \ | |
70c4d378 JB |
100 | %{?with_opencv:-Dface_detection=true} \ |
101 | %{!?with_apport:-Dinstall_apport_hook=false} \ | |
102 | %{?with_unity:-Dunity_support=true} | |
d804a4e8 JB |
103 | |
104 | %ninja_build -C build | |
ef4a4c23 MB |
105 | |
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
d804a4e8 | 109 | %ninja_install -C build |
16625d9e | 110 | |
d804a4e8 JB |
111 | # API not exported, so no need for development symlinks |
112 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libshotwell-*.so | |
ef4a4c23 | 113 | |
ebc1196e JB |
114 | # not supported by glibc (as of 2.37) |
115 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
116 | ||
feaaf128 | 117 | %find_lang shotwell --with-gnome |
57bbc534 | 118 | |
ef4a4c23 MB |
119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post | |
d804a4e8 | 123 | /sbin/ldconfig |
ef4a4c23 MB |
124 | %update_icon_cache hicolor |
125 | %update_desktop_database | |
3352f896 | 126 | %glib_compile_schemas |
ef4a4c23 | 127 | |
ef4a4c23 | 128 | %postun |
d804a4e8 | 129 | /sbin/ldconfig |
ef4a4c23 MB |
130 | %update_icon_cache hicolor |
131 | %update_desktop_database_postun | |
3352f896 | 132 | %glib_compile_schemas |
ef4a4c23 | 133 | |
558cb62b | 134 | %files -f shotwell.lang |
ef4a4c23 | 135 | %defattr(644,root,root,755) |
d804a4e8 | 136 | %doc AUTHORS COPYING MAINTAINERS NEWS README.md THANKS |
4124c1b6 | 137 | %attr(755,root,root) %{_bindir}/shotwell |
d804a4e8 JB |
138 | %attr(755,root,root) %{_libdir}/libshotwell-authenticator.so.*.*.* |
139 | %attr(755,root,root) %ghost %{_libdir}/libshotwell-authenticator.so.0 | |
140 | %attr(755,root,root) %{_libdir}/libshotwell-plugin-common.so.*.*.* | |
141 | %attr(755,root,root) %ghost %{_libdir}/libshotwell-plugin-common.so.0 | |
142 | %attr(755,root,root) %{_libdir}/libshotwell-plugin-dev-1.0.so.*.*.* | |
143 | %attr(755,root,root) %ghost %{_libdir}/libshotwell-plugin-dev-1.0.so.0 | |
144 | %if "%{_libexecdir}" != "%{_libdir}" | |
145 | %dir %{_libexecdir}/%{name} | |
146 | %endif | |
147 | %if %{with opencv} | |
148 | %attr(755,root,root) %{_libexecdir}/%{name}/shotwell-facedetect | |
149 | %endif | |
150 | %attr(755,root,root) %{_libexecdir}/%{name}/shotwell-settings-migrator | |
151 | %attr(755,root,root) %{_libexecdir}/%{name}/shotwell-video-thumbnailer | |
feaaf128 | 152 | %dir %{_libdir}/%{name} |
16625d9e JK |
153 | %dir %{_libdir}/%{name}/plugins |
154 | %dir %{_libdir}/%{name}/plugins/builtin | |
d804a4e8 | 155 | %attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/libshotwell-publishing.so |
d804a4e8 JB |
156 | %attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/libshotwell-transitions.so |
157 | %if %{with opencv} | |
158 | %dir %{_datadir}/%{name} | |
5ac39848 JB |
159 | %{_datadir}/%{name}/facedetect |
160 | %{_datadir}/dbus-1/services/org.gnome.Shotwell.Faces1.service | |
d804a4e8 JB |
161 | %endif |
162 | %if %{with apport} | |
163 | %{_datadir}/apport/package-hooks/shotwell.py | |
164 | %endif | |
70c4d378 JB |
165 | %{_datadir}/glib-2.0/schemas/org.gnome.shotwell.gschema.xml |
166 | %{_datadir}/glib-2.0/schemas/org.gnome.shotwell-extras.gschema.xml | |
d804a4e8 JB |
167 | %{_datadir}/glib-2.0/schemas/org.yorba.shotwell.gschema.xml |
168 | %{_datadir}/glib-2.0/schemas/org.yorba.shotwell-extras.gschema.xml | |
70c4d378 JB |
169 | %{_datadir}/metainfo/org.gnome.Shotwell.appdata.xml |
170 | %{_desktopdir}/org.gnome.Shotwell.desktop | |
171 | %{_desktopdir}/org.gnome.Shotwell-Profile-Browser.desktop | |
172 | %{_desktopdir}/org.gnome.Shotwell-Viewer.desktop | |
173 | %{_iconsdir}/hicolor/*x*/apps/org.gnome.Shotwell.png | |
174 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Shotwell-symbolic.svg | |
feaaf128 | 175 | %{_mandir}/man1/shotwell.1* |