]>
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 |
c55f079c | 9 | Version: 3.20.5 |
5f0d1c28 | 10 | Release: 1 |
aa25ce61 | 11 | License: GPL v2+ |
ece649ea | 12 | Group: X11/Applications/Graphics |
9fb57bdf | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/eog/3.20/%{name}-%{version}.tar.xz |
c55f079c | 14 | # Source0-md5: fc6e611074a71c05d1cedcfb35a3895b |
a617f262 | 15 | URL: http://www.gnome.org/projects/eog/ |
a617f262 | 16 | BuildRequires: autoconf >= 2.59 |
f8d1f17d | 17 | BuildRequires: automake >= 1:1.11 |
5d861441 | 18 | BuildRequires: docbook-dtd412-xml |
aa25ce61 | 19 | BuildRequires: exempi-devel >= 1.99.5 |
f28b94cf | 20 | BuildRequires: gdk-pixbuf2-devel >= 2.30.0 |
fe63ba3b | 21 | BuildRequires: gettext-tools |
9fb57bdf MB |
22 | BuildRequires: glib2-devel >= 1:2.42.0 |
23 | BuildRequires: gnome-common | |
5e4cb00f | 24 | BuildRequires: gnome-desktop-devel >= 3.2.0 |
d1619112 | 25 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
5e4cb00f | 26 | BuildRequires: gsettings-desktop-schemas-devel >= 3.4.0 |
9fb57bdf | 27 | BuildRequires: gtk+3-devel >= 3.20.0 |
a126e31b ŁK |
28 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.16} |
29 | BuildRequires: intltool >= 0.50.1 | |
2ba5d227 | 30 | BuildRequires: lcms2-devel >= 2 |
a617f262 | 31 | BuildRequires: libexif-devel >= 1:0.6.14 |
32807e4c | 32 | BuildRequires: libjpeg-devel |
d1619112 | 33 | BuildRequires: libpeas-gtk-devel >= 1.0.0 |
4660dcb6 | 34 | BuildRequires: librsvg-devel >= 2.36.2 |
2ba5d227 JB |
35 | BuildRequires: libtool >= 2:2.2.6 |
36 | BuildRequires: pkgconfig >= 1:0.9.0 | |
db8dcdfb | 37 | BuildRequires: rpmbuild(find_lang) >= 1.23 |
f83a2ab4 | 38 | BuildRequires: rpmbuild(macros) >= 1.311 |
85b65f0b | 39 | BuildRequires: shared-mime-info >= 0.50 |
8e19d3e0 | 40 | BuildRequires: tar >= 1:1.22 |
2ba5d227 | 41 | BuildRequires: xorg-lib-libX11-devel |
8e19d3e0 | 42 | BuildRequires: xz |
4660dcb6 | 43 | BuildRequires: yelp-tools |
c4ac352b | 44 | BuildRequires: zlib-devel |
9a3db02a | 45 | Requires(post,postun): glib2 >= 1:2.42.0 |
7b788a76 | 46 | Requires(post,postun): desktop-file-utils |
54fe8441 | 47 | Requires(post,postun): gtk-update-icon-cache |
2ba5d227 JB |
48 | Requires: exempi >= 1.99.5 |
49 | Requires: gdk-pixbuf2 >= 2.30.0 | |
9fb57bdf | 50 | Requires: glib2 >= 1:2.42.0 |
5e4cb00f | 51 | Requires: gsettings-desktop-schemas >= 3.4.0 |
9fb57bdf | 52 | Requires: gtk+3 >= 3.20.0 |
d1619112 | 53 | Requires: hicolor-icon-theme |
2ba5d227 JB |
54 | Requires: libexif >= 1:0.6.14 |
55 | Requires: librsvg >= 2.36.2 | |
56 | Requires: shared-mime-info >= 0.50 | |
f766ecd3 | 57 | # sr@Latn vs. sr@latin |
58 | Conflicts: glibc-misc < 6:2.7 | |
cd132c4c | 59 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
60 | ||
cd132c4c | 61 | %description |
62 | Eye of GNOME is a tool for viewing/cataloging images. | |
63 | ||
02a464eb | 64 | %description -l pl.UTF-8 |
5292ec55 | 65 | Eye of GNOME (Oko GNOME) jest narzędziem do oglądania i katalogowania |
02a464eb | 66 | obrazków. |
6b3d5dfe | 67 | |
02a464eb | 68 | %description -l pt_BR.UTF-8 |
f1d811f5 | 69 | Aplicativo para visualizar imagens chamado Eye of GNOME. |
70 | ||
1b874169 PZ |
71 | %package devel |
72 | Summary: Header files for eog | |
73 | Summary(pl.UTF-8): Pliki nagłówkowe eog | |
aa25ce61 | 74 | Group: X11/Development/Libraries |
1b874169 | 75 | Requires: %{name} = %{version}-%{release} |
9fb57bdf | 76 | Requires: gtk+3-devel >= 3.20.0 |
1b874169 PZ |
77 | |
78 | %description devel | |
79 | Header files for eog. | |
80 | ||
81 | %description devel -l pl.UTF-8 | |
82 | Pliki nagłówkowe eog. | |
83 | ||
85b65f0b MB |
84 | %package apidocs |
85 | Summary: Eye of GNOME API documentation | |
86 | Summary(pl.UTF-8): Dokumentacja API Eye of GNOME | |
87 | Group: Documentation | |
88 | Requires: gtk-doc-common | |
9c5f0b63 ER |
89 | %if "%{_rpmversion}" >= "5" |
90 | BuildArch: noarch | |
91 | %endif | |
85b65f0b MB |
92 | |
93 | %description apidocs | |
94 | Eye of GNOME API documentation. | |
95 | ||
96 | %description apidocs -l pl.UTF-8 | |
97 | Dokumentacja API Eye of GNOME. | |
98 | ||
cd132c4c | 99 | %prep |
100 | %setup -q | |
4e0ba68a | 101 | |
cd132c4c | 102 | %build |
85b65f0b | 103 | %{?with_apidocs:%{__gtkdocize}} |
6bff1701 | 104 | %{__libtoolize} |
268041a5 | 105 | %{__intltoolize} |
cd20d65c | 106 | %{__aclocal} |
470a23a6 | 107 | %{__automake} |
aa25ce61 | 108 | %{__autoheader} |
e3413657 | 109 | %{__autoconf} |
32807e4c | 110 | %configure \ |
f8d1f17d | 111 | %{__enable_disable apidocs gtk-doc} \ |
d1619112 | 112 | --disable-schemas-compile \ |
f0aa38bf | 113 | --disable-silent-rules \ |
85b65f0b | 114 | --with-html-dir=%{_gtkdocdir} |
b9d7d08a | 115 | %{__make} |
b13f147c | 116 | |
cd132c4c | 117 | %install |
118 | rm -rf $RPM_BUILD_ROOT | |
32807e4c | 119 | |
cd132c4c | 120 | %{__make} install \ |
d1619112 | 121 | DESTDIR=$RPM_BUILD_ROOT |
cd132c4c | 122 | |
50817aca | 123 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/eog{/plugins,}/*.la |
8e19d3e0 | 124 | install -d $RPM_BUILD_ROOT%{_datadir}/eog/plugins |
85b65f0b | 125 | |
4660dcb6 | 126 | %find_lang %{name} --with-gnome |
cd132c4c | 127 | |
13b71f75 JB |
128 | %clean |
129 | rm -rf $RPM_BUILD_ROOT | |
130 | ||
4d69a7c1 | 131 | %post |
268041a5 | 132 | %update_desktop_database_post |
f83a2ab4 | 133 | %update_icon_cache hicolor |
d1619112 | 134 | %glib_compile_schemas |
4d69a7c1 | 135 | |
6458e674 | 136 | %postun |
268041a5 | 137 | %update_desktop_database_postun |
f83a2ab4 | 138 | %update_icon_cache hicolor |
d1619112 | 139 | %glib_compile_schemas |
4d69a7c1 | 140 | |
cd132c4c | 141 | %files -f %{name}.lang |
142 | %defattr(644,root,root,755) | |
a617f262 MB |
143 | %doc AUTHORS ChangeLog NEWS README THANKS TODO |
144 | %attr(755,root,root) %{_bindir}/eog | |
85b65f0b | 145 | %dir %{_libdir}/eog |
d1619112 MB |
146 | %dir %{_libdir}/eog/girepository-1.0 |
147 | %{_libdir}/eog/girepository-1.0/Eog-3.0.typelib | |
85b65f0b MB |
148 | %dir %{_libdir}/eog/plugins |
149 | # buggy soname generation, uses .so.0.0.0 | |
50817aca | 150 | %attr(755,root,root) %{_libdir}/eog/libeog.so* |
d1619112 | 151 | %{_libdir}/eog/plugins/fullscreen.plugin |
85b65f0b | 152 | %attr(755,root,root) %{_libdir}/eog/plugins/libfullscreen.so* |
d1619112 | 153 | %{_libdir}/eog/plugins/reload.plugin |
85b65f0b | 154 | %attr(755,root,root) %{_libdir}/eog/plugins/libreload.so* |
d1619112 | 155 | %{_libdir}/eog/plugins/statusbar-date.plugin |
85b65f0b | 156 | %attr(755,root,root) %{_libdir}/eog/plugins/libstatusbar-date.so* |
2ba5d227 JB |
157 | %{_iconsdir}/hicolor/*x*/apps/eog.png |
158 | %{_iconsdir}/hicolor/scalable/apps/eog-symbolic.svg | |
d1619112 MB |
159 | %{_datadir}/%{name} |
160 | %{_datadir}/GConf/gsettings/eog.convert | |
a126e31b | 161 | %{_datadir}/appdata/eog.appdata.xml |
d1619112 MB |
162 | %{_datadir}/glib-2.0/schemas/org.gnome.eog.enums.xml |
163 | %{_datadir}/glib-2.0/schemas/org.gnome.eog.gschema.xml | |
164 | %{_desktopdir}/eog.desktop | |
1b874169 PZ |
165 | |
166 | %files devel | |
167 | %defattr(644,root,root,755) | |
d1619112 | 168 | %{_includedir}/eog-3.0 |
aa25ce61 | 169 | %{_pkgconfigdir}/eog.pc |
85b65f0b MB |
170 | |
171 | %if %{with apidocs} | |
172 | %files apidocs | |
173 | %defattr(644,root,root,755) | |
174 | %{_gtkdocdir}/eog | |
175 | %endif |