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