]>
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 |
70c4d378 | 10 | Version: 0.32.1 |
0055cd94 | 11 | Release: 1 |
ef4a4c23 MB |
12 | License: LGPL v2+ and CC-BY-SA |
13 | Group: X11/Applications | |
70c4d378 JB |
14 | Source0: https://download.gnome.org/sources/shotwell/0.32/%{name}-%{version}.tar.xz |
15 | # Source0-md5: 0ae8ff1248a12f81b4c98ff51ee84167 | |
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 | |
70c4d378 | 56 | %{?with_unity:BuildRequires: vala-libunity} |
d3136c0c | 57 | BuildRequires: xz |
feaaf128 | 58 | BuildRequires: yelp-tools |
ef4a4c23 | 59 | Requires(post,postun): desktop-file-utils |
d804a4e8 | 60 | Requires(post,postun): glib2 >= 1:2.40.0 |
a7666439 AF |
61 | Requires(post,postun): gtk-update-icon-cache |
62 | Requires(post,postun): hicolor-icon-theme | |
70c4d378 | 63 | Requires: gexiv2 >= 0.12.3 |
62c7ac7a | 64 | Requires: glib2 >= 1:2.40.0 |
d804a4e8 | 65 | Requires: gtk+3 >= 3.22 |
70c4d378 | 66 | Requires: gtk-webkit4.1 >= 2.26 |
ef4a4c23 | 67 | Requires: hicolor-icon-theme |
d804a4e8 | 68 | Requires: json-glib >= 1.0 |
4124c1b6 | 69 | Requires: libexif >= 1:0.6.16 |
d804a4e8 | 70 | Requires: libgee >= 0.8.5 |
feaaf128 | 71 | Requires: libgphoto2 >= 2.5.0 |
4124c1b6 | 72 | Requires: libraw >= 0.14.7-2 |
70c4d378 | 73 | Requires: libsoup3 >= 3.0 |
4124c1b6 | 74 | Requires: libxml2 >= 1:2.6.32 |
a2df15b9 | 75 | %{?with_opencv:Requires: opencv >= 1:3.4.0} |
4124c1b6 JB |
76 | Requires: sqlite3 >= 3.5.9 |
77 | Requires: udev-glib >= 1:145 | |
ef4a4c23 MB |
78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
79 | ||
80 | %description | |
81 | Shotwell is a digital photo organizer designed for the GNOME desktop | |
82 | environment. It allows you to import photos from disk or camera, | |
83 | organize them in various ways, view them in full-window or fullscreen | |
84 | mode, and export them to share with others. | |
85 | ||
4124c1b6 JB |
86 | %description -l pl.UTF-8 |
87 | Shotwell to organizator zdjęć cyfrowych, zaprojektowany dla środowiska | |
88 | graficznego GNOME. Pozwala importować zdjęcia z dysku lub aparatu, | |
89 | organizować je na różne sposoby, przeglądać w trybie okienkowym lub | |
90 | pełnoekranowym oraz eksportować, aby podzielić się nimi z innymi. | |
91 | ||
ef4a4c23 MB |
92 | %prep |
93 | %setup -q | |
722138ee | 94 | %patch0 -p1 |
ef4a4c23 MB |
95 | |
96 | %build | |
d804a4e8 JB |
97 | %meson build \ |
98 | --default-library=shared \ | |
70c4d378 JB |
99 | %{?with_opencv:-Dface_detection=true} \ |
100 | %{!?with_apport:-Dinstall_apport_hook=false} \ | |
101 | %{?with_unity:-Dunity_support=true} | |
d804a4e8 JB |
102 | |
103 | %ninja_build -C build | |
ef4a4c23 MB |
104 | |
105 | %install | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
d804a4e8 | 108 | %ninja_install -C build |
16625d9e | 109 | |
d804a4e8 JB |
110 | # API not exported, so no need for development symlinks |
111 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libshotwell-*.so | |
ef4a4c23 | 112 | |
feaaf128 | 113 | %find_lang shotwell --with-gnome |
57bbc534 | 114 | |
ef4a4c23 MB |
115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post | |
d804a4e8 | 119 | /sbin/ldconfig |
ef4a4c23 MB |
120 | %update_icon_cache hicolor |
121 | %update_desktop_database | |
3352f896 | 122 | %glib_compile_schemas |
ef4a4c23 | 123 | |
ef4a4c23 | 124 | %postun |
d804a4e8 | 125 | /sbin/ldconfig |
ef4a4c23 MB |
126 | %update_icon_cache hicolor |
127 | %update_desktop_database_postun | |
3352f896 | 128 | %glib_compile_schemas |
ef4a4c23 | 129 | |
558cb62b | 130 | %files -f shotwell.lang |
ef4a4c23 | 131 | %defattr(644,root,root,755) |
d804a4e8 | 132 | %doc AUTHORS COPYING MAINTAINERS NEWS README.md THANKS |
4124c1b6 | 133 | %attr(755,root,root) %{_bindir}/shotwell |
d804a4e8 JB |
134 | %attr(755,root,root) %{_libdir}/libshotwell-authenticator.so.*.*.* |
135 | %attr(755,root,root) %ghost %{_libdir}/libshotwell-authenticator.so.0 | |
136 | %attr(755,root,root) %{_libdir}/libshotwell-plugin-common.so.*.*.* | |
137 | %attr(755,root,root) %ghost %{_libdir}/libshotwell-plugin-common.so.0 | |
138 | %attr(755,root,root) %{_libdir}/libshotwell-plugin-dev-1.0.so.*.*.* | |
139 | %attr(755,root,root) %ghost %{_libdir}/libshotwell-plugin-dev-1.0.so.0 | |
140 | %if "%{_libexecdir}" != "%{_libdir}" | |
141 | %dir %{_libexecdir}/%{name} | |
142 | %endif | |
143 | %if %{with opencv} | |
144 | %attr(755,root,root) %{_libexecdir}/%{name}/shotwell-facedetect | |
145 | %endif | |
146 | %attr(755,root,root) %{_libexecdir}/%{name}/shotwell-settings-migrator | |
147 | %attr(755,root,root) %{_libexecdir}/%{name}/shotwell-video-thumbnailer | |
feaaf128 | 148 | %dir %{_libdir}/%{name} |
16625d9e JK |
149 | %dir %{_libdir}/%{name}/plugins |
150 | %dir %{_libdir}/%{name}/plugins/builtin | |
d804a4e8 | 151 | %attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/libshotwell-publishing.so |
d804a4e8 JB |
152 | %attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/libshotwell-transitions.so |
153 | %if %{with opencv} | |
154 | %dir %{_datadir}/%{name} | |
155 | %{_datadir}/%{name}/facedetect-haarcascade.xml | |
156 | %endif | |
157 | %if %{with apport} | |
158 | %{_datadir}/apport/package-hooks/shotwell.py | |
159 | %endif | |
70c4d378 JB |
160 | %{_datadir}/glib-2.0/schemas/org.gnome.shotwell.gschema.xml |
161 | %{_datadir}/glib-2.0/schemas/org.gnome.shotwell-extras.gschema.xml | |
d804a4e8 JB |
162 | %{_datadir}/glib-2.0/schemas/org.yorba.shotwell.gschema.xml |
163 | %{_datadir}/glib-2.0/schemas/org.yorba.shotwell-extras.gschema.xml | |
70c4d378 JB |
164 | %{_datadir}/metainfo/org.gnome.Shotwell.appdata.xml |
165 | %{_desktopdir}/org.gnome.Shotwell.desktop | |
166 | %{_desktopdir}/org.gnome.Shotwell-Profile-Browser.desktop | |
167 | %{_desktopdir}/org.gnome.Shotwell-Viewer.desktop | |
168 | %{_iconsdir}/hicolor/*x*/apps/org.gnome.Shotwell.png | |
169 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.Shotwell-symbolic.svg | |
feaaf128 | 170 | %{_mandir}/man1/shotwell.1* |