]> git.pld-linux.org Git - SPECS.git/blob - lesstif.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / lesstif.spec
1 #
2 # Conditional build:
3 %bcond_with     gnome2          # build with support for GNOME2 wm-properties
4 #
5 %define         motif_ver       2.1
6 %define         mver            %(echo %{motif_ver} | tr -d .)
7 Summary:        LessTif - source compatible library with OSF/Motif %{motif_ver}
8 Summary(es.UTF-8):      Clon de la caja de herramientas Motif
9 Summary(ja.UTF-8):      lesstif - Motif互換ツールキット
10 Summary(pl.UTF-8):      LessTif - biblioteka kompatybilna na poziomie źródeł z OSF/Motif %{motif_ver}
11 Summary(pt_BR.UTF-8):   Um clone do Motif toolkit
12 Name:           lesstif
13 Version:        0.95.2
14 Release:        2
15 License:        LGPL v2+
16 Group:          X11/Libraries
17 Source0:        http://downloads.sourceforge.net/lesstif/%{name}-%{version}.tar.bz2
18 # Source0-md5:  754187dbac09fcf5d18296437e72a32f
19 Source1:        Mwm.desktop
20 Source2:        mwmrc
21 Source5:        mwm-xsession.desktop
22 Patch0:         %{name}-link.patch
23 Patch1:         %{name}-ac.patch
24 Patch2:         %{name}-libdir.patch
25 Patch3:         %{name}-lt_fix.patch
26 URL:            http://lesstif.sourceforge.net/
27 BuildRequires:  autoconf >= 2.59
28 BuildRequires:  automake
29 BuildRequires:  bison
30 BuildRequires:  flex
31 BuildRequires:  libtool
32 BuildRequires:  lynx
33 BuildRequires:  xorg-lib-libXp-devel
34 BuildRequires:  xorg-lib-libXt-devel >= 1.0.0
35 %if %{mver} >= 20
36 BuildRequires:  fontconfig-devel
37 BuildRequires:  freetype-devel >= 2.1.0
38 BuildRequires:  xorg-lib-libXft-devel
39 BuildRequires:  xorg-lib-libXrender-devel
40 %endif
41 Requires:       xorg-lib-libXt >= 1.0.0
42 Provides:       motif = %{motif_ver}
43 Obsoletes:      lesstif-M12
44 Obsoletes:      lesstif-M20
45 %if %{mver} >= 20
46 # openmotif used to provide library version 2.1, so there would be conflicts
47 Obsoletes:      openmotif < 2.2
48 Obsoletes:      openmotif-libs < 2.2
49 %endif
50 Conflicts:      filesystem < 3.0-20
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
53 %define         _wmpropsdir     /usr/share/gnome/wm-properties
54 %define         _appdefsdir     /usr/share/X11/app-defaults
55
56 %description
57 Lesstif is an API compatible clone of the Motif %{motif_ver} toolkit.
58 Currently Lesstif is partially implemented with most of the API in
59 place. Saying this a lot of the internal functionality is still
60 missing. The primary objectives have been to develop the widget code
61 of the Lesstif Toolkit.
62
63 %description -l es.UTF-8
64 Clon de la caja de herramientas Motif.
65
66 %description -l ja.UTF-8
67 Lesstifは、MotifツールキットとAPIレベルの互換性をもつツールキットです。
68 現在のLesstifは、ほとんどのAPIを実装していますが、一部の内部関数は
69 まだ実装されていません。多くのMotifアプリケーションはLesstifを使って
70 コンパイル及び実行することができます。
71
72 %description -l pl.UTF-8
73 Lesstif jest biblioteką kompatybilną z API Motif %{motif_ver}.
74 Aktualnie implementacja jest częściowa, większość API istnieje, ale
75 spora część funkcjonalności wewnętrznej jest nie dokończona.
76
77 %description -l pt_BR.UTF-8
78 O Lesstif é um clone do Motif, com a API compatível.
79
80 %package mwm
81 Summary:        Lesstif (Motif) window manager clone based on fvwm
82 Summary(ja.UTF-8):      fvwmをベースにしたMotifウインドウマネージャ
83 Summary(pl.UTF-8):      Zarządca okien oparty na fvwm, ale korzystający z Lesstifa (Motifa)
84 License:        GPL
85 Group:          X11/Window Managers
86 Requires:       %{name} = %{version}-%{release}
87 Obsoletes:      openmotif-mwm
88
89 %description mwm
90 A BETA release of mwm. It is derived from fvwm, with a new parser that
91 understands mwmrc syntax, and a general understanding of Mwm
92 resources.
93
94 %description mwm -l es.UTF-8
95 MWM es un administrador de ventanas que adhiere ampliamente a la
96 especificación Motif.
97
98 %description mwm -l ja.UTF-8
99 MWMは、Motifのmwmスペックに準拠したウインドウマネージャです。
100
101 %description mwm -l pl.UTF-8
102 Wersja BETA mwm. Wywodzi się z fvwm, a z nowym parserem rozumiejącym
103 składnię mwmrc i zasoby Mwm.
104
105 %description mwm -l pt_BR.UTF-8
106 O MWM é um gerenciador de janelas que adere largamente à especificação
107 Motif.
108
109 %package clients
110 Summary:        Lesstif clients
111 Summary(ja.UTF-8):      lesstifクライアント
112 Summary(pl.UTF-8):      Programy klienckie do Lesstifa
113 License:        GPL
114 Group:          X11/Applications
115 Requires:       %{name} = %{version}-%{release}
116 Obsoletes:      openmotif-clients
117
118 %description clients
119 Uil and xmbind.
120
121 %description clients -l es.UTF-8
122 Clientes de lesstif.
123
124 %description clients -l ja.UTF-8
125 Uilとxmbind
126
127 %description clients -l pl.UTF-8
128 Uil i xmbind.
129
130 %description clients -l pt_BR.UTF-8
131 lesstiff: Uil e xmbind.
132
133 %package devel
134 Summary:        Header files for Lesstif/Motif %{motif_ver} development
135 Summary(es.UTF-8):      Bibliotecas y archivos de inclusión para desarrollo del lesstif
136 Summary(pl.UTF-8):      Pliki nagłówkowe do API Lesstif/Motif %{motif_ver}
137 Summary(pt_BR.UTF-8):   Bibliotecas e arquivos de inclusão para desenvolvimentos com o lesstif
138 Group:          X11/Development/Libraries
139 Requires:       %{name} = %{version}-%{release}
140 Requires:       xorg-lib-libX11-devel
141 Requires:       xorg-lib-libXt-devel >= 1.0.0
142 Requires:       xorg-proto-xproto-devel
143 Requires:       xorg-proto-printproto-devel
144 Provides:       motif-devel = %{motif_ver}
145 Obsoletes:      openmotif-devel
146 Conflicts:      tcl-devel < 8.3.4-8
147
148 %description devel
149 This package contains the lesstif header files required to develop
150 Motif %{motif_ver} based applications.
151
152 %description devel -l es.UTF-8
153 Bibliotecas y archivos de inclusión que se requieren para desarrollar
154 aplicaciones basadas en lesstif/motif-%{motif_ver}.
155
156 %description devel -l pl.UTF-8
157 Pakiet zawiera pliki nagłówkowe potrzebne do kompilacji aplikacji
158 opartych o Motif %{motif_ver}.
159
160 %description devel -l pt_BR.UTF-8
161 Bibliotecas e arquivos de inclusão requeridas para desenvolver
162 aplicações baseadas no lesstif/motif-%{motif_ver}.
163
164 %package static
165 Summary:        Static Lesstif library
166 Summary(es.UTF-8):      Bibliotecas para lesstif en versión estática
167 Summary(pl.UTF-8):      Biblioteki statyczne Lesstifa
168 Summary(pt_BR.UTF-8):   Bibliotecas para o lesstif em versão estática
169 Group:          X11/Development/Libraries
170 Requires:       %{name}-devel = %{version}-%{release}
171 Provides:       motif-static
172 Obsoletes:      openmotif-static
173
174 %description static
175 This package contains the lesstif static libraries.
176
177 %description static -l es.UTF-8
178 Bibliotecas para lesstif en versión estática.
179
180 %description static -l pl.UTF-8
181 Biblioteki statyczne Lesstifa.
182
183 %description static -l pt_BR.UTF-8
184 Bibliotecas para o lesstif em versão estática.
185
186 %prep
187 %setup -q
188 %patch0 -p1
189 %patch1 -p1
190 %patch2 -p1
191 %patch3 -p1
192
193 ln -sf ../acinclude.m4 test/acinclude.m4
194
195 %build
196 %{__libtoolize}
197 %{__aclocal} -I .
198 %{__autoconf}
199 %{__automake}
200 cd test
201 %{__aclocal} -I ..
202 %{__autoconf}
203 # -f must not be used here
204 automake -a -c --foreign
205 cd ..
206
207 # --x-includes is needed to detect Xft headers
208 %configure \
209         --enable-shared \
210         --enable-static \
211         --enable-production \
212         --disable-debug \
213         --disable-scrollbar-verbose \
214         --with-editres \
215         --with-xdnd \
216         --disable-build-12 \
217         --disable-build-20 \
218         --disable-build-21 \
219         --enable-build-%(echo %{motif_ver} | sed s/\\.//) \
220         --x-includes=/usr/include
221
222 %{__make} \
223         mwmddir=%{_sysconfdir}/X11/mwm
224
225 %install
226 rm -rf $RPM_BUILD_ROOT
227 install -d $RPM_BUILD_ROOT%{_sysconfdir}/X11/mwm \
228         $RPM_BUILD_ROOT{%{_aclocaldir},%{_datadir}/xsessions,%{_wmpropsdir}}
229
230 %{__make} install \
231         DESTDIR=$RPM_BUILD_ROOT \
232         mwmddir=%{_sysconfdir}/X11/mwm \
233         appdir=%{_appdefsdir} \
234         htmldir=/htmldoc
235
236 %{__mv} $RPM_BUILD_ROOT/htmldoc .
237
238 %{__rm} doc/www.lesstif.org/INSTALL.html
239
240 # workaround - configure decides not to install *.m4 if aclocaldir is not writable
241 cp -p scripts/autoconf/ac_find_motif.m4 $RPM_BUILD_ROOT%{_aclocaldir}
242
243 %{?with_gnome2:cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}}
244 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/mwm/system.mwmrc
245 cp -p %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/mwm.desktop
246
247 # documentation packaged as %doc
248 %{__rm} -r $RPM_BUILD_ROOT%{_prefix}/LessTif
249 # non-existing utility
250 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/ltversion.1
251
252 %clean
253 rm -rf $RPM_BUILD_ROOT
254
255 %post   -p /sbin/ldconfig
256 %postun -p /sbin/ldconfig
257
258 %post mwm
259 if [ -L %{_sysconfdir}/X11/mwm ]; then
260         rm -rf %{_sysconfdir}/X11/mwm
261         rm -rf %{_libdir}/X11/mwm/*
262 fi
263
264 %files
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_libdir}/libMrm.so.*.*
267 %attr(755,root,root) %ghost %{_libdir}/libMrm.so.2
268 %attr(755,root,root) %{_libdir}/libUil.so.*.*
269 %attr(755,root,root) %ghost %{_libdir}/libUil.so.2
270 %attr(755,root,root) %{_libdir}/libXm.so.*.*
271 %attr(755,root,root) %ghost %{_libdir}/libXm.so.2
272 %if %{mver} >= 21
273 %attr(755,root,root) %{_libdir}/libDtPrint.so.*.*
274 %attr(755,root,root) %ghost %{_libdir}/libDtPrint.so.1
275 %endif
276 %{_mandir}/man1/lesstif.1*
277
278 %files mwm
279 %defattr(644,root,root,755)
280 %doc clients/Motif-%{motif_ver}/mwm/README*
281 %dir %{_sysconfdir}/X11/mwm
282 %{?with_gnome2:%{_wmpropsdir}/Mwm.desktop}
283 %{_sysconfdir}/X11/mwm/README
284 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/mwm/alt.map
285 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/mwm/system.mwmrc
286 %attr(755,root,root) %{_bindir}/mwm
287
288 %{_datadir}/xsessions/mwm.desktop
289
290 %{_appdefsdir}/Mwm
291
292 %{_mandir}/man1/mwm.1*
293 %{_mandir}/man5/mwmrc.5*
294
295 %files clients
296 %defattr(644,root,root,755)
297 %doc doc/UIL.txt*
298 %attr(755,root,root) %{_bindir}/uil
299 %attr(755,root,root) %{_bindir}/xmbind
300 %{_mandir}/man1/uil.1*
301 %{_mandir}/man1/xmbind.1*
302 %{_mandir}/man5/VirtualBindings.5*
303
304 %files devel
305 %defattr(644,root,root,755)
306 %doc AUTHORS BUG-REPORTING CREDITS ChangeLog NEWS README ReleaseNotes.txt
307 %doc doc/*.txt* doc/*.html doc/www.lesstif.org/{images/*png,*html} htmldoc/*
308 %attr(755,root,root) %{_bindir}/motif-config
309 %attr(755,root,root) %{_bindir}/mxmkmf
310 %attr(755,root,root) %{_libdir}/libMrm.so
311 %attr(755,root,root) %{_libdir}/libUil.so
312 %attr(755,root,root) %{_libdir}/libXm.so
313 %{_libdir}/libMrm.la
314 %{_libdir}/libUil.la
315 %{_libdir}/libXm.la
316 %{_libdir}/LessTif
317 %{_includedir}/Mrm
318 %{_includedir}/Xm
319 %{_includedir}/uil
320
321 %if %{mver} >= 21
322 %attr(755,root,root) %{_libdir}/libDtPrint.so
323 %{_libdir}/libDtPrint.la
324 %{_includedir}/Dt
325 %endif
326
327 %{_aclocaldir}/ac_find_motif.m4
328
329 %{_mandir}/man3/ApplicationShell.3*
330 %{_mandir}/man3/Composite.3*
331 %{_mandir}/man3/Constraint.3*
332 %{_mandir}/man3/Core.3*
333 %{_mandir}/man3/LessTifInternals.3*
334 %{_mandir}/man3/Object.3*
335 %{_mandir}/man3/OverrideShell.3*
336 %{_mandir}/man3/Rect.3*
337 %{_mandir}/man3/Shell.3*
338 %{_mandir}/man3/TopLevelShell.3*
339 %{_mandir}/man3/TransientShell.3*
340 %{_mandir}/man3/UnNamedObj.3*
341 %{_mandir}/man3/VendorShell.3*
342 %{_mandir}/man3/WmShell.3*
343 %{_mandir}/man3/Xm*.3*
344
345 %files static
346 %defattr(644,root,root,755)
347 %{_libdir}/libMrm.a
348 %{_libdir}/libUil.a
349 %{_libdir}/libXm.a
350 %if %{mver} >= 21
351 %{_libdir}/libDtPrint.a
352 %endif
This page took 0.984998 seconds and 3 git commands to generate.