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