]> git.pld-linux.org Git - packages/eom.git/blob - eom.spec
up to 1.12.1
[packages/eom.git] / eom.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # disable API documentation
4 %bcond_with     gtk3            # use GTK+ 3.x instead of 2.x
5
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
9 Name:           eom
10 Version:        1.12.1
11 Release:        1
12 License:        GPL v2+
13 Group:          X11/Applications/Graphics
14 Source0:        http://pub.mate-desktop.org/releases/1.12/%{name}-%{version}.tar.xz
15 # Source0-md5:  b43c8ce9a7b4fc2f744fef91d2eb39ec
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
23 BuildRequires:  gdk-pixbuf2-devel >= 2.4.0
24 BuildRequires:  gettext-tools >= 0.10.40
25 BuildRequires:  glib2-devel >= 1:2.36.0
26 BuildRequires:  gobject-introspection-devel >= 0.9.3
27 %{!?with_gtk3:BuildRequires:    gtk+2-devel >= 2:2.18.0}
28 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0.0}
29 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.9}
30 BuildRequires:  intltool >= 0.50.1
31 BuildRequires:  lcms2-devel >= 2
32 BuildRequires:  libexif-devel >= 1:0.6.14
33 BuildRequires:  libjpeg-devel
34 BuildRequires:  librsvg-devel >= 2.36.2
35 BuildRequires:  libtool >= 1:1.4.3
36 BuildRequires:  libxml2-devel >= 2.0
37 BuildRequires:  mate-common
38 BuildRequires:  mate-desktop-devel >= 1.9.1
39 BuildRequires:  pkgconfig >= 1:0.9.0
40 BuildRequires:  python-devel >= 1:2.3
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
45 BuildRequires:  shared-mime-info >= 0.20
46 BuildRequires:  tar >= 1:1.22
47 BuildRequires:  xorg-lib-libX11-devel
48 BuildRequires:  xz
49 BuildRequires:  yelp-tools
50 BuildRequires:  zlib-devel
51 Requires(post,postun):  desktop-file-utils
52 Requires(post,postun):  glib2 >= 1:2.36.0
53 Requires(post,postun):  gtk-update-icon-cache
54 Requires(post,postun):  hicolor-icon-theme
55 Requires:       dbus-glib >= 0.71
56 Requires:       exempi >= 1.99.5
57 Requires:       glib2 >= 1:2.36.0
58 %{!?with_gtk3:Requires: gtk+2 >= 2:2.18.0}
59 %{?with_gtk3:Requires:  gtk+3 >= 3.0.0}
60 Requires:       libexif >= 1:0.6.14
61 Requires:       librsvg >= 2.36.2
62 Requires:       mate-desktop-libs >= 1.9.1
63 Requires:       shared-mime-info >= 0.20
64 Obsoletes:      mate-image-viewer
65 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
67 %description
68 Eye of MATE is a tool for viewing/cataloging images. It's a fork of
69 Eye of GNOME.
70
71 %description -l pl.UTF-8
72 Eye of MATE (Oko MATE) jest narzędziem do oglądania i katalogowania
73 obrazków. Jest to odgałęzienie programu Eye of GNOME.
74
75 %description -l pt_BR.UTF-8
76 Aplicativo para visualizar imagens chamado Eye of MATE.
77
78 %package devel
79 Summary:        Header files for Eye of MATE plugins
80 Summary(pl.UTF-8):      Pliki nagłówkowe dla wtyczek Eye of MATE
81 Group:          X11/Development/Libraries
82 # doesn't require base
83 Requires:       glib2-devel >= 1:2.36.0
84 %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.18.0}
85 %{?with_gtk3:Requires:  gtk+3-devel >= 3.0.0}
86 Obsoletes:      mate-image-viewer-devel
87
88 %description devel
89 Header files for Eye of MATE plugins.
90
91 %description devel -l pl.UTF-8
92 Pliki nagłówkowe dla wtyczek Eye of MATE.
93
94 %package apidocs
95 Summary:        Eye of MATE API documentation
96 Summary(pl.UTF-8):      Dokumentacja API Eye of MATE
97 Group:          Documentation
98 Requires:       gtk-doc-common
99 Obsoletes:      mate-image-viewer-apidocs
100 %if "%{_rpmversion}" >= "5"
101 BuildArch:      noarch
102 %endif
103
104 %description apidocs
105 Eye of MATE API documentation.
106
107 %description apidocs -l pl.UTF-8
108 Dokumentacja API Eye of MATE.
109
110 %prep
111 %setup -q
112 %patch0 -p1
113
114 %build
115 %{?with_apidocs:%{__gtkdocize}}
116 %{__intltoolize}
117 %{__libtoolize}
118 %{__aclocal}
119 %{__automake}
120 %{__autoheader}
121 %{__autoconf}
122 %configure \
123         --enable-gtk-doc%{!?with_apidocs:=no} \
124         --disable-silent-rules \
125         %{?with_gtk:--with-gtk=3.0} \
126         --with-html-dir=%{_gtkdocdir}
127 %{__make}
128
129 %install
130 rm -rf $RPM_BUILD_ROOT
131
132 %{__make} install \
133         DESTDIR=$RPM_BUILD_ROOT
134
135 %{__rm} $RPM_BUILD_ROOT%{_libdir}/eom/plugins/*.la
136
137 # mate < 1.5 did not exist in PLD, avoid dependency on mate-conf
138 %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/eom.convert
139
140 %find_lang eom --with-mate
141
142 %clean
143 rm -rf $RPM_BUILD_ROOT
144
145 %post
146 %glib_compile_schemas
147 %update_desktop_database_post
148 %update_icon_cache hicolor
149
150 %postun
151 %glib_compile_schemas
152 %update_desktop_database_postun
153 %update_icon_cache hicolor
154
155 %files -f eom.lang
156 %defattr(644,root,root,755)
157 %doc AUTHORS ChangeLog NEWS README THANKS TODO
158 %attr(755,root,root) %{_bindir}/eom
159 %{_libdir}/girepository-1.0/Eom-1.0.typelib
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
168 %{_datadir}/appdata/eom.appdata.xml
169 %{_datadir}/glib-2.0/schemas/org.mate.eom.enums.xml
170 %{_datadir}/glib-2.0/schemas/org.mate.eom.gschema.xml
171 %{_datadir}/eom
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
179 %{_datadir}/gir-1.0/Eom-1.0.gir
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.071324 seconds and 4 git commands to generate.