639ca11d5a8133d9336ce95bb2691065f845c7c1
[packages/eom.git] / eom.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # disable API documentation
4
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
8 Name:           eom
9 Version:        1.20.1
10 Release:        1
11 License:        GPL v2+
12 Group:          X11/Applications/Graphics
13 Source0:        http://pub.mate-desktop.org/releases/1.20/%{name}-%{version}.tar.xz
14 # Source0-md5:  684e03f79a9bfd6d0423c60a661e1049
15 URL:            http://mate-desktop.org/
16 BuildRequires:  autoconf >= 2.59
17 BuildRequires:  automake >= 1:1.9
18 BuildRequires:  dbus-glib-devel >= 0.71
19 BuildRequires:  docbook-dtd412-xml
20 BuildRequires:  exempi-devel >= 1.99.5
21 BuildRequires:  gdk-pixbuf2-devel >= 2.30.0
22 BuildRequires:  gettext-tools >= 0.10.40
23 BuildRequires:  glib2-devel >= 1:2.50.0
24 BuildRequires:  gobject-introspection-devel >= 0.9.3
25 BuildRequires:  gtk+3-devel >= 3.22
26 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.9}
27 BuildRequires:  intltool >= 0.50.1
28 BuildRequires:  lcms2-devel >= 2
29 BuildRequires:  libexif-devel >= 1:0.6.14
30 BuildRequires:  libjpeg-devel
31 BuildRequires:  libpeas-devel >= 1.2.0
32 BuildRequires:  libpeas-gtk-devel >= 1.2.0
33 BuildRequires:  librsvg-devel >= 2.36.2
34 BuildRequires:  libtool >= 1:1.4.3
35 BuildRequires:  libxml2-devel >= 2.0
36 BuildRequires:  mate-common
37 BuildRequires:  mate-desktop-devel >= 1.17.0
38 BuildRequires:  pkgconfig >= 1:0.9.0
39 BuildRequires:  python-devel >= 1:2.3
40 BuildRequires:  python-pygobject-devel >= 2.16.0
41 BuildRequires:  python-pygtk-devel >= 2:2.14.0
42 BuildRequires:  rpmbuild(find_lang) >= 1.36
43 BuildRequires:  rpmbuild(macros) >= 1.311
44 BuildRequires:  shared-mime-info >= 0.20
45 BuildRequires:  tar >= 1:1.22
46 BuildRequires:  xorg-lib-libX11-devel
47 BuildRequires:  xz
48 BuildRequires:  yelp-tools
49 BuildRequires:  zlib-devel
50 Requires(post,postun):  desktop-file-utils
51 Requires(post,postun):  glib2 >= 1:2.50.0
52 Requires(post,postun):  gtk-update-icon-cache
53 Requires(post,postun):  hicolor-icon-theme
54 Requires:       dbus-glib >= 0.71
55 Requires:       exempi >= 1.99.5
56 Requires:       gdk-pixbuf2 >= 2.30.0
57 Requires:       glib2 >= 1:2.50.0
58 Requires:       gtk+3 >= 3.22
59 Requires:       libexif >= 1:0.6.14
60 Requires:       libpeas >= 1.2.0
61 Requires:       libpeas-gtk >= 1.2.0
62 Requires:       librsvg >= 2.36.2
63 Requires:       mate-desktop-libs >= 1.17.0
64 Requires:       shared-mime-info >= 0.20
65 Obsoletes:      mate-image-viewer
66 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67
68 %description
69 Eye of MATE is a tool for viewing/cataloging images. It's a fork of
70 Eye of GNOME.
71
72 %description -l pl.UTF-8
73 Eye of MATE (Oko MATE) jest narzędziem do oglądania i katalogowania
74 obrazków. Jest to odgałęzienie programu Eye of GNOME.
75
76 %description -l pt_BR.UTF-8
77 Aplicativo para visualizar imagens chamado Eye of MATE.
78
79 %package devel
80 Summary:        Header files for Eye of MATE plugins
81 Summary(pl.UTF-8):      Pliki nagłówkowe dla wtyczek Eye of MATE
82 Group:          X11/Development/Libraries
83 # doesn't require base
84 Requires:       glib2-devel >= 1:2.50.0
85 Requires:       gtk+3-devel >= 3.22
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
113 %build
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} \
123         --disable-silent-rules \
124         --with-html-dir=%{_gtkdocdir}
125 %{__make}
126
127 %install
128 rm -rf $RPM_BUILD_ROOT
129
130 %{__make} install \
131         DESTDIR=$RPM_BUILD_ROOT
132
133 %{__rm} $RPM_BUILD_ROOT%{_libdir}/eom/plugins/*.la
134
135 # not supported by glibc yet
136 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{es_ES,frp,ku_IQ,jv,nqo,pms,ur_PK}
137
138 %find_lang eom --with-mate
139
140 %clean
141 rm -rf $RPM_BUILD_ROOT
142
143 %post
144 %glib_compile_schemas
145 %update_desktop_database_post
146 %update_icon_cache hicolor
147
148 %postun
149 %glib_compile_schemas
150 %update_desktop_database_postun
151 %update_icon_cache hicolor
152
153 %files -f eom.lang
154 %defattr(644,root,root,755)
155 %doc AUTHORS ChangeLog NEWS README
156 %attr(755,root,root) %{_bindir}/eom
157 %{_libdir}/girepository-1.0/Eom-1.0.typelib
158 %dir %{_libdir}/eom
159 %dir %{_libdir}/eom/plugins
160 %attr(755,root,root) %{_libdir}/eom/plugins/libfullscreen.so
161 %{_libdir}/eom/plugins/fullscreen.plugin
162 %attr(755,root,root) %{_libdir}/eom/plugins/libreload.so
163 %{_libdir}/eom/plugins/reload.plugin
164 %attr(755,root,root) %{_libdir}/eom/plugins/libstatusbar-date.so
165 %{_libdir}/eom/plugins/statusbar-date.plugin
166 %{_datadir}/appdata/eom.appdata.xml
167 %{_datadir}/glib-2.0/schemas/org.mate.eom.enums.xml
168 %{_datadir}/glib-2.0/schemas/org.mate.eom.gschema.xml
169 %{_datadir}/eom
170 %{_desktopdir}/eom.desktop
171 %{_iconsdir}/hicolor/*/apps/eom.*
172 %{_mandir}/man1/eom.1*
173
174 %files devel
175 %defattr(644,root,root,755)
176 %{_includedir}/eom-2.20
177 %{_datadir}/gir-1.0/Eom-1.0.gir
178 %{_pkgconfigdir}/eom.pc
179
180 %if %{with apidocs}
181 %files apidocs
182 %defattr(644,root,root,755)
183 %{_gtkdocdir}/eom
184 %endif
This page took 0.12436 seconds and 2 git commands to generate.