]> git.pld-linux.org Git - packages/eom.git/blame - eom.spec
- x32 rebuild
[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
dd24ae57 10Version: 1.8.1
a8673ffc 11Release: 2
4809533a
JB
12License: GPL v2+
13Group: X11/Applications/Graphics
486ce032 14Source0: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
dd24ae57 15# Source0-md5: 87dd1966dd9deeaaf95438a618353806
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
96e48035
JB
26%{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.18.0}
27%{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0}
4809533a
JB
28%{?with_apidocs:BuildRequires: gtk-doc >= 1.9}
29BuildRequires: intltool >= 0.40.0
96e48035 30BuildRequires: lcms2-devel >= 2
4809533a
JB
31BuildRequires: libexif-devel >= 1:0.6.14
32BuildRequires: libjpeg-devel
33BuildRequires: librsvg-devel >= 2.26.0
34BuildRequires: libtool >= 1:1.4.3
35BuildRequires: libxml2-devel >= 2.0
36BuildRequires: mate-common
37BuildRequires: mate-desktop-devel >= 1.5.0
4809533a
JB
38BuildRequires: mate-icon-theme-devel >= 1.1.0
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
52Requires(post,postun): glib2 >= 1:2.26.0
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
57Requires: glib2 >= 1:2.26.0
96e48035
JB
58%{!?with_gtk3:Requires: gtk+2 >= 2:2.18.0}
59%{?with_gtk3:Requires: gtk+3 >= 3.0.0}
4809533a
JB
60Requires: libexif >= 1:0.6.14
61Requires: librsvg >= 2.26.0
62Requires: mate-icon-theme >= 1.1.0
63Requires: shared-mime-info >= 0.20
486ce032 64Obsoletes: mate-image-viewer
4809533a
JB
65BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67%description
68Eye of MATE is a tool for viewing/cataloging images. It's a fork of
69Eye of GNOME.
70
71%description -l pl.UTF-8
72Eye of MATE (Oko MATE) jest narzędziem do oglądania i katalogowania
73obrazków. Jest to odgałęzienie programu Eye of GNOME.
74
75%description -l pt_BR.UTF-8
76Aplicativo para visualizar imagens chamado Eye of MATE.
77
78%package devel
79Summary: Header files for Eye of MATE plugins
80Summary(pl.UTF-8): Pliki nagłówkowe dla wtyczek Eye of MATE
81Group: X11/Development/Libraries
82# doesn't require base
83Requires: glib2-devel >= 1:2.26.0
84Requires: gtk+2-devel >= 2:2.18.0
486ce032 85Obsoletes: mate-image-viewer-devel
4809533a
JB
86
87%description devel
88Header files for Eye of MATE plugins.
89
90%description devel -l pl.UTF-8
91Pliki nagłówkowe dla wtyczek Eye of MATE.
92
93%package apidocs
94Summary: Eye of MATE API documentation
95Summary(pl.UTF-8): Dokumentacja API Eye of MATE
96Group: Documentation
97Requires: gtk-doc-common
486ce032 98Obsoletes: mate-image-viewer-apidocs
76ff73c7
ER
99%if "%{_rpmversion}" >= "5"
100BuildArch: noarch
101%endif
4809533a
JB
102
103%description apidocs
104Eye of MATE API documentation.
105
106%description apidocs -l pl.UTF-8
107Dokumentacja API Eye of MATE.
108
109%prep
110%setup -q
111%patch0 -p1
112
113%build
4809533a
JB
114%{?with_apidocs:%{__gtkdocize}}
115%{__intltoolize}
116%{__libtoolize}
117%{__aclocal}
118%{__automake}
119%{__autoheader}
120%{__autoconf}
121%configure \
122 --enable-gtk-doc%{!?with_apidocs:=no} \
4809533a 123 --disable-silent-rules \
96e48035 124 %{?with_gtk:--with-gtk=3.0} \
4809533a
JB
125 --with-html-dir=%{_gtkdocdir}
126%{__make}
127
128%install
129rm -rf $RPM_BUILD_ROOT
130
131%{__make} install \
132 DESTDIR=$RPM_BUILD_ROOT
133
134%{__rm} $RPM_BUILD_ROOT%{_libdir}/eom/plugins/*.la
135
136# mate < 1.5 did not exist in PLD, avoid dependency on mate-conf
137%{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/eom.convert
138
96e48035 139%find_lang eom --with-mate
4809533a
JB
140
141%clean
142rm -rf $RPM_BUILD_ROOT
143
144%post
145%glib_compile_schemas
4809533a
JB
146%update_desktop_database_post
147%update_icon_cache hicolor
148
149%postun
150%glib_compile_schemas
4809533a
JB
151%update_desktop_database_postun
152%update_icon_cache hicolor
153
154%files -f eom.lang
155%defattr(644,root,root,755)
156%doc AUTHORS ChangeLog NEWS README THANKS TODO
157%attr(755,root,root) %{_bindir}/eom
158%dir %{_libdir}/eom
159%dir %{_libdir}/eom/plugins
160%attr(755,root,root) %{_libdir}/eom/plugins/libfullscreen.so
161%{_libdir}/eom/plugins/fullscreen.eom-plugin
162%attr(755,root,root) %{_libdir}/eom/plugins/libreload.so
163%{_libdir}/eom/plugins/reload.eom-plugin
164%attr(755,root,root) %{_libdir}/eom/plugins/libstatusbar-date.so
165%{_libdir}/eom/plugins/statusbar-date.eom-plugin
166%{_datadir}/glib-2.0/schemas/org.mate.eom.gschema.xml
486ce032 167%{_datadir}/eom
4809533a
JB
168%{_desktopdir}/eom.desktop
169%{_iconsdir}/hicolor/*/apps/eom.*
170%{_mandir}/man1/eom.1*
171
172%files devel
173%defattr(644,root,root,755)
174%{_includedir}/eom-2.20
175%{_pkgconfigdir}/eom.pc
176
177%if %{with apidocs}
178%files apidocs
179%defattr(644,root,root,755)
180%{_gtkdocdir}/eom
181%endif
This page took 0.067819 seconds and 4 git commands to generate.