]> git.pld-linux.org Git - packages/eom.git/blame - eom.spec
- versioned gdk-pixbuf2 runtime dependency
[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
01e13c4c 10Version: 1.14.1
6c503448 11Release: 1
4809533a
JB
12License: GPL v2+
13Group: X11/Applications/Graphics
40c418d8 14Source0: http://pub.mate-desktop.org/releases/1.14/%{name}-%{version}.tar.xz
01e13c4c 15# Source0-md5: 2f812879081f1392e97dade169daa5ad
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
40c418d8 23BuildRequires: gdk-pixbuf2-devel >= 2.30.0
be22d432 24BuildRequires: gettext-tools >= 0.10.40
bb49e1ec 25BuildRequires: glib2-devel >= 1:2.36.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 29%{?with_apidocs:BuildRequires: gtk-doc >= 1.9}
bfbe7f73 30BuildRequires: intltool >= 0.50.1
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 39BuildRequires: pkgconfig >= 1:0.9.0
96e48035 40BuildRequires: python-devel >= 1:2.3
4809533a
JB
41BuildRequires: python-pygobject-devel >= 2.16.0
42BuildRequires: python-pygtk-devel >= 2:2.14.0
43BuildRequires: rpmbuild(find_lang) >= 1.36
44BuildRequires: rpmbuild(macros) >= 1.311
4809533a
JB
45BuildRequires: shared-mime-info >= 0.20
46BuildRequires: tar >= 1:1.22
47BuildRequires: xorg-lib-libX11-devel
48BuildRequires: xz
486ce032 49BuildRequires: yelp-tools
4809533a
JB
50BuildRequires: zlib-devel
51Requires(post,postun): desktop-file-utils
bb49e1ec 52Requires(post,postun): glib2 >= 1:2.36.0
4809533a
JB
53Requires(post,postun): gtk-update-icon-cache
54Requires(post,postun): hicolor-icon-theme
4809533a
JB
55Requires: dbus-glib >= 0.71
56Requires: exempi >= 1.99.5
d95b3434 57Requires: gdk-pixbuf2 >= 2.30.0
bb49e1ec 58Requires: 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 61Requires: libexif >= 1:0.6.14
6c503448
JB
62Requires: librsvg >= 2.36.2
63Requires: mate-desktop-libs >= 1.9.1
4809533a 64Requires: shared-mime-info >= 0.20
486ce032 65Obsoletes: mate-image-viewer
4809533a
JB
66BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67
68%description
69Eye of MATE is a tool for viewing/cataloging images. It's a fork of
70Eye of GNOME.
71
72%description -l pl.UTF-8
73Eye of MATE (Oko MATE) jest narzędziem do oglądania i katalogowania
74obrazków. Jest to odgałęzienie programu Eye of GNOME.
75
76%description -l pt_BR.UTF-8
77Aplicativo para visualizar imagens chamado Eye of MATE.
78
79%package devel
80Summary: Header files for Eye of MATE plugins
81Summary(pl.UTF-8): Pliki nagłówkowe dla wtyczek Eye of MATE
82Group: X11/Development/Libraries
83# doesn't require base
bb49e1ec 84Requires: 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 87Obsoletes: mate-image-viewer-devel
4809533a
JB
88
89%description devel
90Header files for Eye of MATE plugins.
91
92%description devel -l pl.UTF-8
93Pliki nagłówkowe dla wtyczek Eye of MATE.
94
95%package apidocs
96Summary: Eye of MATE API documentation
97Summary(pl.UTF-8): Dokumentacja API Eye of MATE
98Group: Documentation
99Requires: gtk-doc-common
486ce032 100Obsoletes: mate-image-viewer-apidocs
76ff73c7
ER
101%if "%{_rpmversion}" >= "5"
102BuildArch: noarch
103%endif
4809533a
JB
104
105%description apidocs
106Eye of MATE API documentation.
107
108%description apidocs -l pl.UTF-8
109Dokumentacja 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
131rm -rf $RPM_BUILD_ROOT
132
133%{__make} install \
134 DESTDIR=$RPM_BUILD_ROOT
135
136%{__rm} $RPM_BUILD_ROOT%{_libdir}/eom/plugins/*.la
137
40c418d8 138%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/jv
4809533a 139
96e48035 140%find_lang eom --with-mate
4809533a
JB
141
142%clean
143rm -rf $RPM_BUILD_ROOT
144
145%post
146%glib_compile_schemas
4809533a
JB
147%update_desktop_database_post
148%update_icon_cache hicolor
149
150%postun
151%glib_compile_schemas
4809533a
JB
152%update_desktop_database_postun
153%update_icon_cache hicolor
154
155%files -f eom.lang
156%defattr(644,root,root,755)
40c418d8 157%doc AUTHORS ChangeLog NEWS README
4809533a 158%attr(755,root,root) %{_bindir}/eom
6c503448 159%{_libdir}/girepository-1.0/Eom-1.0.typelib
4809533a
JB
160%dir %{_libdir}/eom
161%dir %{_libdir}/eom/plugins
162%attr(755,root,root) %{_libdir}/eom/plugins/libfullscreen.so
163%{_libdir}/eom/plugins/fullscreen.eom-plugin
164%attr(755,root,root) %{_libdir}/eom/plugins/libreload.so
165%{_libdir}/eom/plugins/reload.eom-plugin
166%attr(755,root,root) %{_libdir}/eom/plugins/libstatusbar-date.so
167%{_libdir}/eom/plugins/statusbar-date.eom-plugin
6c503448
JB
168%{_datadir}/appdata/eom.appdata.xml
169%{_datadir}/glib-2.0/schemas/org.mate.eom.enums.xml
4809533a 170%{_datadir}/glib-2.0/schemas/org.mate.eom.gschema.xml
486ce032 171%{_datadir}/eom
4809533a
JB
172%{_desktopdir}/eom.desktop
173%{_iconsdir}/hicolor/*/apps/eom.*
174%{_mandir}/man1/eom.1*
175
176%files devel
177%defattr(644,root,root,755)
178%{_includedir}/eom-2.20
6c503448 179%{_datadir}/gir-1.0/Eom-1.0.gir
4809533a
JB
180%{_pkgconfigdir}/eom.pc
181
182%if %{with apidocs}
183%files apidocs
184%defattr(644,root,root,755)
185%{_gtkdocdir}/eom
186%endif
This page took 0.093507 seconds and 4 git commands to generate.