]> git.pld-linux.org Git - packages/shotwell.git/blame - shotwell.spec
Update to 0.26.1
[packages/shotwell.git] / shotwell.spec
CommitLineData
d657a100
JB
1#
2# Conditional build:
3%bcond_with unity # Ubuntu Unity integration
4#
ef4a4c23 5Summary: Photo manager for GNOME
4124c1b6 6Summary(pl.UTF-8): Zarządca zdjęć dla GNOME
ef4a4c23 7Name: shotwell
62c7ac7a
MB
8Version: 0.26.1
9Release: 1
ef4a4c23
MB
10License: LGPL v2+ and CC-BY-SA
11Group: X11/Applications
62c7ac7a
MB
12Source0: http://ftp.gnome.org/pub/GNOME/sources/shotwell/0.26/%{name}-%{version}.tar.xz
13# Source0-md5: 1e9cb403756f789a78df6f9fa1e972fa
feaaf128 14Patch0: %{name}-link.patch
2cfd3078 15Patch1: %{name}-gitversion.patch
4124c1b6 16URL: https://wiki.gnome.org/Apps/Shotwell
feaaf128 17BuildRequires: appstream-glib-devel
385f8f1c 18BuildRequires: atk-devel
feaaf128
MB
19BuildRequires: autoconf >= 2.69
20BuildRequires: automake >= 1:1.11
62c7ac7a
MB
21BuildRequires: cairo-devel
22BuildRequires: gcr-ui-devel
23BuildRequires: gdk-pixbuf2-devel
feaaf128 24BuildRequires: gettext-tools >= 0.19.7
62c7ac7a
MB
25BuildRequires: gexiv2-devel >= 0.10.4
26BuildRequires: glib2-devel >= 1:2.40.0
4124c1b6 27BuildRequires: gnome-doc-utils
385f8f1c
MB
28BuildRequires: gstreamer-devel >= 1.0.0
29BuildRequires: gstreamer-plugins-base-devel >= 1.0.0
62c7ac7a 30BuildRequires: gtk+3-devel >= 3.14.0
feaaf128 31BuildRequires: gtk-webkit4-devel
cbd0b1ac 32BuildRequires: json-glib-devel >= 0.6.16
4124c1b6 33BuildRequires: libexif-devel >= 1:0.6.16
62c7ac7a 34BuildRequires: libgdata-devel
385f8f1c 35BuildRequires: libgee-devel >= 0.8.5
feaaf128 36BuildRequires: libgphoto2-devel >= 2.5.0
0bc3d124 37BuildRequires: libraw-devel >= 0.14.7-2
ef4a4c23 38BuildRequires: libsoup-devel >= 2.26.0
d657a100
JB
39BuildRequires: libtool >= 2:2.2
40%{?with_unity:BuildRequires: libunity-devel}
ef4a4c23 41BuildRequires: libxml2-devel >= 1:2.6.32
feaaf128 42BuildRequires: pkgconfig >= 1:0.22
57bbc534 43BuildRequires: rest-devel >= 0.7
ef4a4c23
MB
44BuildRequires: rpmbuild(macros) >= 1.311
45BuildRequires: sqlite3-devel >= 3.5.9
4124c1b6 46BuildRequires: udev-glib-devel >= 1:145
d657a100 47BuildRequires: vala >= 2:0.28.0
7eebc5c3 48BuildRequires: vala-gexiv2 >= 0.4.90
385f8f1c 49BuildRequires: vala-libgee >= 0.8.5
feaaf128 50BuildRequires: yelp-tools
ef4a4c23 51Requires(post,postun): desktop-file-utils
d657a100 52Requires(post,postun): glib2 >= 1:2.32.0
a7666439
AF
53Requires(post,postun): gtk-update-icon-cache
54Requires(post,postun): hicolor-icon-theme
62c7ac7a
MB
55Requires: gexiv2 >= 0.10.4
56Requires: glib2 >= 1:2.40.0
57Requires: gtk+3 >= 3.14.0
feaaf128 58Requires: gtk-webkit4
ef4a4c23 59Requires: hicolor-icon-theme
4124c1b6 60Requires: libexif >= 1:0.6.16
feaaf128 61Requires: libgphoto2 >= 2.5.0
4124c1b6
JB
62Requires: libraw >= 0.14.7-2
63Requires: libsoup >= 2.26.0
64Requires: libxml2 >= 1:2.6.32
65Requires: sqlite3 >= 3.5.9
66Requires: udev-glib >= 1:145
ef4a4c23
MB
67BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68
69%description
70Shotwell is a digital photo organizer designed for the GNOME desktop
71environment. It allows you to import photos from disk or camera,
72organize them in various ways, view them in full-window or fullscreen
73mode, and export them to share with others.
74
4124c1b6
JB
75%description -l pl.UTF-8
76Shotwell to organizator zdjęć cyfrowych, zaprojektowany dla środowiska
77graficznego GNOME. Pozwala importować zdjęcia z dysku lub aparatu,
78organizować je na różne sposoby, przeglądać w trybie okienkowym lub
79pełnoekranowym oraz eksportować, aby podzielić się nimi z innymi.
80
ef4a4c23
MB
81%prep
82%setup -q
57bbc534 83%patch0 -p1
2cfd3078
MB
84%patch1 -p1
85
d657a100 86# force rebuild without _GITVERSION
2cfd3078 87%{__rm} src/Resources.c
ef4a4c23
MB
88
89%build
d657a100 90%{__libtoolize}
feaaf128 91%{__aclocal} -I m4
feaaf128 92%{__autoconf}
d657a100 93%{__autoheader}
feaaf128
MB
94%{__automake}
95%configure \
96 --disable-schemas-compile \
d657a100
JB
97 --disable-silent-rules \
98 %{?with_unity:--enable-unity-support}
feaaf128 99%{__make}
ef4a4c23
MB
100
101%install
102rm -rf $RPM_BUILD_ROOT
103
104%{__make} install \
6426964a 105 DESTDIR=$RPM_BUILD_ROOT
16625d9e 106
feaaf128
MB
107%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.{a,la}
108%{__rm} $RPM_BUILD_ROOT%{_libdir}/%{name}/plugins/builtin/*.la
ef4a4c23 109
feaaf128 110%find_lang shotwell --with-gnome
57bbc534 111
ef4a4c23
MB
112%clean
113rm -rf $RPM_BUILD_ROOT
114
115%post
ef4a4c23
MB
116%update_icon_cache hicolor
117%update_desktop_database
3352f896 118%glib_compile_schemas
ef4a4c23 119
ef4a4c23
MB
120%postun
121%update_icon_cache hicolor
122%update_desktop_database_postun
3352f896 123%glib_compile_schemas
ef4a4c23 124
558cb62b 125%files -f shotwell.lang
ef4a4c23 126%defattr(644,root,root,755)
feaaf128 127%doc AUTHORS COPYING NEWS README THANKS
4124c1b6 128%attr(755,root,root) %{_bindir}/shotwell
62c7ac7a 129%attr(755,root,root) %{_libdir}/libshotwell-authenticator.so*
feaaf128 130%attr(755,root,root) %{_libdir}/libshotwell-plugin-common.so*
16625d9e
JK
131%{_desktopdir}/%{name}-viewer.desktop
132%{_desktopdir}/%{name}.desktop
feaaf128
MB
133%dir %{_libdir}/%{name}
134%attr(755,root,root) %{_libdir}/shotwell/shotwell-settings-migrator
135%attr(755,root,root) %{_libdir}/shotwell/shotwell-video-thumbnailer
385f8f1c 136%{_datadir}/appdata/shotwell.appdata.xml
4124c1b6
JB
137%{_datadir}/glib-2.0/schemas/org.yorba.shotwell.gschema.xml
138%{_datadir}/glib-2.0/schemas/org.yorba.shotwell-extras.gschema.xml
16625d9e
JK
139%dir %{_libdir}/%{name}/plugins
140%dir %{_libdir}/%{name}/plugins/builtin
16625d9e 141%attr(755,root,root) %{_libdir}/%{name}/plugins/builtin/*.so
feaaf128
MB
142%{_iconsdir}/hicolor/*x*/apps/shotwell.png
143%{_iconsdir}/hicolor/symbolic/apps/shotwell-symbolic.svg
144%{_mandir}/man1/shotwell.1*
This page took 0.137588 seconds and 4 git commands to generate.