]>
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 JP |
8 | Name: eom |
9 | Version: 1.8.0 | |
76ff73c7 | 10 | Release: 2 |
4809533a JB |
11 | License: GPL v2+ |
12 | Group: X11/Applications/Graphics | |
486ce032 JP |
13 | Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 0e80c19eb58d337ff25a7492967d0e4a | |
4809533a JB |
15 | Patch0: %{name}-codegen.patch |
16 | URL: http://mate-desktop.org/ | |
17 | BuildRequires: autoconf >= 2.59 | |
18 | BuildRequires: automake >= 1:1.9 | |
19 | BuildRequires: dbus-glib-devel >= 0.71 | |
20 | BuildRequires: docbook-dtd412-xml | |
21 | BuildRequires: exempi-devel >= 1.99.5 | |
22 | BuildRequires: gdk-pixbuf2-devel >= 2.4.0 | |
23 | BuildRequires: gettext-devel >= 0.10.40 | |
24 | BuildRequires: glib2-devel >= 1:2.26.0 | |
25 | BuildRequires: gtk+2-devel >= 2:2.18.0 | |
26 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} | |
27 | BuildRequires: intltool >= 0.40.0 | |
28 | BuildRequires: lcms-devel | |
29 | BuildRequires: libexif-devel >= 1:0.6.14 | |
30 | BuildRequires: libjpeg-devel | |
31 | BuildRequires: librsvg-devel >= 2.26.0 | |
32 | BuildRequires: libtool >= 1:1.4.3 | |
33 | BuildRequires: libxml2-devel >= 2.0 | |
34 | BuildRequires: mate-common | |
35 | BuildRequires: mate-desktop-devel >= 1.5.0 | |
4809533a JB |
36 | BuildRequires: mate-icon-theme-devel >= 1.1.0 |
37 | BuildRequires: pkgconfig >= 1:0.9.0 | |
38 | BuildRequires: python-devel >= 2.3 | |
39 | BuildRequires: python-pygobject-devel >= 2.16.0 | |
40 | BuildRequires: python-pygtk-devel >= 2:2.14.0 | |
41 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
42 | BuildRequires: rpmbuild(macros) >= 1.311 | |
43 | BuildRequires: scrollkeeper | |
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 | |
51 | Requires(post,postun): glib2 >= 1:2.26.0 | |
52 | Requires(post,postun): gtk-update-icon-cache | |
53 | Requires(post,postun): hicolor-icon-theme | |
54 | Requires(post,postun): scrollkeeper | |
55 | Requires: dbus-glib >= 0.71 | |
56 | Requires: exempi >= 1.99.5 | |
57 | Requires: glib2 >= 1:2.26.0 | |
58 | Requires: gtk+2 >= 2:2.18.0 | |
59 | Requires: libexif >= 1:0.6.14 | |
60 | Requires: librsvg >= 2.26.0 | |
61 | Requires: mate-icon-theme >= 1.1.0 | |
62 | Requires: shared-mime-info >= 0.20 | |
486ce032 | 63 | Obsoletes: mate-image-viewer |
4809533a JB |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
65 | ||
66 | %description | |
67 | Eye of MATE is a tool for viewing/cataloging images. It's a fork of | |
68 | Eye of GNOME. | |
69 | ||
70 | %description -l pl.UTF-8 | |
71 | Eye of MATE (Oko MATE) jest narzędziem do oglądania i katalogowania | |
72 | obrazków. Jest to odgałęzienie programu Eye of GNOME. | |
73 | ||
74 | %description -l pt_BR.UTF-8 | |
75 | Aplicativo para visualizar imagens chamado Eye of MATE. | |
76 | ||
77 | %package devel | |
78 | Summary: Header files for Eye of MATE plugins | |
79 | Summary(pl.UTF-8): Pliki nagłówkowe dla wtyczek Eye of MATE | |
80 | Group: X11/Development/Libraries | |
81 | # doesn't require base | |
82 | Requires: glib2-devel >= 1:2.26.0 | |
83 | Requires: gtk+2-devel >= 2:2.18.0 | |
486ce032 | 84 | Obsoletes: mate-image-viewer-devel |
4809533a JB |
85 | |
86 | %description devel | |
87 | Header files for Eye of MATE plugins. | |
88 | ||
89 | %description devel -l pl.UTF-8 | |
90 | Pliki nagłówkowe dla wtyczek Eye of MATE. | |
91 | ||
92 | %package apidocs | |
93 | Summary: Eye of MATE API documentation | |
94 | Summary(pl.UTF-8): Dokumentacja API Eye of MATE | |
95 | Group: Documentation | |
96 | Requires: gtk-doc-common | |
486ce032 | 97 | Obsoletes: mate-image-viewer-apidocs |
76ff73c7 ER |
98 | %if "%{_rpmversion}" >= "5" |
99 | BuildArch: noarch | |
100 | %endif | |
4809533a JB |
101 | |
102 | %description apidocs | |
103 | Eye of MATE API documentation. | |
104 | ||
105 | %description apidocs -l pl.UTF-8 | |
106 | Dokumentacja API Eye of MATE. | |
107 | ||
108 | %prep | |
109 | %setup -q | |
110 | %patch0 -p1 | |
111 | ||
112 | %build | |
4809533a JB |
113 | %{?with_apidocs:%{__gtkdocize}} |
114 | %{__intltoolize} | |
115 | %{__libtoolize} | |
116 | %{__aclocal} | |
117 | %{__automake} | |
118 | %{__autoheader} | |
119 | %{__autoconf} | |
120 | %configure \ | |
121 | --enable-gtk-doc%{!?with_apidocs:=no} \ | |
122 | --disable-scrollkeeper \ | |
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 | ||
486ce032 JP |
135 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/cmn |
136 | ||
4809533a JB |
137 | # mate < 1.5 did not exist in PLD, avoid dependency on mate-conf |
138 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/eom.convert | |
139 | ||
140 | %find_lang eom --with-mate --with-omf | |
141 | ||
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %post | |
146 | %glib_compile_schemas | |
147 | %scrollkeeper_update_post | |
148 | %update_desktop_database_post | |
149 | %update_icon_cache hicolor | |
150 | ||
151 | %postun | |
152 | %glib_compile_schemas | |
153 | %scrollkeeper_update_postun | |
154 | %update_desktop_database_postun | |
155 | %update_icon_cache hicolor | |
156 | ||
157 | %files -f eom.lang | |
158 | %defattr(644,root,root,755) | |
159 | %doc AUTHORS ChangeLog NEWS README THANKS TODO | |
160 | %attr(755,root,root) %{_bindir}/eom | |
161 | %dir %{_libdir}/eom | |
162 | %dir %{_libdir}/eom/plugins | |
163 | %attr(755,root,root) %{_libdir}/eom/plugins/libfullscreen.so | |
164 | %{_libdir}/eom/plugins/fullscreen.eom-plugin | |
165 | %attr(755,root,root) %{_libdir}/eom/plugins/libreload.so | |
166 | %{_libdir}/eom/plugins/reload.eom-plugin | |
167 | %attr(755,root,root) %{_libdir}/eom/plugins/libstatusbar-date.so | |
168 | %{_libdir}/eom/plugins/statusbar-date.eom-plugin | |
169 | %{_datadir}/glib-2.0/schemas/org.mate.eom.gschema.xml | |
486ce032 | 170 | %{_datadir}/eom |
4809533a JB |
171 | %{_desktopdir}/eom.desktop |
172 | %{_iconsdir}/hicolor/*/apps/eom.* | |
173 | %{_mandir}/man1/eom.1* | |
174 | ||
175 | %files devel | |
176 | %defattr(644,root,root,755) | |
177 | %{_includedir}/eom-2.20 | |
178 | %{_pkgconfigdir}/eom.pc | |
179 | ||
180 | %if %{with apidocs} | |
181 | %files apidocs | |
182 | %defattr(644,root,root,755) | |
183 | %{_gtkdocdir}/eom | |
184 | %endif |