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