]>
Commit | Line | Data |
---|---|---|
4809533a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable API documentation | |
96e48035 | 4 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x |
76ff73c7 | 5 | |
4809533a JB |
6 | Summary: The Eye of MATE image viewer |
7 | Summary(pl.UTF-8): Oko MATE - przeglądarka obrazków | |
8 | Summary(pt_BR.UTF-8): Visualizador de imagem Eye of MATE | |
486ce032 | 9 | Name: eom |
9358ad85 | 10 | Version: 1.14.2 |
6c503448 | 11 | Release: 1 |
4809533a JB |
12 | License: GPL v2+ |
13 | Group: X11/Applications/Graphics | |
40c418d8 | 14 | Source0: http://pub.mate-desktop.org/releases/1.14/%{name}-%{version}.tar.xz |
9358ad85 | 15 | # Source0-md5: bbbf3225146dc4d197933d27c811b8ee |
4809533a JB |
16 | Patch0: %{name}-codegen.patch |
17 | URL: http://mate-desktop.org/ | |
18 | BuildRequires: autoconf >= 2.59 | |
19 | BuildRequires: automake >= 1:1.9 | |
20 | BuildRequires: dbus-glib-devel >= 0.71 | |
21 | BuildRequires: docbook-dtd412-xml | |
22 | BuildRequires: exempi-devel >= 1.99.5 | |
40c418d8 | 23 | BuildRequires: gdk-pixbuf2-devel >= 2.30.0 |
be22d432 | 24 | BuildRequires: gettext-tools >= 0.10.40 |
bb49e1ec | 25 | BuildRequires: glib2-devel >= 1:2.36.0 |
6c503448 | 26 | BuildRequires: gobject-introspection-devel >= 0.9.3 |
96e48035 JB |
27 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.18.0} |
28 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
4809533a | 29 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} |
bfbe7f73 | 30 | BuildRequires: intltool >= 0.50.1 |
96e48035 | 31 | BuildRequires: lcms2-devel >= 2 |
4809533a JB |
32 | BuildRequires: libexif-devel >= 1:0.6.14 |
33 | BuildRequires: libjpeg-devel | |
6c503448 | 34 | BuildRequires: librsvg-devel >= 2.36.2 |
4809533a JB |
35 | BuildRequires: libtool >= 1:1.4.3 |
36 | BuildRequires: libxml2-devel >= 2.0 | |
37 | BuildRequires: mate-common | |
6c503448 | 38 | BuildRequires: mate-desktop-devel >= 1.9.1 |
4809533a | 39 | BuildRequires: pkgconfig >= 1:0.9.0 |
96e48035 | 40 | BuildRequires: python-devel >= 1:2.3 |
4809533a JB |
41 | BuildRequires: python-pygobject-devel >= 2.16.0 |
42 | BuildRequires: python-pygtk-devel >= 2:2.14.0 | |
43 | BuildRequires: rpmbuild(find_lang) >= 1.36 | |
44 | BuildRequires: rpmbuild(macros) >= 1.311 | |
4809533a JB |
45 | BuildRequires: shared-mime-info >= 0.20 |
46 | BuildRequires: tar >= 1:1.22 | |
47 | BuildRequires: xorg-lib-libX11-devel | |
48 | BuildRequires: xz | |
486ce032 | 49 | BuildRequires: yelp-tools |
4809533a JB |
50 | BuildRequires: zlib-devel |
51 | Requires(post,postun): desktop-file-utils | |
bb49e1ec | 52 | Requires(post,postun): glib2 >= 1:2.36.0 |
4809533a JB |
53 | Requires(post,postun): gtk-update-icon-cache |
54 | Requires(post,postun): hicolor-icon-theme | |
4809533a JB |
55 | Requires: dbus-glib >= 0.71 |
56 | Requires: exempi >= 1.99.5 | |
d95b3434 | 57 | Requires: gdk-pixbuf2 >= 2.30.0 |
bb49e1ec | 58 | Requires: glib2 >= 1:2.36.0 |
96e48035 JB |
59 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.18.0} |
60 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
4809533a | 61 | Requires: libexif >= 1:0.6.14 |
6c503448 JB |
62 | Requires: librsvg >= 2.36.2 |
63 | Requires: mate-desktop-libs >= 1.9.1 | |
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 |
6c503448 JB |
85 | %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.18.0} |
86 | %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0} | |
486ce032 | 87 | Obsoletes: mate-image-viewer-devel |
4809533a JB |
88 | |
89 | %description devel | |
90 | Header files for Eye of MATE plugins. | |
91 | ||
92 | %description devel -l pl.UTF-8 | |
93 | Pliki nagłówkowe dla wtyczek Eye of MATE. | |
94 | ||
95 | %package apidocs | |
96 | Summary: Eye of MATE API documentation | |
97 | Summary(pl.UTF-8): Dokumentacja API Eye of MATE | |
98 | Group: Documentation | |
99 | Requires: gtk-doc-common | |
486ce032 | 100 | Obsoletes: mate-image-viewer-apidocs |
76ff73c7 ER |
101 | %if "%{_rpmversion}" >= "5" |
102 | BuildArch: noarch | |
103 | %endif | |
4809533a JB |
104 | |
105 | %description apidocs | |
106 | Eye of MATE API documentation. | |
107 | ||
108 | %description apidocs -l pl.UTF-8 | |
109 | Dokumentacja API Eye of MATE. | |
110 | ||
111 | %prep | |
112 | %setup -q | |
113 | %patch0 -p1 | |
114 | ||
115 | %build | |
4809533a JB |
116 | %{?with_apidocs:%{__gtkdocize}} |
117 | %{__intltoolize} | |
118 | %{__libtoolize} | |
119 | %{__aclocal} | |
120 | %{__automake} | |
121 | %{__autoheader} | |
122 | %{__autoconf} | |
123 | %configure \ | |
124 | --enable-gtk-doc%{!?with_apidocs:=no} \ | |
4809533a | 125 | --disable-silent-rules \ |
96e48035 | 126 | %{?with_gtk:--with-gtk=3.0} \ |
4809533a JB |
127 | --with-html-dir=%{_gtkdocdir} |
128 | %{__make} | |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %{__make} install \ | |
134 | DESTDIR=$RPM_BUILD_ROOT | |
135 | ||
136 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/eom/plugins/*.la | |
137 | ||
9358ad85 JP |
138 | # not supported by glibc yet |
139 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,jv,pms} | |
4809533a | 140 | |
96e48035 | 141 | %find_lang eom --with-mate |
4809533a JB |
142 | |
143 | %clean | |
144 | rm -rf $RPM_BUILD_ROOT | |
145 | ||
146 | %post | |
147 | %glib_compile_schemas | |
4809533a JB |
148 | %update_desktop_database_post |
149 | %update_icon_cache hicolor | |
150 | ||
151 | %postun | |
152 | %glib_compile_schemas | |
4809533a JB |
153 | %update_desktop_database_postun |
154 | %update_icon_cache hicolor | |
155 | ||
156 | %files -f eom.lang | |
157 | %defattr(644,root,root,755) | |
40c418d8 | 158 | %doc AUTHORS ChangeLog NEWS README |
4809533a | 159 | %attr(755,root,root) %{_bindir}/eom |
6c503448 | 160 | %{_libdir}/girepository-1.0/Eom-1.0.typelib |
4809533a JB |
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 | |
6c503448 JB |
169 | %{_datadir}/appdata/eom.appdata.xml |
170 | %{_datadir}/glib-2.0/schemas/org.mate.eom.enums.xml | |
4809533a | 171 | %{_datadir}/glib-2.0/schemas/org.mate.eom.gschema.xml |
486ce032 | 172 | %{_datadir}/eom |
4809533a JB |
173 | %{_desktopdir}/eom.desktop |
174 | %{_iconsdir}/hicolor/*/apps/eom.* | |
175 | %{_mandir}/man1/eom.1* | |
176 | ||
177 | %files devel | |
178 | %defattr(644,root,root,755) | |
179 | %{_includedir}/eom-2.20 | |
6c503448 | 180 | %{_datadir}/gir-1.0/Eom-1.0.gir |
4809533a JB |
181 | %{_pkgconfigdir}/eom.pc |
182 | ||
183 | %if %{with apidocs} | |
184 | %files apidocs | |
185 | %defattr(644,root,root,755) | |
186 | %{_gtkdocdir}/eom | |
187 | %endif |