]> git.pld-linux.org Git - packages/shotwell.git/blame - shotwell.spec
- updated to 0.30.11
[packages/shotwell.git] / shotwell.spec
CommitLineData
d657a100
JB
1#
2# Conditional build:
d804a4e8
JB
3%bcond_with apport # Ubuntu apport hook
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
d4ee6bbb 10Version: 0.30.11
62c7ac7a 11Release: 1
ef4a4c23
MB
12License: LGPL v2+ and CC-BY-SA
13Group: X11/Applications
d4ee6bbb
JB
14Source0: https://download.gnome.org/sources/shotwell/0.30/%{name}-%{version}.tar.xz
15# Source0-md5: d5e19ef43fe6e6c40ab6e0147524fb94
4124c1b6 16URL: https://wiki.gnome.org/Apps/Shotwell
62c7ac7a 17BuildRequires: cairo-devel
d804a4e8
JB
18BuildRequires: gcr-devel >= 3
19BuildRequires: gcr-ui-devel >= 3
20BuildRequires: gdk-pixbuf2-devel >= 2.0
feaaf128 21BuildRequires: gettext-tools >= 0.19.7
d804a4e8 22BuildRequires: gexiv2-devel >= 0.11
62c7ac7a 23BuildRequires: glib2-devel >= 1:2.40.0
385f8f1c
MB
24BuildRequires: gstreamer-devel >= 1.0.0
25BuildRequires: gstreamer-plugins-base-devel >= 1.0.0
d804a4e8
JB
26BuildRequires: gtk+3-devel >= 3.22
27BuildRequires: gtk-webkit4-devel >= 2.4
28BuildRequires: json-glib-devel >= 1.0
4124c1b6 29BuildRequires: libexif-devel >= 1:0.6.16
62c7ac7a 30BuildRequires: libgdata-devel
385f8f1c 31BuildRequires: libgee-devel >= 0.8.5
feaaf128 32BuildRequires: libgphoto2-devel >= 2.5.0
0bc3d124 33BuildRequires: libraw-devel >= 0.14.7-2
ef4a4c23 34BuildRequires: libsoup-devel >= 2.26.0
d657a100 35%{?with_unity:BuildRequires: libunity-devel}
ef4a4c23 36BuildRequires: libxml2-devel >= 1:2.6.32
d804a4e8
JB
37BuildRequires: meson >= 0.43.0
38BuildRequires: ninja >= 1.5
39%{?with_opencv:BuildRequires: opencv-devel >= 1:2.3.0}
feaaf128 40BuildRequires: pkgconfig >= 1:0.22
d804a4e8 41BuildRequires: rpmbuild(macros) >= 1.736
ef4a4c23 42BuildRequires: sqlite3-devel >= 3.5.9
d3136c0c 43BuildRequires: tar >= 1:1.22
4124c1b6 44BuildRequires: udev-glib-devel >= 1:145
d657a100 45BuildRequires: vala >= 2:0.28.0
d804a4e8
JB
46BuildRequires: vala-gcr >= 3
47BuildRequires: vala-gexiv2 >= 0.11
385f8f1c 48BuildRequires: vala-libgee >= 0.8.5
d3136c0c 49BuildRequires: xz
feaaf128 50BuildRequires: yelp-tools
ef4a4c23 51Requires(post,postun): desktop-file-utils
d804a4e8 52Requires(post,postun): glib2 >= 1:2.40.0
a7666439
AF
53Requires(post,postun): gtk-update-icon-cache
54Requires(post,postun): hicolor-icon-theme
d804a4e8 55Requires: gexiv2 >= 0.11
62c7ac7a 56Requires: glib2 >= 1:2.40.0
d804a4e8
JB
57Requires: gtk+3 >= 3.22
58Requires: gtk-webkit4 >= 2.4
ef4a4c23 59Requires: hicolor-icon-theme
d804a4e8 60Requires: json-glib >= 1.0
4124c1b6 61Requires: libexif >= 1:0.6.16
d804a4e8 62Requires: libgee >= 0.8.5
feaaf128 63Requires: libgphoto2 >= 2.5.0
4124c1b6
JB
64Requires: libraw >= 0.14.7-2
65Requires: libsoup >= 2.26.0
66Requires: libxml2 >= 1:2.6.32
d804a4e8 67%{?with_opencv:Requires: opencv >= 1:2.3.0}
4124c1b6
JB
68Requires: sqlite3 >= 3.5.9
69Requires: udev-glib >= 1:145
ef4a4c23
MB
70BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
71
72%description
73Shotwell is a digital photo organizer designed for the GNOME desktop
74environment. It allows you to import photos from disk or camera,
75organize them in various ways, view them in full-window or fullscreen
76mode, and export them to share with others.
77
4124c1b6
JB
78%description -l pl.UTF-8
79Shotwell to organizator zdjęć cyfrowych, zaprojektowany dla środowiska
80graficznego GNOME. Pozwala importować zdjęcia z dysku lub aparatu,
81organizować je na różne sposoby, przeglądać w trybie okienkowym lub
82pełnoekranowym oraz eksportować, aby podzielić się nimi z innymi.
83
ef4a4c23
MB
84%prep
85%setup -q
86
87%build
d804a4e8
JB
88%meson build \
89 --default-library=shared \
90 %{?with_opencv:-Dface-detection=true} \
91 %{!?with_apport:-Dinstall-apport-hook=false} \
92 %{?with_unity:-Dunity-support=true}
93
94%ninja_build -C build
ef4a4c23
MB
95
96%install
97rm -rf $RPM_BUILD_ROOT
98
d804a4e8 99%ninja_install -C build
16625d9e 100
d804a4e8
JB
101# API not exported, so no need for development symlinks
102%{__rm} $RPM_BUILD_ROOT%{_libdir}/libshotwell-*.so
ef4a4c23 103
feaaf128 104%find_lang shotwell --with-gnome
57bbc534 105
ef4a4c23
MB
106%clean
107rm -rf $RPM_BUILD_ROOT
108
109%post
d804a4e8 110/sbin/ldconfig
ef4a4c23
MB
111%update_icon_cache hicolor
112%update_desktop_database
3352f896 113%glib_compile_schemas
ef4a4c23 114
ef4a4c23 115%postun
d804a4e8 116/sbin/ldconfig
ef4a4c23
MB
117%update_icon_cache hicolor
118%update_desktop_database_postun
3352f896 119%glib_compile_schemas
ef4a4c23 120
558cb62b 121%files -f shotwell.lang
ef4a4c23 122%defattr(644,root,root,755)
d804a4e8 123%doc AUTHORS COPYING MAINTAINERS NEWS README.md THANKS
4124c1b6 124%attr(755,root,root) %{_bindir}/shotwell
d804a4e8
JB
125%attr(755,root,root) %{_libdir}/libshotwell-authenticator.so.*.*.*
126%attr(755,root,root) %ghost %{_libdir}/libshotwell-authenticator.so.0
127%attr(755,root,root) %{_libdir}/libshotwell-plugin-common.so.*.*.*
128%attr(755,root,root) %ghost %{_libdir}/libshotwell-plugin-common.so.0
129%attr(755,root,root) %{_libdir}/libshotwell-plugin-dev-1.0.so.*.*.*
130%attr(755,root,root) %ghost %{_libdir}/libshotwell-plugin-dev-1.0.so.0
131%if "%{_libexecdir}" != "%{_libdir}"
132%dir %{_libexecdir}/%{name}
133%endif
134%if %{with opencv}
135%attr(755,root,root) %{_libexecdir}/%{name}/shotwell-facedetect
136%endif
137%attr(755,root,root) %{_libexecdir}/%{name}/shotwell-settings-migrator
138%attr(755,root,root) %{_libexecdir}/%{name}/shotwell-video-thumbnailer
feaaf128 139%dir %{_libdir}/%{name}
16625d9e
JK
140%dir %{_libdir}/%{name}/plugins
141%dir %{_libdir}/%{name}/plugins/builtin
d804a4e8
JB
142%attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/libshotwell-publishing.so
143%attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/libshotwell-publishing-extras.so
144%attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/libshotwell-transitions.so
145%if %{with opencv}
146%dir %{_datadir}/%{name}
147%{_datadir}/%{name}/facedetect-haarcascade.xml
148%endif
149%if %{with apport}
150%{_datadir}/apport/package-hooks/shotwell.py
151%endif
152%{_datadir}/glib-2.0/schemas/org.yorba.shotwell.gschema.xml
153%{_datadir}/glib-2.0/schemas/org.yorba.shotwell-extras.gschema.xml
154%{_datadir}/metainfo/shotwell.appdata.xml
155%{_desktopdir}/shotwell.desktop
156%{_desktopdir}/shotwell-viewer.desktop
feaaf128
MB
157%{_iconsdir}/hicolor/*x*/apps/shotwell.png
158%{_iconsdir}/hicolor/symbolic/apps/shotwell-symbolic.svg
159%{_mandir}/man1/shotwell.1*
This page took 0.073682 seconds and 4 git commands to generate.