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