]>
Commit | Line | Data |
---|---|---|
85b65f0b MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable API documentation | |
9c5f0b63 | 4 | |
cd132c4c | 5 | Summary: The Eye of GNOME image viewer |
5f920e55 ER |
6 | Summary(pl.UTF-8): Oko GNOME - przeglądarka obrazków |
7 | Summary(pt_BR.UTF-8): Visualizador de imagem Eye of GNOME | |
cd132c4c | 8 | Name: eog |
75295f42 | 9 | Version: 3.32.2 |
5f0d1c28 | 10 | Release: 1 |
aa25ce61 | 11 | License: GPL v2+ |
ece649ea | 12 | Group: X11/Applications/Graphics |
75295f42 JB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/eog/3.32/%{name}-%{version}.tar.xz |
14 | # Source0-md5: c1daf654c4caffd75434f888339dd00d | |
0668f633 | 15 | Patch0: %{name}-gtk-doc.patch |
a617f262 | 16 | URL: http://www.gnome.org/projects/eog/ |
5d861441 | 17 | BuildRequires: docbook-dtd412-xml |
aa25ce61 | 18 | BuildRequires: exempi-devel >= 1.99.5 |
1b32f299 MB |
19 | BuildRequires: gdk-pixbuf2-devel >= 2.36.5 |
20 | BuildRequires: gettext-tools >= 0.19.7 | |
0668f633 | 21 | BuildRequires: glib2-devel >= 1:2.54.0 |
5e4cb00f | 22 | BuildRequires: gnome-desktop-devel >= 3.2.0 |
d1619112 | 23 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
5e4cb00f | 24 | BuildRequires: gsettings-desktop-schemas-devel >= 3.4.0 |
df2b2051 | 25 | BuildRequires: gtk+3-devel >= 3.22.0 |
a126e31b | 26 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.16} |
2ba5d227 | 27 | BuildRequires: lcms2-devel >= 2 |
a617f262 | 28 | BuildRequires: libexif-devel >= 1:0.6.14 |
0668f633 | 29 | BuildRequires: libjpeg-turbo-devel |
d1619112 | 30 | BuildRequires: libpeas-gtk-devel >= 1.0.0 |
4660dcb6 | 31 | BuildRequires: librsvg-devel >= 2.36.2 |
0668f633 | 32 | BuildRequires: meson >= 0.44.0 |
75295f42 | 33 | BuildRequires: ninja >= 1.5 |
2ba5d227 | 34 | BuildRequires: pkgconfig >= 1:0.9.0 |
db8dcdfb | 35 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
f83a2ab4 | 36 | BuildRequires: rpmbuild(macros) >= 1.311 |
85b65f0b | 37 | BuildRequires: shared-mime-info >= 0.50 |
8e19d3e0 | 38 | BuildRequires: tar >= 1:1.22 |
2ba5d227 | 39 | BuildRequires: xorg-lib-libX11-devel |
8e19d3e0 | 40 | BuildRequires: xz |
4660dcb6 | 41 | BuildRequires: yelp-tools |
c4ac352b | 42 | BuildRequires: zlib-devel |
9a3db02a | 43 | Requires(post,postun): glib2 >= 1:2.42.0 |
7b788a76 | 44 | Requires(post,postun): desktop-file-utils |
54fe8441 | 45 | Requires(post,postun): gtk-update-icon-cache |
2ba5d227 | 46 | Requires: exempi >= 1.99.5 |
1b32f299 | 47 | Requires: gdk-pixbuf2 >= 2.36.5 |
0668f633 | 48 | Requires: glib2 >= 1:2.54.0 |
5e4cb00f | 49 | Requires: gsettings-desktop-schemas >= 3.4.0 |
df2b2051 | 50 | Requires: gtk+3 >= 3.22.0 |
d1619112 | 51 | Requires: hicolor-icon-theme |
2ba5d227 JB |
52 | Requires: libexif >= 1:0.6.14 |
53 | Requires: librsvg >= 2.36.2 | |
54 | Requires: shared-mime-info >= 0.50 | |
cd132c4c | 55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
cd132c4c | 57 | %description |
58 | Eye of GNOME is a tool for viewing/cataloging images. | |
59 | ||
02a464eb | 60 | %description -l pl.UTF-8 |
5292ec55 | 61 | Eye of GNOME (Oko GNOME) jest narzędziem do oglądania i katalogowania |
02a464eb | 62 | obrazków. |
6b3d5dfe | 63 | |
02a464eb | 64 | %description -l pt_BR.UTF-8 |
f1d811f5 | 65 | Aplicativo para visualizar imagens chamado Eye of GNOME. |
66 | ||
1b874169 PZ |
67 | %package devel |
68 | Summary: Header files for eog | |
69 | Summary(pl.UTF-8): Pliki nagłówkowe eog | |
aa25ce61 | 70 | Group: X11/Development/Libraries |
1b874169 | 71 | Requires: %{name} = %{version}-%{release} |
df2b2051 | 72 | Requires: gtk+3-devel >= 3.22.0 |
1b874169 PZ |
73 | |
74 | %description devel | |
75 | Header files for eog. | |
76 | ||
77 | %description devel -l pl.UTF-8 | |
78 | Pliki nagłówkowe eog. | |
79 | ||
85b65f0b MB |
80 | %package apidocs |
81 | Summary: Eye of GNOME API documentation | |
82 | Summary(pl.UTF-8): Dokumentacja API Eye of GNOME | |
83 | Group: Documentation | |
84 | Requires: gtk-doc-common | |
9c5f0b63 ER |
85 | %if "%{_rpmversion}" >= "5" |
86 | BuildArch: noarch | |
87 | %endif | |
85b65f0b MB |
88 | |
89 | %description apidocs | |
90 | Eye of GNOME API documentation. | |
91 | ||
92 | %description apidocs -l pl.UTF-8 | |
93 | Dokumentacja API Eye of GNOME. | |
94 | ||
cd132c4c | 95 | %prep |
96 | %setup -q | |
0668f633 | 97 | %patch0 -p1 |
4e0ba68a | 98 | |
cd132c4c | 99 | %build |
0668f633 MB |
100 | %meson build \ |
101 | -Dgtk_doc=%{?with_apidocs:true}%{!?with_apidocs:false} | |
102 | ||
103 | %meson_build -C build | |
b13f147c | 104 | |
cd132c4c | 105 | %install |
106 | rm -rf $RPM_BUILD_ROOT | |
8e19d3e0 | 107 | install -d $RPM_BUILD_ROOT%{_datadir}/eog/plugins |
85b65f0b | 108 | |
0668f633 MB |
109 | %meson_install -C build |
110 | ||
4660dcb6 | 111 | %find_lang %{name} --with-gnome |
cd132c4c | 112 | |
13b71f75 JB |
113 | %clean |
114 | rm -rf $RPM_BUILD_ROOT | |
115 | ||
4d69a7c1 | 116 | %post |
268041a5 | 117 | %update_desktop_database_post |
f83a2ab4 | 118 | %update_icon_cache hicolor |
d1619112 | 119 | %glib_compile_schemas |
4d69a7c1 | 120 | |
6458e674 | 121 | %postun |
268041a5 | 122 | %update_desktop_database_postun |
f83a2ab4 | 123 | %update_icon_cache hicolor |
d1619112 | 124 | %glib_compile_schemas |
4d69a7c1 | 125 | |
cd132c4c | 126 | %files -f %{name}.lang |
127 | %defattr(644,root,root,755) | |
a617f262 MB |
128 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
129 | %attr(755,root,root) %{_bindir}/eog | |
85b65f0b | 130 | %dir %{_libdir}/eog |
d1619112 MB |
131 | %dir %{_libdir}/eog/girepository-1.0 |
132 | %{_libdir}/eog/girepository-1.0/Eog-3.0.typelib | |
85b65f0b | 133 | %dir %{_libdir}/eog/plugins |
75295f42 | 134 | %attr(755,root,root) %{_libdir}/eog/libeog.so |
d1619112 | 135 | %{_libdir}/eog/plugins/fullscreen.plugin |
85b65f0b | 136 | %attr(755,root,root) %{_libdir}/eog/plugins/libfullscreen.so* |
d1619112 | 137 | %{_libdir}/eog/plugins/reload.plugin |
85b65f0b | 138 | %attr(755,root,root) %{_libdir}/eog/plugins/libreload.so* |
d1619112 | 139 | %{_libdir}/eog/plugins/statusbar-date.plugin |
85b65f0b | 140 | %attr(755,root,root) %{_libdir}/eog/plugins/libstatusbar-date.so* |
d1619112 MB |
141 | %{_datadir}/%{name} |
142 | %{_datadir}/GConf/gsettings/eog.convert | |
143 | %{_datadir}/glib-2.0/schemas/org.gnome.eog.enums.xml | |
144 | %{_datadir}/glib-2.0/schemas/org.gnome.eog.gschema.xml | |
75295f42 | 145 | %{_datadir}/metainfo/eog.appdata.xml |
d1619112 | 146 | %{_desktopdir}/eog.desktop |
75295f42 JB |
147 | %{_iconsdir}/hicolor/scalable/apps/org.gnome.eog.svg |
148 | %{_iconsdir}/hicolor/symbolic/apps/org.gnome.eog-symbolic.svg | |
1b874169 PZ |
149 | |
150 | %files devel | |
151 | %defattr(644,root,root,755) | |
d1619112 | 152 | %{_includedir}/eog-3.0 |
aa25ce61 | 153 | %{_pkgconfigdir}/eog.pc |
85b65f0b MB |
154 | |
155 | %if %{with apidocs} | |
156 | %files apidocs | |
157 | %defattr(644,root,root,755) | |
158 | %{_gtkdocdir}/eog | |
159 | %endif |