]>
Commit | Line | Data |
---|---|---|
657e310d | 1 | # |
55c51e0b AM |
2 | # WARNING: BETA versions of 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}. | |
657e310d | 6 | # |
cd095538 | 7 | Summary: OpenMotif |
4c3753ce | 8 | Summary(pl.UTF-8): OpenMotif |
0efc8c35 | 9 | Name: openmotif |
fade1849 | 10 | Version: 2.3.2 |
02dabc77 | 11 | Release: 4 |
85922354 | 12 | License: Open Group Public License |
0efc8c35 | 13 | Group: X11/Libraries |
63653794 | 14 | Source0: ftp://ftp.ics.com/openmotif/2.3/%{version}/%{name}-%{version}.tar.gz |
fade1849 | 15 | # Source0-md5: bf5479d52bc114d299200ec20e463e96 |
d2b85948 | 16 | #Source1: %{name}-%{version}-icsextra.tgz |
0bf67d9d | 17 | Source2: mwmrc |
e9c22a56 | 18 | Source3: mwm.RunWM |
102377de | 19 | Source5: mwm-xsession.desktop |
b4e9f633 | 20 | Source6: ac_find_motif.m4 |
d7273853 | 21 | Patch0: %{name}-makedepend.patch |
63653794 | 22 | Patch1: %{name}-mwmrc.patch |
23 | Patch2: %{name}-bison.patch | |
24 | Patch3: %{name}-freetype.patch | |
9d5e0232 | 25 | Patch4: %{name}-parbuild.patch |
33e6e20a | 26 | URL: http://www.openmotif.org/ |
0682e64e | 27 | BuildRequires: autoconf >= 2.59-9 |
eb62002d | 28 | BuildRequires: automake |
099cc239 | 29 | BuildRequires: bison |
4861fee9 | 30 | BuildRequires: flex |
63653794 | 31 | BuildRequires: freetype-devel |
63653794 | 32 | BuildRequires: libjpeg-devel |
33 | BuildRequires: libpng-devel | |
fade1849 TP |
34 | BuildRequires: libtool |
35 | BuildRequires: libuuid-devel | |
63653794 | 36 | BuildRequires: pkgconfig |
a3d019db | 37 | BuildRequires: xorg-data-xbitmaps |
63653794 | 38 | BuildRequires: xorg-lib-libXft-devel |
50214868 PS |
39 | BuildRequires: xorg-lib-libXmu-devel |
40 | BuildRequires: xorg-lib-libXp-devel | |
a9df3676 | 41 | Requires: %{name}-libs = %{version}-%{release} |
9d5e0232 | 42 | Provides: motif = 2.3 |
cd095538 | 43 | # Not restricted, lesstif provided library version 1.2 |
f33f161e | 44 | # OpenMotif provide library version 2.1 |
45 | #Obsoletes: lesstif | |
a04aaf30 | 46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0efc8c35 | 47 | |
50214868 PS |
48 | %define specflags -fno-strict-aliasing |
49 | ||
50 | %define xbitmapsdir %{_includedir}/X11/bitmaps | |
51 | %define xlibdir %{_libdir}/X11 | |
aead9417 | 52 | |
0efc8c35 | 53 | %description |
d7273853 JB |
54 | Motif is the user interface standart in the Enterprise for |
55 | applications that run on UNIX platforms for Sun, HP, IBM, Compaq, SGI, | |
56 | and others. | |
0efc8c35 | 57 | |
43ee6027 JR |
58 | %description -l pl.UTF-8 |
59 | Motif jest standardem wyglądu interfejsu graficznego dla aplikacji | |
60 | działających w środowiskach UNIX takich jak Sun, HP, IBM, Compaq, SGI | |
d7273853 | 61 | i inne. |
0916b5f7 | 62 | |
aa30e514 | 63 | %package clients |
d7273853 | 64 | Summary: OpenMotif clients |
4c3753ce | 65 | Summary(pl.UTF-8): OpenMotif - programy klienckie |
aa30e514 | 66 | Group: X11/Applications |
ccea22e7 | 67 | Requires: %{name} = %{version}-%{release} |
f33f161e | 68 | Obsoletes: lesstif-clients |
aa30e514 JR |
69 | |
70 | %description clients | |
d1314824 | 71 | Uil and xmbind. |
aa30e514 | 72 | |
43ee6027 | 73 | %description clients -l pl.UTF-8 |
d7273853 JB |
74 | uil i xmbind. |
75 | ||
9d5e0232 JB |
76 | %package libs |
77 | Summary: OpenMotif shared libraries | |
78 | Summary(pl.UTF-8): Biblioteki współdzielone OpenMotif | |
79 | Group: Libraries | |
80 | Conflicts: openmotif < 2.2.3-0.3 | |
81 | ||
82 | %description libs | |
83 | OpenMotif shared libraries. | |
84 | ||
85 | %description libs -l pl.UTF-8 | |
fade1849 | 86 | Biblioteki współdzielone OpenMotifa. |
9d5e0232 | 87 | |
0916b5f7 | 88 | %package devel |
89 | Summary: OpenMotif devel | |
4c3753ce | 90 | Summary(pl.UTF-8): Pliki nagłówkowe OpenMotif |
0916b5f7 | 91 | Group: X11/Development/Libraries |
a9df3676 | 92 | Requires: %{name}-libs = %{version}-%{release} |
50214868 PS |
93 | Requires: xorg-lib-libXmu-devel |
94 | Requires: xorg-lib-libXp-devel | |
9d5e0232 | 95 | Provides: motif-devel = 2.3 |
f33f161e | 96 | Obsoletes: lesstif-devel |
aa30e514 | 97 | |
0916b5f7 | 98 | %description devel |
d7273853 | 99 | Header files for OpenMotif. |
aa30e514 | 100 | |
43ee6027 JR |
101 | %description devel -l pl.UTF-8 |
102 | Pliki nagłówkowe dla bibliotek OpenMotif. | |
0916b5f7 | 103 | |
104 | %package static | |
105 | Summary: OpenMotif static | |
4c3753ce | 106 | Summary(pl.UTF-8): Statyczne biblioteki OpenMotif |
0916b5f7 | 107 | Group: X11/Development/Libraries |
ccea22e7 | 108 | Requires: %{name}-devel = %{version}-%{release} |
9d5e0232 | 109 | Provides: motif-static = 2.3 |
f33f161e | 110 | Obsoletes: lesstif-static |
aa30e514 | 111 | |
0916b5f7 | 112 | %description static |
d7273853 | 113 | OpenMotif static libraries. |
aa30e514 | 114 | |
43ee6027 | 115 | %description static -l pl.UTF-8 |
fade1849 | 116 | Biblioteki statyczne OpenMotifa. |
0efc8c35 | 117 | |
aa30e514 JR |
118 | %package demos |
119 | Summary: OpenMotif demos | |
4c3753ce | 120 | Summary(pl.UTF-8): Programy demonstracyjne do OpenMotif |
aa30e514 | 121 | Group: X11/Development/Libraries |
ccea22e7 | 122 | Requires: %{name}-devel = %{version}-%{release} |
aa30e514 JR |
123 | |
124 | %description demos | |
d7273853 | 125 | OpenMotif demos. |
aa30e514 | 126 | |
43ee6027 | 127 | %description demos -l pl.UTF-8 |
fade1849 | 128 | Programy demonstracyjne OpenMotifa. |
aa30e514 JR |
129 | |
130 | %package mwm | |
131 | Summary: Motif window manager | |
4c3753ce | 132 | Summary(pl.UTF-8): Motifowy zarządca okien |
aa30e514 | 133 | Group: X11/Window Managers |
ccea22e7 | 134 | Requires: %{name} = %{version}-%{release} |
f33f161e | 135 | Obsoletes: lesstif-mwm |
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 |
a3d019db | 147 | Summary: Fake OpenMotif compat libraries |
4c3753ce | 148 | Summary(pl.UTF-8): Dowiązania udające biblioteki kompatybilności OpenMotif |
79045861 | 149 | Group: Libraries |
45ec4350 | 150 | Requires: %{_libdir}/libXm.so.4.0.2 |
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 | |
a3d019db JB |
162 | Fake OpenMotif compat libraries (symlinks to current libXm library, |
163 | _some_ old programs may work with them). | |
79045861 | 164 | |
43ee6027 JR |
165 | %description compat -l pl.UTF-8 |
166 | Dowiązania udające biblioteki kompatybilności OpenMotif (dowiązania | |
167 | symboliczne do nowej wersji biblioteki libXm, _niektóre_ stare | |
168 | 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 |
6221134b | 177 | |
0efc8c35 | 178 | %build |
d2b85948 | 179 | %{__libtoolize} |
9d5e0232 | 180 | %{__aclocal} -I . |
63653794 | 181 | %{__autoconf} |
182 | %{__autoheader} | |
d2b85948 | 183 | %{__automake} |
184 | %{__autoconf} | |
a55dcce8 | 185 | |
1d42c470 AM |
186 | %configure \ |
187 | --enable-shared \ | |
63653794 | 188 | --enable-static \ |
fade1849 | 189 | --enable-themes \ |
63653794 | 190 | --enable-xft \ |
191 | --enable-jpeg \ | |
192 | --enable-png \ | |
9d5e0232 | 193 | --with-fontconfig-config="pkg-config fontconfig" |
a55dcce8 | 194 | |
d2b85948 | 195 | %{__make} clean |
196 | %{__make} | |
197 | ||
0efc8c35 | 198 | %install |
199 | rm -rf $RPM_BUILD_ROOT | |
aead9417 | 200 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/motif,%{_datadir}/xsessions} \ |
b4e9f633 | 201 | $RPM_BUILD_ROOT{/etc/{sysconfig/wmstyle,X11/mwm},%{_aclocaldir}} |
aa30e514 | 202 | |
aead9417 JB |
203 | %{__make} install \ |
204 | DESTDIR=$RPM_BUILD_ROOT \ | |
205 | bmdir=%{xbitmapsdir} \ | |
fade1849 | 206 | bindir=%{_bindir} \ |
aead9417 | 207 | binddir=%{xlibdir}/bindings |
aa30e514 | 208 | |
cb1d2cce | 209 | cd demos |
fade1849 | 210 | # breaks -bi --short-circuit ! |
128b0df5 | 211 | %{__make} clean |
cb1d2cce | 212 | cp -a * $RPM_BUILD_ROOT%{_examplesdir}/motif |
2ca7ca61 | 213 | rm -rf $RPM_BUILD_ROOT%{_datadir}/Xm |
cb1d2cce | 214 | cd .. |
80dc396e TP |
215 | mv -f $RPM_BUILD_ROOT%{_bindir}/{,openmotif-}column || : |
216 | mv -f $RPM_BUILD_ROOT%{_bindir}/{,openmotif-}tree || : | |
cb1d2cce | 217 | |
85922354 | 218 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/mwm/system.mwmrc |
e9c22a56 JR |
219 | |
220 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/mwm.sh | |
102377de | 221 | install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/mwm.desktop |
b4e9f633 | 222 | install %{SOURCE6} $RPM_BUILD_ROOT%{_aclocaldir} |
0bf67d9d | 223 | |
b971df0c TP |
224 | ln -sf libXm.so.4.0.2 $RPM_BUILD_ROOT%{_libdir}/libXm.so.3 |
225 | ln -sf libXm.so.4.0.2 $RPM_BUILD_ROOT%{_libdir}/libXm.so.2 | |
226 | ln -sf libXm.so.4.0.2 $RPM_BUILD_ROOT%{_libdir}/libXm.so.1 | |
79045861 | 227 | |
0efc8c35 | 228 | %clean |
229 | rm -rf $RPM_BUILD_ROOT | |
230 | ||
a9df3676 | 231 | %post libs -p /sbin/ldconfig |
232 | %postun libs -p /sbin/ldconfig | |
0916b5f7 | 233 | |
0efc8c35 | 234 | %files |
235 | %defattr(644,root,root,755) | |
55c51e0b | 236 | %doc LICENSE COPYRIGHT.MOTIF RELNOTES |
aead9417 JB |
237 | %{xbitmapsdir}/* |
238 | %{xlibdir}/bindings | |
aa30e514 JR |
239 | |
240 | %files clients | |
241 | %defattr(644,root,root,755) | |
aa30e514 JR |
242 | %attr(755,root,root) %{_bindir}/uil* |
243 | %attr(755,root,root) %{_bindir}/xmbind | |
aa30e514 JR |
244 | %{_mandir}/man1/uil.1* |
245 | %{_mandir}/man1/xmbind.1* | |
0916b5f7 | 246 | |
9d5e0232 JB |
247 | %files libs |
248 | %defattr(644,root,root,755) | |
249 | %attr(755,root,root) %{_libdir}/libMrm.so.*.*.* | |
250 | %attr(755,root,root) %ghost %{_libdir}/libMrm.so.4 | |
251 | %attr(755,root,root) %{_libdir}/libUil.so.*.*.* | |
252 | %attr(755,root,root) %ghost %{_libdir}/libUil.so.4 | |
253 | %attr(755,root,root) %{_libdir}/libXm.so.*.*.* | |
254 | %attr(755,root,root) %ghost %{_libdir}/libXm.so.4 | |
255 | ||
0916b5f7 | 256 | %files devel |
257 | %defattr(644,root,root,755) | |
9d5e0232 JB |
258 | %attr(755,root,root) %{_libdir}/libMrm.so |
259 | %attr(755,root,root) %{_libdir}/libUil.so | |
260 | %attr(755,root,root) %{_libdir}/libXm.so | |
261 | %{_libdir}/libMrm.la | |
262 | %{_libdir}/libUil.la | |
263 | %{_libdir}/libXm.la | |
aa30e514 JR |
264 | %{_includedir}/Mrm |
265 | %{_includedir}/Xm | |
266 | %{_includedir}/uil | |
ab305f0c | 267 | %{_mandir}/man3/* |
268 | %{_mandir}/man5/* | |
9d5e0232 | 269 | %{_aclocaldir}/ac_find_motif.m4 |
0916b5f7 | 270 | |
271 | %files static | |
272 | %defattr(644,root,root,755) | |
9d5e0232 JB |
273 | %{_libdir}/libMrm.a |
274 | %{_libdir}/libUil.a | |
275 | %{_libdir}/libXm.a | |
aa30e514 JR |
276 | |
277 | %files demos | |
278 | %defattr(644,root,root,755) | |
279 | %attr(755,root,root) %{_bindir}/DNDDemo | |
280 | %attr(755,root,root) %{_bindir}/airport | |
281 | %attr(755,root,root) %{_bindir}/autopopups | |
2ca7ca61 TP |
282 | %attr(755,root,root) %{_bindir}/bboxdemo |
283 | %attr(755,root,root) %{_bindir}/colordemo | |
80dc396e | 284 | %attr(755,root,root) %{_bindir}/openmotif-column |
2ca7ca61 | 285 | %attr(755,root,root) %{_bindir}/combo |
aa30e514 JR |
286 | %attr(755,root,root) %{_bindir}/draw |
287 | %attr(755,root,root) %{_bindir}/earth | |
2ca7ca61 | 288 | %attr(755,root,root) %{_bindir}/ext18list |
aa30e514 JR |
289 | %attr(755,root,root) %{_bindir}/filemanager |
290 | %attr(755,root,root) %{_bindir}/fileview | |
2ca7ca61 | 291 | %attr(755,root,root) %{_bindir}/fontsel |
d1314824 | 292 | %attr(755,root,root) %{_bindir}/getsubres |
aa30e514 JR |
293 | %attr(755,root,root) %{_bindir}/helloint |
294 | %attr(755,root,root) %{_bindir}/hellomotif | |
295 | %attr(755,root,root) %{_bindir}/i18ninput | |
2ca7ca61 TP |
296 | %attr(755,root,root) %{_bindir}/iconbuttondemo |
297 | %attr(755,root,root) %{_bindir}/outline | |
298 | %attr(755,root,root) %{_bindir}/paned | |
aa30e514 JR |
299 | %attr(755,root,root) %{_bindir}/panner |
300 | %attr(755,root,root) %{_bindir}/periodic | |
301 | %attr(755,root,root) %{_bindir}/piano | |
302 | %attr(755,root,root) %{_bindir}/sampler2_0 | |
303 | %attr(755,root,root) %{_bindir}/setDate | |
fade1849 | 304 | %attr(755,root,root) %{_bindir}/simpleDemo |
aa30e514 | 305 | %attr(755,root,root) %{_bindir}/simpledrop |
2ca7ca61 | 306 | %attr(755,root,root) %{_bindir}/tabstack |
aa30e514 | 307 | %attr(755,root,root) %{_bindir}/todo |
2ca7ca61 | 308 | %attr(755,root,root) %{_bindir}/tooltips |
80dc396e | 309 | %attr(755,root,root) %{_bindir}/openmotif-tree |
aa30e514 JR |
310 | %attr(755,root,root) %{_bindir}/wsm |
311 | %attr(755,root,root) %{_bindir}/xmanimate | |
aa30e514 JR |
312 | %{_examplesdir}/motif |
313 | ||
314 | %files mwm | |
315 | %defattr(644,root,root,755) | |
316 | %attr(755,root,root) %{_bindir}/mwm | |
85922354 JB |
317 | %dir %{_sysconfdir}/X11/mwm |
318 | %config %{_sysconfdir}/X11/mwm/* | |
e9c22a56 | 319 | %attr(755,root,root) /etc/sysconfig/wmstyle/*.sh |
102377de | 320 | %{_datadir}/xsessions/mwm.desktop |
aa30e514 | 321 | %{_mandir}/man1/mwm.1* |
ab305f0c | 322 | %{_mandir}/man4/* |
79045861 | 323 | |
324 | %files compat | |
bdd07766 | 325 | %defattr(644,root,root,755) |
326 | %attr(755,root,root) %{_libdir}/libXm.so.1 | |
327 | %attr(755,root,root) %{_libdir}/libXm.so.2 | |
9d5e0232 | 328 | %attr(755,root,root) %{_libdir}/libXm.so.3 |