]> git.pld-linux.org Git - packages/motif.git/blob - motif.spec
8938c4d825213083b8d9509a8eff3b60d6fa3c04
[packages/motif.git] / motif.spec
1 #
2 # WARNING: BETA versions of motif/openmotif are using higher soname
3 # than STABLE one so please don't use beta versions here because
4 # when stable version somes out everything would need to be recompiled
5 # using ,,stable soname''. Check out CURRENT= in configure.{in,ac}.
6 #
7 Summary:        Motif toolkit
8 Summary(pl.UTF-8):      Toolkit Motif
9 Name:           motif
10 Version:        2.3.4
11 Release:        3
12 License:        LGPL v2.1
13 Group:          X11/Libraries
14 Source0:        http://downloads.sourceforge.net/motif/%{name}-%{version}-src.tgz
15 # Source0-md5:  612bb8127d0d31da6e5474edf8a5c247
16 Source2:        mwmrc
17 Source5:        mwm-xsession.desktop
18 Source6:        ac_find_%{name}.m4
19 Patch0:         %{name}-makedepend.patch
20 Patch1:         %{name}-mwmrc.patch
21 Patch2:         %{name}-bison.patch
22 Patch3:         %{name}-freetype.patch
23 Patch4:         %{name}-parbuild.patch
24 Patch5:         format-security.patch
25 URL:            http://motif.ics.com/
26 BuildRequires:  autoconf >= 2.59-9
27 BuildRequires:  automake
28 BuildRequires:  bison
29 BuildRequires:  flex
30 BuildRequires:  fontconfig-devel
31 BuildRequires:  freetype-devel
32 BuildRequires:  libjpeg-devel
33 BuildRequires:  libpng-devel >= 2:1.4.0
34 BuildRequires:  libtool
35 BuildRequires:  libuuid-devel
36 BuildRequires:  pkgconfig
37 BuildRequires:  xorg-data-xbitmaps
38 BuildRequires:  xorg-lib-libX11-devel
39 BuildRequires:  xorg-lib-libXext-devel
40 BuildRequires:  xorg-lib-libXft-devel
41 BuildRequires:  xorg-lib-libXmu-devel
42 BuildRequires:  xorg-lib-libXp-devel
43 BuildRequires:  xorg-lib-libXt-devel
44 Requires:       %{name}-libs = %{version}-%{release}
45 Obsoletes:      lesstif
46 Obsoletes:      openmotif < 2.3.4-1
47 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
48
49 %define         specflags       -fno-strict-aliasing
50
51 %define         xbitmapsdir     %{_includedir}/X11/bitmaps
52 %define         xlibdir         %{_libdir}/X11
53
54 %description
55 Motif is the user interface standart in the Enterprise for
56 applications that run on UNIX platforms for Sun, HP, IBM, Compaq, SGI,
57 and others.
58
59 %description -l pl.UTF-8
60 Motif jest standardem wyglądu interfejsu graficznego dla aplikacji
61 działających w środowiskach UNIX takich jak Sun, HP, IBM, Compaq, SGI
62 i inne.
63
64 %package clients
65 Summary:        Motif clients
66 Summary(pl.UTF-8):      Motif - programy klienckie
67 Group:          X11/Applications
68 Requires:       %{name} = %{version}-%{release}
69 Obsoletes:      lesstif-clients
70 Obsoletes:      openmotif-clients < 2.3.4-1
71
72 %description clients
73 Motif clients: uil and xmbind.
74
75 %description clients -l pl.UTF-8
76 Programy klienckie dla Motifa: uil i xmbind.
77
78 %package libs
79 Summary:        Motif shared libraries
80 Summary(pl.UTF-8):      Biblioteki współdzielone Motifa
81 Group:          Libraries
82 Obsoletes:      openmotif-libs < 2.3.4-1
83
84 %description libs
85 Motif shared libraries.
86
87 %description libs -l pl.UTF-8
88 Biblioteki współdzielone Motifa.
89
90 %package devel
91 Summary:        Header files for Motif libraries
92 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek Motif
93 Group:          X11/Development/Libraries
94 Requires:       %{name}-libs = %{version}-%{release}
95 Requires:       xorg-lib-libX11-devel
96 Requires:       xorg-lib-libXft-devel
97 Requires:       xorg-lib-libXmu-devel
98 Requires:       xorg-lib-libXp-devel
99 Requires:       xorg-lib-libXt-devel
100 Obsoletes:      lesstif-devel
101 Obsoletes:      openmotif-devel < 2.3.4-1
102
103 %description devel
104 Header files for Motif libraries.
105
106 %description devel -l pl.UTF-8
107 Pliki nagłówkowe bibliotek Motif.
108
109 %package static
110 Summary:        Motif static libraries
111 Summary(pl.UTF-8):      Statyczne biblioteki Motifa
112 Group:          X11/Development/Libraries
113 Requires:       %{name}-devel = %{version}-%{release}
114 Obsoletes:      lesstif-static
115 Obsoletes:      openmotif-static < 2.3.4-1
116
117 %description static
118 Motif static libraries.
119
120 %description static -l pl.UTF-8
121 Biblioteki statyczne Motifa.
122
123 %package demos
124 Summary:        Motif demos
125 Summary(pl.UTF-8):      Programy demonstracyjne do Motifa
126 Group:          X11/Development/Libraries
127 Requires:       %{name}-devel = %{version}-%{release}
128 Obsoletes:      openmotif-demos < 2.3.4-1
129
130 %description demos
131 Motif demos.
132
133 %description demos -l pl.UTF-8
134 Programy demonstracyjne do Motifa.
135
136 %package mwm
137 Summary:        Motif window manager
138 Summary(pl.UTF-8):      Motifowy zarządca okien
139 Group:          X11/Window Managers
140 Requires:       %{name} = %{version}-%{release}
141 Obsoletes:      lesstif-mwm
142 Obsoletes:      openmotif-mwm < 2.3.4-1
143
144 %description mwm
145 A BETA release of mwm. It is derived from fvwm, with a new parser that
146 understands mwmrc syntax, and a general understanding of Mwm
147 resources.
148
149 %description mwm -l pl.UTF-8
150 Wersja BETA mwm. Pochodzi z fvwm, ma nowy parser rozumiejący składnię
151 mwmrc oraz zasoby Mwm.
152
153 %package compat
154 Summary:        Fake Motif compat libraries
155 Summary(pl.UTF-8):      Dowiązania udające biblioteki kompatybilności Motif
156 Group:          Libraries
157 Requires:       %{name}-libs = %{version}-%{release}
158 %ifarch %{x8664} ia64 ppc64 s390x sparc64
159 Provides:       libXm.so.1()(64bit)
160 Provides:       libXm.so.2()(64bit)
161 Provides:       libXm.so.3()(64bit)
162 %else
163 Provides:       libXm.so.1
164 Provides:       libXm.so.2
165 Provides:       libXm.so.3
166 %endif
167
168 %description compat
169 Fake Motif/OpenMotif compat libraries (symlinks to current libXm
170 library, _some_ old programs may work with them).
171
172 %description compat -l pl.UTF-8
173 Dowiązania udające biblioteki kompatybilności Motif/OpenMotif
174 (dowiązania symboliczne do nowej wersji biblioteki libXm, _niektóre_
175 stare programy mogą z nimi działać).
176
177 %prep
178 %setup -q
179 %patch0 -p1
180 %patch1 -p1
181 %patch2 -p1
182 %patch3 -p1
183 %patch4 -p1
184 %patch5 -p1
185
186 %build
187 %{__libtoolize}
188 %{__aclocal} -I .
189 %{__autoconf}
190 %{__autoheader}
191 %{__automake}
192 %{__autoconf}
193
194 %configure \
195         --enable-shared \
196         --enable-static \
197         --enable-themes \
198         --enable-xft \
199         --enable-jpeg \
200         --enable-png \
201         --with-fontconfig-config="pkg-config fontconfig"
202
203 %{__make} clean
204 %{__make}
205
206 %install
207 rm -rf $RPM_BUILD_ROOT
208 install -d $RPM_BUILD_ROOT{%{_examplesdir}/motif,%{_datadir}/xsessions} \
209         $RPM_BUILD_ROOT{/etc/X11/mwm,%{_aclocaldir}}
210
211 %{__make} install \
212         DESTDIR=$RPM_BUILD_ROOT \
213         bmdir=%{xbitmapsdir} \
214         bindir=%{_bindir} \
215         binddir=%{xlibdir}/bindings
216
217 cd demos
218 # breaks -bi --short-circuit !
219 %{__make} clean
220 cp -a * $RPM_BUILD_ROOT%{_examplesdir}/motif
221 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/Xm
222 cd ..
223 mv -f $RPM_BUILD_ROOT%{_bindir}/{,motif-}column
224 mv -f $RPM_BUILD_ROOT%{_bindir}/{,motif-}tree
225
226 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/mwm/system.mwmrc
227
228 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/mwm.desktop
229 install %{SOURCE6} $RPM_BUILD_ROOT%{_aclocaldir}
230
231 cd $RPM_BUILD_ROOT%{_libdir}
232 ln -sf libXm.so.*.*.* libXm.so.3
233 ln -sf libXm.so.*.*.* libXm.so.2
234 ln -sf libXm.so.*.*.* libXm.so.1
235
236 %clean
237 rm -rf $RPM_BUILD_ROOT
238
239 %post   libs    -p /sbin/ldconfig
240 %postun libs    -p /sbin/ldconfig
241
242 %files
243 %defattr(644,root,root,755)
244 %doc BUGREPORT ChangeLog README RELNOTES
245 %{xbitmapsdir}/xm_*
246 %{xlibdir}/bindings
247
248 %files clients
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_bindir}/uil
251 %attr(755,root,root) %{_bindir}/xmbind
252 %{_mandir}/man1/uil.1*
253 %{_mandir}/man1/xmbind.1*
254
255 %files libs
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_libdir}/libMrm.so.*.*.*
258 %attr(755,root,root) %ghost %{_libdir}/libMrm.so.4
259 %attr(755,root,root) %{_libdir}/libUil.so.*.*.*
260 %attr(755,root,root) %ghost %{_libdir}/libUil.so.4
261 %attr(755,root,root) %{_libdir}/libXm.so.*.*.*
262 %attr(755,root,root) %ghost %{_libdir}/libXm.so.4
263
264 %files devel
265 %defattr(644,root,root,755)
266 %attr(755,root,root) %{_libdir}/libMrm.so
267 %attr(755,root,root) %{_libdir}/libUil.so
268 %attr(755,root,root) %{_libdir}/libXm.so
269 %{_libdir}/libMrm.la
270 %{_libdir}/libUil.la
271 %{_libdir}/libXm.la
272 %{_includedir}/Mrm
273 %{_includedir}/Xm
274 %{_includedir}/uil
275 %{_mandir}/man3/ApplicationShell.3*
276 %{_mandir}/man3/Composite.3*
277 %{_mandir}/man3/Constraint.3*
278 %{_mandir}/man3/Core.3*
279 %{_mandir}/man3/Mrm*.3*
280 %{_mandir}/man3/Object.3*
281 %{_mandir}/man3/OverrideShell.3*
282 %{_mandir}/man3/RectObj.3*
283 %{_mandir}/man3/Shell.3*
284 %{_mandir}/man3/TopLevelShell.3*
285 %{_mandir}/man3/TransientShell.3*
286 %{_mandir}/man3/Uil.3*
287 %{_mandir}/man3/UilDumpSymbolTable.3*
288 %{_mandir}/man3/VendorShell.3*
289 %{_mandir}/man3/VirtualBindings.3*
290 %{_mandir}/man3/WMShell.3*
291 %{_mandir}/man3/Xm*.3*
292 # should be man7?
293 %{_mandir}/man5/Traits.5*
294 %{_mandir}/man5/UIL.5*
295 %{_mandir}/man5/WML.5*
296 %{_aclocaldir}/ac_find_motif.m4
297
298 %files static
299 %defattr(644,root,root,755)
300 %{_libdir}/libMrm.a
301 %{_libdir}/libUil.a
302 %{_libdir}/libXm.a
303
304 %files demos
305 %defattr(644,root,root,755)
306 %attr(755,root,root) %{_bindir}/DNDDemo
307 %attr(755,root,root) %{_bindir}/airport
308 %attr(755,root,root) %{_bindir}/autopopups
309 %attr(755,root,root) %{_bindir}/bboxdemo
310 %attr(755,root,root) %{_bindir}/colordemo
311 %attr(755,root,root) %{_bindir}/motif-column
312 %attr(755,root,root) %{_bindir}/combo
313 %attr(755,root,root) %{_bindir}/draw
314 %attr(755,root,root) %{_bindir}/earth
315 %attr(755,root,root) %{_bindir}/ext18list
316 %attr(755,root,root) %{_bindir}/filemanager
317 %attr(755,root,root) %{_bindir}/fileview
318 %attr(755,root,root) %{_bindir}/fontsel
319 %attr(755,root,root) %{_bindir}/getsubres
320 %attr(755,root,root) %{_bindir}/helloint
321 %attr(755,root,root) %{_bindir}/hellomotif
322 %attr(755,root,root) %{_bindir}/i18ninput
323 %attr(755,root,root) %{_bindir}/iconbuttondemo
324 %attr(755,root,root) %{_bindir}/outline
325 %attr(755,root,root) %{_bindir}/paned
326 %attr(755,root,root) %{_bindir}/panner
327 %attr(755,root,root) %{_bindir}/periodic
328 %attr(755,root,root) %{_bindir}/piano
329 %attr(755,root,root) %{_bindir}/sampler2_0
330 %attr(755,root,root) %{_bindir}/setDate
331 %attr(755,root,root) %{_bindir}/simpleDemo
332 %attr(755,root,root) %{_bindir}/simpledrop
333 %attr(755,root,root) %{_bindir}/tabstack
334 %attr(755,root,root) %{_bindir}/todo
335 %attr(755,root,root) %{_bindir}/tooltips
336 %attr(755,root,root) %{_bindir}/motif-tree
337 %attr(755,root,root) %{_bindir}/wsm
338 %attr(755,root,root) %{_bindir}/xmanimate
339 %{_examplesdir}/motif
340
341 %files mwm
342 %defattr(644,root,root,755)
343 %attr(755,root,root) %{_bindir}/mwm
344 %dir %{_sysconfdir}/X11/mwm
345 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/mwm/system.mwmrc
346 %{_datadir}/xsessions/mwm.desktop
347 %{_mandir}/man1/mwm.1*
348 # should be man5
349 %{_mandir}/man4/mwmrc.4*
350
351 %files compat
352 %defattr(644,root,root,755)
353 %attr(755,root,root) %{_libdir}/libXm.so.1
354 %attr(755,root,root) %{_libdir}/libXm.so.2
355 %attr(755,root,root) %{_libdir}/libXm.so.3
This page took 0.064075 seconds and 2 git commands to generate.