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