]> git.pld-linux.org Git - packages/shotwell.git/blame - shotwell.spec
- updated to 0.32.2
[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
2982408c
JB
10Version: 0.32.2
11Release: 1
ef4a4c23
MB
12License: LGPL v2+ and CC-BY-SA
13Group: X11/Applications
70c4d378 14Source0: https://download.gnome.org/sources/shotwell/0.32/%{name}-%{version}.tar.xz
2982408c 15# Source0-md5: cd5add9baad09e162c1bfda8f420fa0b
70c4d378 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
5ac39848 56BuildRequires: vala-libsecret
70c4d378 57%{?with_unity:BuildRequires: vala-libunity}
d3136c0c 58BuildRequires: xz
feaaf128 59BuildRequires: yelp-tools
ef4a4c23 60Requires(post,postun): desktop-file-utils
d804a4e8 61Requires(post,postun): glib2 >= 1:2.40.0
a7666439
AF
62Requires(post,postun): gtk-update-icon-cache
63Requires(post,postun): hicolor-icon-theme
70c4d378 64Requires: gexiv2 >= 0.12.3
62c7ac7a 65Requires: glib2 >= 1:2.40.0
d804a4e8 66Requires: gtk+3 >= 3.22
70c4d378 67Requires: gtk-webkit4.1 >= 2.26
ef4a4c23 68Requires: hicolor-icon-theme
d804a4e8 69Requires: json-glib >= 1.0
4124c1b6 70Requires: libexif >= 1:0.6.16
d804a4e8 71Requires: libgee >= 0.8.5
feaaf128 72Requires: libgphoto2 >= 2.5.0
4124c1b6 73Requires: libraw >= 0.14.7-2
70c4d378 74Requires: libsoup3 >= 3.0
4124c1b6 75Requires: libxml2 >= 1:2.6.32
a2df15b9 76%{?with_opencv:Requires: opencv >= 1:3.4.0}
4124c1b6
JB
77Requires: sqlite3 >= 3.5.9
78Requires: udev-glib >= 1:145
ef4a4c23
MB
79BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
80
81%description
82Shotwell is a digital photo organizer designed for the GNOME desktop
83environment. It allows you to import photos from disk or camera,
84organize them in various ways, view them in full-window or fullscreen
85mode, and export them to share with others.
86
4124c1b6
JB
87%description -l pl.UTF-8
88Shotwell to organizator zdjęć cyfrowych, zaprojektowany dla środowiska
89graficznego GNOME. Pozwala importować zdjęcia z dysku lub aparatu,
90organizować je na różne sposoby, przeglądać w trybie okienkowym lub
91peł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
107rm -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
120rm -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*
This page took 0.120527 seconds and 4 git commands to generate.