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