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