]>
Commit | Line | Data |
---|---|---|
4809533a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable API documentation | |
76ff73c7 | 4 | |
4809533a JB |
5 | Summary: The Eye of MATE image viewer |
6 | Summary(pl.UTF-8): Oko MATE - przeglądarka obrazków | |
7 | Summary(pt_BR.UTF-8): Visualizador de imagem Eye of MATE | |
486ce032 | 8 | Name: eom |
4780cd51 | 9 | Version: 1.18.2 |
6c503448 | 10 | Release: 1 |
4809533a JB |
11 | License: GPL v2+ |
12 | Group: X11/Applications/Graphics | |
3ac251cb | 13 | Source0: http://pub.mate-desktop.org/releases/1.18/%{name}-%{version}.tar.xz |
4780cd51 | 14 | # Source0-md5: 4d856fb415f317fda073d0b916e2929b |
4809533a JB |
15 | URL: http://mate-desktop.org/ |
16 | BuildRequires: autoconf >= 2.59 | |
17 | BuildRequires: automake >= 1:1.9 | |
18 | BuildRequires: dbus-glib-devel >= 0.71 | |
19 | BuildRequires: docbook-dtd412-xml | |
20 | BuildRequires: exempi-devel >= 1.99.5 | |
40c418d8 | 21 | BuildRequires: gdk-pixbuf2-devel >= 2.30.0 |
be22d432 | 22 | BuildRequires: gettext-tools >= 0.10.40 |
bb49e1ec | 23 | BuildRequires: glib2-devel >= 1:2.36.0 |
6c503448 | 24 | BuildRequires: gobject-introspection-devel >= 0.9.3 |
3ac251cb | 25 | BuildRequires: gtk+3-devel >= 3.14 |
4809533a | 26 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} |
bfbe7f73 | 27 | BuildRequires: intltool >= 0.50.1 |
96e48035 | 28 | BuildRequires: lcms2-devel >= 2 |
4809533a JB |
29 | BuildRequires: libexif-devel >= 1:0.6.14 |
30 | BuildRequires: libjpeg-devel | |
3ac251cb JP |
31 | BuildRequires: libpeas-devel >= 1.2.0 |
32 | BuildRequires: libpeas-gtk-devel >= 1.2.0 | |
6c503448 | 33 | BuildRequires: librsvg-devel >= 2.36.2 |
4809533a JB |
34 | BuildRequires: libtool >= 1:1.4.3 |
35 | BuildRequires: libxml2-devel >= 2.0 | |
36 | BuildRequires: mate-common | |
3ac251cb | 37 | BuildRequires: mate-desktop-devel >= 1.17.0 |
4809533a | 38 | BuildRequires: pkgconfig >= 1:0.9.0 |
96e48035 | 39 | BuildRequires: python-devel >= 1:2.3 |
4809533a JB |
40 | BuildRequires: python-pygobject-devel >= 2.16.0 |
41 | BuildRequires: python-pygtk-devel >= 2:2.14.0 | |
42 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
43 | BuildRequires: rpmbuild(macros) >= 1.311 | |
4809533a JB |
44 | BuildRequires: shared-mime-info >= 0.20 |
45 | BuildRequires: tar >= 1:1.22 | |
46 | BuildRequires: xorg-lib-libX11-devel | |
47 | BuildRequires: xz | |
486ce032 | 48 | BuildRequires: yelp-tools |
4809533a JB |
49 | BuildRequires: zlib-devel |
50 | Requires(post,postun): desktop-file-utils | |
bb49e1ec | 51 | Requires(post,postun): glib2 >= 1:2.36.0 |
4809533a JB |
52 | Requires(post,postun): gtk-update-icon-cache |
53 | Requires(post,postun): hicolor-icon-theme | |
4809533a JB |
54 | Requires: dbus-glib >= 0.71 |
55 | Requires: exempi >= 1.99.5 | |
d95b3434 | 56 | Requires: gdk-pixbuf2 >= 2.30.0 |
bb49e1ec | 57 | Requires: glib2 >= 1:2.36.0 |
3ac251cb | 58 | Requires: gtk+3 >= 3.14 |
4809533a | 59 | Requires: libexif >= 1:0.6.14 |
3ac251cb JP |
60 | Requires: libpeas >= 1.2.0 |
61 | Requires: libpeas-gtk >= 1.2.0 | |
6c503448 | 62 | Requires: librsvg >= 2.36.2 |
3ac251cb | 63 | Requires: mate-desktop-libs >= 1.17.0 |
4809533a | 64 | Requires: shared-mime-info >= 0.20 |
486ce032 | 65 | Obsoletes: mate-image-viewer |
4809533a JB |
66 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
67 | ||
68 | %description | |
69 | Eye of MATE is a tool for viewing/cataloging images. It's a fork of | |
70 | Eye of GNOME. | |
71 | ||
72 | %description -l pl.UTF-8 | |
73 | Eye of MATE (Oko MATE) jest narzędziem do oglądania i katalogowania | |
74 | obrazków. Jest to odgałęzienie programu Eye of GNOME. | |
75 | ||
76 | %description -l pt_BR.UTF-8 | |
77 | Aplicativo para visualizar imagens chamado Eye of MATE. | |
78 | ||
79 | %package devel | |
80 | Summary: Header files for Eye of MATE plugins | |
81 | Summary(pl.UTF-8): Pliki nagłówkowe dla wtyczek Eye of MATE | |
82 | Group: X11/Development/Libraries | |
83 | # doesn't require base | |
bb49e1ec | 84 | Requires: glib2-devel >= 1:2.36.0 |
3ac251cb | 85 | Requires: gtk+3-devel >= 3.14 |
486ce032 | 86 | Obsoletes: mate-image-viewer-devel |
4809533a JB |
87 | |
88 | %description devel | |
89 | Header files for Eye of MATE plugins. | |
90 | ||
91 | %description devel -l pl.UTF-8 | |
92 | Pliki nagłówkowe dla wtyczek Eye of MATE. | |
93 | ||
94 | %package apidocs | |
95 | Summary: Eye of MATE API documentation | |
96 | Summary(pl.UTF-8): Dokumentacja API Eye of MATE | |
97 | Group: Documentation | |
98 | Requires: gtk-doc-common | |
486ce032 | 99 | Obsoletes: mate-image-viewer-apidocs |
76ff73c7 ER |
100 | %if "%{_rpmversion}" >= "5" |
101 | BuildArch: noarch | |
102 | %endif | |
4809533a JB |
103 | |
104 | %description apidocs | |
105 | Eye of MATE API documentation. | |
106 | ||
107 | %description apidocs -l pl.UTF-8 | |
108 | Dokumentacja API Eye of MATE. | |
109 | ||
110 | %prep | |
111 | %setup -q | |
4809533a JB |
112 | |
113 | %build | |
4809533a JB |
114 | %{?with_apidocs:%{__gtkdocize}} |
115 | %{__intltoolize} | |
116 | %{__libtoolize} | |
117 | %{__aclocal} | |
118 | %{__automake} | |
119 | %{__autoheader} | |
120 | %{__autoconf} | |
121 | %configure \ | |
122 | --enable-gtk-doc%{!?with_apidocs:=no} \ | |
4809533a JB |
123 | --disable-silent-rules \ |
124 | --with-html-dir=%{_gtkdocdir} | |
125 | %{__make} | |
126 | ||
127 | %install | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
130 | %{__make} install \ | |
131 | DESTDIR=$RPM_BUILD_ROOT | |
132 | ||
133 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/eom/plugins/*.la | |
134 | ||
9358ad85 | 135 | # not supported by glibc yet |
3ac251cb | 136 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ku_IQ,jv,pms} |
4809533a | 137 | |
96e48035 | 138 | %find_lang eom --with-mate |
4809533a JB |
139 | |
140 | %clean | |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
143 | %post | |
144 | %glib_compile_schemas | |
4809533a JB |
145 | %update_desktop_database_post |
146 | %update_icon_cache hicolor | |
147 | ||
148 | %postun | |
149 | %glib_compile_schemas | |
4809533a JB |
150 | %update_desktop_database_postun |
151 | %update_icon_cache hicolor | |
152 | ||
153 | %files -f eom.lang | |
154 | %defattr(644,root,root,755) | |
40c418d8 | 155 | %doc AUTHORS ChangeLog NEWS README |
4809533a | 156 | %attr(755,root,root) %{_bindir}/eom |
6c503448 | 157 | %{_libdir}/girepository-1.0/Eom-1.0.typelib |
4809533a JB |
158 | %dir %{_libdir}/eom |
159 | %dir %{_libdir}/eom/plugins | |
160 | %attr(755,root,root) %{_libdir}/eom/plugins/libfullscreen.so | |
3ac251cb | 161 | %{_libdir}/eom/plugins/fullscreen.plugin |
4809533a | 162 | %attr(755,root,root) %{_libdir}/eom/plugins/libreload.so |
3ac251cb | 163 | %{_libdir}/eom/plugins/reload.plugin |
4809533a | 164 | %attr(755,root,root) %{_libdir}/eom/plugins/libstatusbar-date.so |
3ac251cb | 165 | %{_libdir}/eom/plugins/statusbar-date.plugin |
6c503448 JB |
166 | %{_datadir}/appdata/eom.appdata.xml |
167 | %{_datadir}/glib-2.0/schemas/org.mate.eom.enums.xml | |
4809533a | 168 | %{_datadir}/glib-2.0/schemas/org.mate.eom.gschema.xml |
486ce032 | 169 | %{_datadir}/eom |
4809533a JB |
170 | %{_desktopdir}/eom.desktop |
171 | %{_iconsdir}/hicolor/*/apps/eom.* | |
172 | %{_mandir}/man1/eom.1* | |
173 | ||
174 | %files devel | |
175 | %defattr(644,root,root,755) | |
176 | %{_includedir}/eom-2.20 | |
6c503448 | 177 | %{_datadir}/gir-1.0/Eom-1.0.gir |
4809533a JB |
178 | %{_pkgconfigdir}/eom.pc |
179 | ||
180 | %if %{with apidocs} | |
181 | %files apidocs | |
182 | %defattr(644,root,root,755) | |
183 | %{_gtkdocdir}/eom | |
184 | %endif |