]>
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 |
0668f633 | 9 | Version: 3.28.0 |
5f0d1c28 | 10 | Release: 1 |
aa25ce61 | 11 | License: GPL v2+ |
ece649ea | 12 | Group: X11/Applications/Graphics |
0668f633 MB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/eog/3.28/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 0ba26c69809aa01717bc17709b75ee52 | |
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 |
9fb57bdf | 22 | BuildRequires: gnome-common |
5e4cb00f | 23 | BuildRequires: gnome-desktop-devel >= 3.2.0 |
d1619112 | 24 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
5e4cb00f | 25 | BuildRequires: gsettings-desktop-schemas-devel >= 3.4.0 |
df2b2051 | 26 | BuildRequires: gtk+3-devel >= 3.22.0 |
a126e31b | 27 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.16} |
2ba5d227 | 28 | BuildRequires: lcms2-devel >= 2 |
a617f262 | 29 | BuildRequires: libexif-devel >= 1:0.6.14 |
0668f633 | 30 | BuildRequires: libjpeg-turbo-devel |
d1619112 | 31 | BuildRequires: libpeas-gtk-devel >= 1.0.0 |
4660dcb6 | 32 | BuildRequires: librsvg-devel >= 2.36.2 |
0668f633 | 33 | BuildRequires: meson >= 0.44.0 |
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 | |
f766ecd3 | 55 | # sr@Latn vs. sr@latin |
56 | Conflicts: glibc-misc < 6:2.7 | |
cd132c4c | 57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
58 | ||
cd132c4c | 59 | %description |
60 | Eye of GNOME is a tool for viewing/cataloging images. | |
61 | ||
02a464eb | 62 | %description -l pl.UTF-8 |
5292ec55 | 63 | Eye of GNOME (Oko GNOME) jest narzędziem do oglądania i katalogowania |
02a464eb | 64 | obrazków. |
6b3d5dfe | 65 | |
02a464eb | 66 | %description -l pt_BR.UTF-8 |
f1d811f5 | 67 | Aplicativo para visualizar imagens chamado Eye of GNOME. |
68 | ||
1b874169 PZ |
69 | %package devel |
70 | Summary: Header files for eog | |
71 | Summary(pl.UTF-8): Pliki nagłówkowe eog | |
aa25ce61 | 72 | Group: X11/Development/Libraries |
1b874169 | 73 | Requires: %{name} = %{version}-%{release} |
df2b2051 | 74 | Requires: gtk+3-devel >= 3.22.0 |
1b874169 PZ |
75 | |
76 | %description devel | |
77 | Header files for eog. | |
78 | ||
79 | %description devel -l pl.UTF-8 | |
80 | Pliki nagłówkowe eog. | |
81 | ||
85b65f0b MB |
82 | %package apidocs |
83 | Summary: Eye of GNOME API documentation | |
84 | Summary(pl.UTF-8): Dokumentacja API Eye of GNOME | |
85 | Group: Documentation | |
86 | Requires: gtk-doc-common | |
9c5f0b63 ER |
87 | %if "%{_rpmversion}" >= "5" |
88 | BuildArch: noarch | |
89 | %endif | |
85b65f0b MB |
90 | |
91 | %description apidocs | |
92 | Eye of GNOME API documentation. | |
93 | ||
94 | %description apidocs -l pl.UTF-8 | |
95 | Dokumentacja API Eye of GNOME. | |
96 | ||
cd132c4c | 97 | %prep |
98 | %setup -q | |
0668f633 | 99 | %patch0 -p1 |
4e0ba68a | 100 | |
cd132c4c | 101 | %build |
0668f633 MB |
102 | %meson build \ |
103 | -Dgtk_doc=%{?with_apidocs:true}%{!?with_apidocs:false} | |
104 | ||
105 | %meson_build -C build | |
b13f147c | 106 | |
cd132c4c | 107 | %install |
108 | rm -rf $RPM_BUILD_ROOT | |
8e19d3e0 | 109 | install -d $RPM_BUILD_ROOT%{_datadir}/eog/plugins |
85b65f0b | 110 | |
0668f633 MB |
111 | %meson_install -C build |
112 | ||
4660dcb6 | 113 | %find_lang %{name} --with-gnome |
cd132c4c | 114 | |
13b71f75 JB |
115 | %clean |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
4d69a7c1 | 118 | %post |
268041a5 | 119 | %update_desktop_database_post |
f83a2ab4 | 120 | %update_icon_cache hicolor |
d1619112 | 121 | %glib_compile_schemas |
4d69a7c1 | 122 | |
6458e674 | 123 | %postun |
268041a5 | 124 | %update_desktop_database_postun |
f83a2ab4 | 125 | %update_icon_cache hicolor |
d1619112 | 126 | %glib_compile_schemas |
4d69a7c1 | 127 | |
cd132c4c | 128 | %files -f %{name}.lang |
129 | %defattr(644,root,root,755) | |
a617f262 MB |
130 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
131 | %attr(755,root,root) %{_bindir}/eog | |
85b65f0b | 132 | %dir %{_libdir}/eog |
d1619112 MB |
133 | %dir %{_libdir}/eog/girepository-1.0 |
134 | %{_libdir}/eog/girepository-1.0/Eog-3.0.typelib | |
85b65f0b MB |
135 | %dir %{_libdir}/eog/plugins |
136 | # buggy soname generation, uses .so.0.0.0 | |
50817aca | 137 | %attr(755,root,root) %{_libdir}/eog/libeog.so* |
d1619112 | 138 | %{_libdir}/eog/plugins/fullscreen.plugin |
85b65f0b | 139 | %attr(755,root,root) %{_libdir}/eog/plugins/libfullscreen.so* |
d1619112 | 140 | %{_libdir}/eog/plugins/reload.plugin |
85b65f0b | 141 | %attr(755,root,root) %{_libdir}/eog/plugins/libreload.so* |
d1619112 | 142 | %{_libdir}/eog/plugins/statusbar-date.plugin |
85b65f0b | 143 | %attr(755,root,root) %{_libdir}/eog/plugins/libstatusbar-date.so* |
2ba5d227 JB |
144 | %{_iconsdir}/hicolor/*x*/apps/eog.png |
145 | %{_iconsdir}/hicolor/scalable/apps/eog-symbolic.svg | |
d1619112 MB |
146 | %{_datadir}/%{name} |
147 | %{_datadir}/GConf/gsettings/eog.convert | |
0668f633 | 148 | %{_datadir}/metainfo/eog.appdata.xml |
d1619112 MB |
149 | %{_datadir}/glib-2.0/schemas/org.gnome.eog.enums.xml |
150 | %{_datadir}/glib-2.0/schemas/org.gnome.eog.gschema.xml | |
151 | %{_desktopdir}/eog.desktop | |
1b874169 PZ |
152 | |
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
d1619112 | 155 | %{_includedir}/eog-3.0 |
aa25ce61 | 156 | %{_pkgconfigdir}/eog.pc |
85b65f0b MB |
157 | |
158 | %if %{with apidocs} | |
159 | %files apidocs | |
160 | %defattr(644,root,root,755) | |
161 | %{_gtkdocdir}/eog | |
162 | %endif |