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