]> git.pld-linux.org Git - packages/shotwell.git/blame - shotwell.spec
- updated to 0.32.1 (libsoup3/gtk-webkit4.1 based now)
[packages/shotwell.git] / shotwell.spec
CommitLineData
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 7Summary: Photo manager for GNOME
4124c1b6 8Summary(pl.UTF-8): Zarządca zdjęć dla GNOME
ef4a4c23 9Name: shotwell
70c4d378 10Version: 0.32.1
0055cd94 11Release: 1
ef4a4c23
MB
12License: LGPL v2+ and CC-BY-SA
13Group: X11/Applications
70c4d378
JB
14Source0: https://download.gnome.org/sources/shotwell/0.32/%{name}-%{version}.tar.xz
15# Source0-md5: 0ae8ff1248a12f81b4c98ff51ee84167
16Patch0: %{name}-unity.patch
4124c1b6 17URL: https://wiki.gnome.org/Apps/Shotwell
62c7ac7a 18BuildRequires: cairo-devel
d804a4e8
JB
19BuildRequires: gcr-devel >= 3
20BuildRequires: gcr-ui-devel >= 3
21BuildRequires: gdk-pixbuf2-devel >= 2.0
feaaf128 22BuildRequires: gettext-tools >= 0.19.7
70c4d378 23BuildRequires: gexiv2-devel >= 0.12.3
62c7ac7a 24BuildRequires: glib2-devel >= 1:2.40.0
70c4d378
JB
25BuildRequires: gstreamer-devel >= 1.20
26BuildRequires: gstreamer-plugins-base-devel >= 1.20
d804a4e8 27BuildRequires: gtk+3-devel >= 3.22
70c4d378 28BuildRequires: gtk-webkit4.1-devel >= 2.26
d804a4e8 29BuildRequires: json-glib-devel >= 1.0
4124c1b6 30BuildRequires: libexif-devel >= 1:0.6.16
385f8f1c 31BuildRequires: libgee-devel >= 0.8.5
feaaf128 32BuildRequires: libgphoto2-devel >= 2.5.0
0055cd94
JB
33BuildRequires: libportal-devel >= 0.5
34BuildRequires: libportal-gtk3-devel >= 0.5
0bc3d124 35BuildRequires: libraw-devel >= 0.14.7-2
70c4d378
JB
36BuildRequires: libsecret-devel
37BuildRequires: libsoup3-devel >= 3.0
d657a100 38%{?with_unity:BuildRequires: libunity-devel}
70c4d378 39BuildRequires: libwebp-devel
ef4a4c23 40BuildRequires: libxml2-devel >= 1:2.6.32
70c4d378 41BuildRequires: meson >= 0.59.0
d804a4e8 42BuildRequires: ninja >= 1.5
a2df15b9 43%{?with_opencv:BuildRequires: opencv-devel >= 1:3.4.0}
feaaf128 44BuildRequires: pkgconfig >= 1:0.22
d804a4e8 45BuildRequires: rpmbuild(macros) >= 1.736
ef4a4c23 46BuildRequires: sqlite3-devel >= 3.5.9
d3136c0c 47BuildRequires: tar >= 1:1.22
4124c1b6 48BuildRequires: udev-glib-devel >= 1:145
d657a100 49BuildRequires: vala >= 2:0.28.0
d804a4e8 50BuildRequires: vala-gcr >= 3
0055cd94 51BuildRequires: vala-gcr-ui >= 3
70c4d378 52BuildRequires: vala-gexiv2 >= 0.12.3
385f8f1c 53BuildRequires: vala-libgee >= 0.8.5
0055cd94
JB
54BuildRequires: vala-libportal >= 0.5
55BuildRequires: vala-libportal-gtk3 >= 0.5
70c4d378 56%{?with_unity:BuildRequires: vala-libunity}
d3136c0c 57BuildRequires: xz
feaaf128 58BuildRequires: yelp-tools
ef4a4c23 59Requires(post,postun): desktop-file-utils
d804a4e8 60Requires(post,postun): glib2 >= 1:2.40.0
a7666439
AF
61Requires(post,postun): gtk-update-icon-cache
62Requires(post,postun): hicolor-icon-theme
70c4d378 63Requires: gexiv2 >= 0.12.3
62c7ac7a 64Requires: glib2 >= 1:2.40.0
d804a4e8 65Requires: gtk+3 >= 3.22
70c4d378 66Requires: gtk-webkit4.1 >= 2.26
ef4a4c23 67Requires: hicolor-icon-theme
d804a4e8 68Requires: json-glib >= 1.0
4124c1b6 69Requires: libexif >= 1:0.6.16
d804a4e8 70Requires: libgee >= 0.8.5
feaaf128 71Requires: libgphoto2 >= 2.5.0
4124c1b6 72Requires: libraw >= 0.14.7-2
70c4d378 73Requires: libsoup3 >= 3.0
4124c1b6 74Requires: libxml2 >= 1:2.6.32
a2df15b9 75%{?with_opencv:Requires: opencv >= 1:3.4.0}
4124c1b6
JB
76Requires: sqlite3 >= 3.5.9
77Requires: udev-glib >= 1:145
ef4a4c23
MB
78BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
79
80%description
81Shotwell is a digital photo organizer designed for the GNOME desktop
82environment. It allows you to import photos from disk or camera,
83organize them in various ways, view them in full-window or fullscreen
84mode, and export them to share with others.
85
4124c1b6
JB
86%description -l pl.UTF-8
87Shotwell to organizator zdjęć cyfrowych, zaprojektowany dla środowiska
88graficznego GNOME. Pozwala importować zdjęcia z dysku lub aparatu,
89organizować je na różne sposoby, przeglądać w trybie okienkowym lub
90peł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
106rm -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
116rm -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*
This page took 0.04928 seconds and 4 git commands to generate.