]> git.pld-linux.org Git - SPECS.git/blob - mate-character-map.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / mate-character-map.spec
1 #
2 # Conditional build:
3 %bcond_with     gtk3            # use GTK+ 3.x instead of 2.x
4 %bcond_with     static_libs     # static library
5 #
6 Summary:        Unicode character map (MATE version)
7 Summary(pl.UTF-8):      Mapa znaków unikodowych (wersja dla MATE)
8 Name:           mate-character-map
9 Version:        1.6.0
10 Release:        1
11 License:        GPL v3+
12 Group:          X11/Applications
13 Source0:        http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz
14 # Source0-md5:  3ce6af1f3d359e595c2f842acf9237b8
15 Patch0:         %{name}-doc.patch
16 Patch1:         %{name}-python.patch
17 URL:            http://mate-desktop.org/
18 BuildRequires:  autoconf >= 2.56
19 BuildRequires:  automake >= 1:1.9
20 BuildRequires:  docbook-dtd412-xml
21 BuildRequires:  gettext-tools
22 BuildRequires:  glib2-devel >= 1:2.26.0
23 BuildRequires:  gnome-doc-utils >= 0.12.2
24 BuildRequires:  gobject-introspection-devel >= 0.10.0
25 %{!?with_gtk3:BuildRequires:    gtk+2-devel >= 2:2.14.0}
26 %{?with_gtk3:BuildRequires:     gtk+3-devel >= 3.0.0}
27 BuildRequires:  gtk-doc >= 1.0
28 BuildRequires:  intltool >= 0.40.0
29 BuildRequires:  libtool
30 BuildRequires:  libxml2-progs
31 BuildRequires:  mate-common
32 BuildRequires:  mate-doc-utils >= 0.9.0
33 BuildRequires:  pkgconfig
34 %{!?with_gtk3:BuildRequires:    python-devel >= 1:2.4}
35 %{!?with_gtk3:BuildRequires:    python-pygtk-devel >= 2:2.7.1}
36 BuildRequires:  rpmbuild(find_lang) >= 1.36
37 BuildRequires:  rpmbuild(macros) >= 1.311
38 BuildRequires:  tar >= 1:1.22
39 BuildRequires:  xz
40 Requires(post,postun):  glib2 >= 1:2.26.0
41 Requires(post,postun):  scrollkeeper
42 Requires:       %{name}-libs = %{version}-%{release}
43 Conflicts:      mucharmap
44 # sr@Latn vs. sr@latin
45 Conflicts:      glibc-misc < 6:2.7
46 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
48 %description
49 Mucharmap is a featureful unicode character map. It's a fork of
50 gucharmap.
51
52 %description -l pl.UTF-8
53 Mucharmap jest wartościową mapą znaków unikodowych. Jest to
54 odgałęzienie pakietu gucharmap.
55
56 %package libs
57 Summary:        mucharmap library for MATE
58 Summary(pl.UTF-8):      Biblioteka mucharmap dla MATE
59 Group:          X11/Libraries
60 Requires:       glib2 >= 1:2.26.0
61 %{!?with_gtk3:Requires: gtk+2 >= 2:2.14.0}
62 %{?with_gtk3:Requires:  gtk+3 >= 3.0.0}
63
64 %description libs
65 This package contains mucharmap library.
66
67 %description libs -l pl.UTF-8
68 Pakiet ten zawiera bibliotekę mucharmap.
69
70 %package devel
71 Summary:        Headers for mucharmap
72 Summary(pl.UTF-8):      Pliki nagłówkowe mucharmap
73 Group:          X11/Development/Libraries
74 Requires:       %{name}-libs = %{version}-%{release}
75 Requires:       glib2-devel >= 1:2.26.0
76 %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.14.0}
77 %{?with_gtk3:Requires:  gtk+3-devel >= 3.0.0}
78
79 %description devel
80 The mucharmap-devel package includes the header files that you will
81 need to use mucharmap.
82
83 %description devel -l pl.UTF-8
84 Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilacji programów
85 używających mucharmap.
86
87 %package static
88 Summary:        Static mucharmap library
89 Summary(pl.UTF-8):      Statyczna biblioteka mucharmap
90 Group:          X11/Development/Libraries
91 Requires:       %{name}-devel = %{version}-%{release}
92
93 %description static
94 Static version of mucharmap library.
95
96 %description static -l pl.UTF-8
97 Statyczna wersja biblioteki mucharmap.
98
99 %package apidocs
100 Summary:        mucharmap library API documentation
101 Summary(pl.UTF-8):      Dokumentacja API biblioteki mucharmap
102 Group:          Documentation
103 Requires:       gtk-doc-common
104
105 %description apidocs
106 mucharmap library API documentation.
107
108 %description apidocs -l pl.UTF-8
109 Dokumentacja API biblioteki mucharmap.
110
111 %package -n python-mucharmap
112 Summary:        Python binding for mucharmap library
113 Summary(pl.UTF-8):      Wiązanie Pythona do biblioteki mucharmap
114 Group:          Libraries/Python
115 Requires:       %{name} = %{version}-%{release}
116 Requires:       python-pygtk-gtk >= 2:2.7.1
117
118 %description -n python-mucharmap
119 Python binding for mucharmap library.
120
121 %description -n python-mucharmap -l pl.UTF-8
122 Wiązanie Pythona do biblioteki mucharmap.
123
124 %package -n python-mucharmap-devel
125 Summary:        Development files for mucharmap Python binding
126 Summary(pl.UTF-8):      Pliki programistyczne wiązania Pythona do biblioteki mucharmap
127 Group:          Development/Libraries
128 Requires:       %{name}-devel = %{version}-%{release}
129 Requires:       python-pygtk-devel >= 2:2.7.1
130
131 %description -n python-mucharmap-devel
132 Development files for mucharmap Python binding.
133
134 %description -n python-mucharmap-devel -l pl.UTF-8
135 Pliki programistyczne wiązania Pythona do biblioteki mucharmap.
136
137 %prep
138 %setup -q
139 %patch0 -p1
140 %patch1 -p1
141
142 %build
143 mate-doc-prepare --copy --force
144 %{__gtkdocize}
145 %{__glib_gettextize}
146 %{__intltoolize}
147 %{__libtoolize}
148 %{__aclocal} -I m4
149 %{__autoconf}
150 %{__autoheader}
151 %{__automake}
152 %configure \
153         --disable-scrollkeeper \
154         --disable-silent-rules \
155         --enable-gtk-doc \
156         --enable-introspection \
157         --enable-python-bindings \
158         %{!?with_static_libs:--disable-static} \
159         %{?with_gtk3:--with-gtk=3.0} \
160         --with-html-dir=%{_gtkdocdir}
161 %{__make}
162
163 %install
164 rm -rf $RPM_BUILD_ROOT
165
166 %{__make} install \
167         DESTDIR=$RPM_BUILD_ROOT
168
169 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
170 %if %{without gtk3}
171 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/*.la
172 %if %{with static_libs}
173 %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/*.a
174 %endif
175 %endif
176
177 %find_lang mucharmap --with-mate --with-omf
178
179 %clean
180 rm -rf $RPM_BUILD_ROOT
181
182 %post
183 %glib_compile_schemas
184 %scrollkeeper_update_post
185
186 %postun
187 %glib_compile_schemas
188 %scrollkeeper_update_postun
189
190 %post   libs -p /sbin/ldconfig
191 %postun libs -p /sbin/ldconfig
192
193 %files -f mucharmap.lang
194 %defattr(644,root,root,755)
195 %doc AUTHORS COPYING.UNICODE ChangeLog NEWS README TODO
196 %attr(755,root,root) %{_bindir}/mucharmap
197 %attr(755,root,root) %{_bindir}/mate-character-map
198 %{_datadir}/glib-2.0/schemas/org.mate.mucharmap.*.xml
199 %{_desktopdir}/mucharmap.desktop
200
201 %files libs
202 %defattr(644,root,root,755)
203 %if %{with gtk3}
204 %attr(755,root,root) %{_libdir}/libmucharmap-2.90.so.*.*.*
205 %attr(755,root,root) %ghost %{_libdir}/libmucharmap-2.90.so.7
206 %{_libdir}/girepository-1.0/Mucharmap-2.90.typelib
207 %else
208 %attr(755,root,root) %{_libdir}/libmucharmap.so.*.*.*
209 %attr(755,root,root) %ghost %{_libdir}/libmucharmap.so.7
210 %{_libdir}/girepository-1.0/Mucharmap-2.0.typelib
211 %endif
212
213 %files devel
214 %defattr(644,root,root,755)
215 %if %{with gtk3}
216 %attr(755,root,root) %{_libdir}/libmucharmap-2.90.so
217 %{_includedir}/mucharmap-2.90
218 %{_pkgconfigdir}/mucharmap-2.90.pc
219 %{_datadir}/gir-1.0/Mucharmap-2.90.gir
220 %else
221 %attr(755,root,root) %{_libdir}/libmucharmap.so
222 %{_includedir}/mucharmap-2.0
223 %{_pkgconfigdir}/mucharmap-2.pc
224 %{_datadir}/gir-1.0/Mucharmap-2.0.gir
225 %endif
226
227 %if %{with static_libs}
228 %files static
229 %defattr(644,root,root,755)
230 %if %{with gtk3}
231 %{_libdir}/libmucharmap-2.90.a
232 %else
233 %{_libdir}/libmucharmap.a
234 %endif
235 %endif
236
237 %files apidocs
238 %defattr(644,root,root,755)
239 %if %{with gtk3}
240 %{_gtkdocdir}/mucharmap-2.90
241 %else
242 %{_gtkdocdir}/mucharmap-2.0
243 %endif
244
245 %if %{without gtk3}
246 %files -n python-mucharmap
247 %defattr(644,root,root,755)
248 %attr(755,root,root) %{py_sitedir}/gtk-2.0/mucharmap.so
249
250 %files -n python-mucharmap-devel
251 %defattr(644,root,root,755)
252 %{_datadir}/pygtk/2.0/defs/mucharmap.defs
253 %endif
This page took 0.20159 seconds and 3 git commands to generate.