]>
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 |
1d42c470 | 10 | Version: 2.2.3 |
0bcdbe2e | 11 | Release: 7 |
85922354 | 12 | License: Open Group Public License |
0efc8c35 | 13 | Group: X11/Libraries |
33e6e20a AM |
14 | Source0: http://ftp.ics.com/pub/Products/Motif/om%{version}/src/openMotif-%{version}.tar.gz |
15 | # Source0-md5: 94c96a0f94ee0d5e41d3dba2188b263d | |
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 |
a55dcce8 | 22 | Patch1: %{name}-am-uil.patch |
23 | Patch2: %{name}-mwmrc.patch | |
a3d019db JB |
24 | Patch3: %{name}-bison.patch |
25 | Patch4: %{name}-CVE-2005-3964.patch | |
26 | Patch5: %{name}-no-Xaw.patch | |
33e6e20a | 27 | URL: http://www.openmotif.org/ |
0682e64e | 28 | BuildRequires: autoconf >= 2.59-9 |
eb62002d | 29 | BuildRequires: automake |
099cc239 | 30 | BuildRequires: bison |
4861fee9 | 31 | BuildRequires: flex |
eb62002d | 32 | BuildRequires: libtool |
a3d019db | 33 | BuildRequires: xorg-data-xbitmaps |
50214868 PS |
34 | BuildRequires: xorg-lib-libXmu-devel |
35 | BuildRequires: xorg-lib-libXp-devel | |
a9df3676 | 36 | Requires: %{name}-libs = %{version}-%{release} |
d2b85948 | 37 | Provides: motif = 2.2 |
cd095538 | 38 | # Not restricted, lesstif provided library version 1.2 |
f33f161e | 39 | # OpenMotif provide library version 2.1 |
40 | #Obsoletes: lesstif | |
a04aaf30 | 41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
0efc8c35 | 42 | |
50214868 PS |
43 | %define specflags -fno-strict-aliasing |
44 | ||
45 | %define xbitmapsdir %{_includedir}/X11/bitmaps | |
46 | %define xlibdir %{_libdir}/X11 | |
aead9417 | 47 | |
0efc8c35 | 48 | %description |
d7273853 JB |
49 | Motif is the user interface standart in the Enterprise for |
50 | applications that run on UNIX platforms for Sun, HP, IBM, Compaq, SGI, | |
51 | and others. | |
0efc8c35 | 52 | |
43ee6027 JR |
53 | %description -l pl.UTF-8 |
54 | Motif jest standardem wyglądu interfejsu graficznego dla aplikacji | |
55 | działających w środowiskach UNIX takich jak Sun, HP, IBM, Compaq, SGI | |
d7273853 | 56 | i inne. |
0916b5f7 | 57 | |
aa30e514 | 58 | %package clients |
d7273853 | 59 | Summary: OpenMotif clients |
4c3753ce | 60 | Summary(pl.UTF-8): OpenMotif - programy klienckie |
aa30e514 | 61 | Group: X11/Applications |
ccea22e7 | 62 | Requires: %{name} = %{version}-%{release} |
f33f161e | 63 | Obsoletes: lesstif-clients |
aa30e514 JR |
64 | |
65 | %description clients | |
d1314824 | 66 | Uil and xmbind. |
aa30e514 | 67 | |
43ee6027 | 68 | %description clients -l pl.UTF-8 |
d7273853 JB |
69 | uil i xmbind. |
70 | ||
0916b5f7 | 71 | %package devel |
72 | Summary: OpenMotif devel | |
4c3753ce | 73 | Summary(pl.UTF-8): Pliki nagłówkowe OpenMotif |
0916b5f7 | 74 | Group: X11/Development/Libraries |
a9df3676 | 75 | Requires: %{name}-libs = %{version}-%{release} |
50214868 PS |
76 | Requires: xorg-lib-libXmu-devel |
77 | Requires: xorg-lib-libXp-devel | |
f7d4c12b | 78 | Provides: motif-devel = 2.1 |
f33f161e | 79 | Obsoletes: lesstif-devel |
aa30e514 | 80 | |
0916b5f7 | 81 | %description devel |
d7273853 | 82 | Header files for OpenMotif. |
aa30e514 | 83 | |
43ee6027 JR |
84 | %description devel -l pl.UTF-8 |
85 | Pliki nagłówkowe dla bibliotek OpenMotif. | |
0916b5f7 | 86 | |
87 | %package static | |
88 | Summary: OpenMotif static | |
4c3753ce | 89 | Summary(pl.UTF-8): Statyczne biblioteki OpenMotif |
0916b5f7 | 90 | Group: X11/Development/Libraries |
ccea22e7 | 91 | Requires: %{name}-devel = %{version}-%{release} |
2be565b6 | 92 | Provides: motif-static |
f33f161e | 93 | Obsoletes: lesstif-static |
aa30e514 | 94 | |
0916b5f7 | 95 | %description static |
d7273853 | 96 | OpenMotif static libraries. |
aa30e514 | 97 | |
43ee6027 | 98 | %description static -l pl.UTF-8 |
d7273853 | 99 | Biblioteki statyczne OpenMotif. |
0efc8c35 | 100 | |
aa30e514 JR |
101 | %package demos |
102 | Summary: OpenMotif demos | |
4c3753ce | 103 | Summary(pl.UTF-8): Programy demonstracyjne do OpenMotif |
aa30e514 | 104 | Group: X11/Development/Libraries |
ccea22e7 | 105 | Requires: %{name}-devel = %{version}-%{release} |
aa30e514 JR |
106 | |
107 | %description demos | |
d7273853 | 108 | OpenMotif demos. |
aa30e514 | 109 | |
43ee6027 | 110 | %description demos -l pl.UTF-8 |
d7273853 | 111 | Programy demonstracyjne do OpenMotif. |
aa30e514 | 112 | |
a9df3676 | 113 | %package libs |
114 | Summary: OpenMotif shared libraries | |
4c3753ce | 115 | Summary(pl.UTF-8): Biblioteki współdzielone OpenMotif |
a9df3676 | 116 | Group: Libraries |
117 | Conflicts: openmotif < 2.2.3-0.3 | |
118 | ||
119 | %description libs | |
120 | OpenMotif shared libraries. | |
121 | ||
43ee6027 JR |
122 | %description libs -l pl.UTF-8 |
123 | Biblioteki współdzielone OpenMotif. | |
a9df3676 | 124 | |
aa30e514 JR |
125 | %package mwm |
126 | Summary: Motif window manager | |
4c3753ce | 127 | Summary(pl.UTF-8): Motifowy zarządca okien |
aa30e514 | 128 | Group: X11/Window Managers |
ccea22e7 | 129 | Requires: %{name} = %{version}-%{release} |
f33f161e | 130 | Obsoletes: lesstif-mwm |
aa30e514 JR |
131 | |
132 | %description mwm | |
d7273853 JB |
133 | A BETA release of mwm. It is derived from fvwm, with a new parser that |
134 | understands mwmrc syntax, and a general understanding of Mwm | |
135 | resources. | |
aa30e514 | 136 | |
43ee6027 JR |
137 | %description mwm -l pl.UTF-8 |
138 | Wersja BETA mwm. Pochodzi z fvwm, ma nowy parser rozumiejący składnię | |
85922354 JB |
139 | mwmrc oraz zasoby Mwm. |
140 | ||
79045861 | 141 | %package compat |
a3d019db | 142 | Summary: Fake OpenMotif compat libraries |
4c3753ce | 143 | Summary(pl.UTF-8): Dowiązania udające biblioteki kompatybilności OpenMotif |
79045861 | 144 | Group: Libraries |
a3d019db JB |
145 | Requires: %{_libdir}/libXm.so.3.0.2 |
146 | %ifarch %{x8664} ia64 ppc64 s390x sparc64 | |
147 | Provides: libXm.so.1()(64bit) | |
148 | Provides: libXm.so.2()(64bit) | |
149 | %else | |
a4806bb0 | 150 | Provides: libXm.so.1 |
151 | Provides: libXm.so.2 | |
a3d019db | 152 | %endif |
79045861 | 153 | |
154 | %description compat | |
a3d019db JB |
155 | Fake OpenMotif compat libraries (symlinks to current libXm library, |
156 | _some_ old programs may work with them). | |
79045861 | 157 | |
43ee6027 JR |
158 | %description compat -l pl.UTF-8 |
159 | Dowiązania udające biblioteki kompatybilności OpenMotif (dowiązania | |
160 | symboliczne do nowej wersji biblioteki libXm, _niektóre_ stare | |
161 | programy mogą z nimi działać). | |
79045861 | 162 | |
0efc8c35 | 163 | %prep |
55c51e0b | 164 | %setup -q -n openMotif-%{version} |
2b610682 | 165 | %patch0 -p1 |
a55dcce8 | 166 | %patch1 -p1 |
167 | %patch2 -p1 | |
a3d019db | 168 | %patch3 -p1 |
099cc239 | 169 | %patch4 -p1 |
1f64fdbc | 170 | %patch5 -p1 |
6221134b | 171 | |
0efc8c35 | 172 | %build |
d2b85948 | 173 | %{__libtoolize} |
d2b85948 | 174 | %{__aclocal} |
a3d019db | 175 | #%{__autoheader} -- disabled, missing templates |
d2b85948 | 176 | %{__automake} |
177 | %{__autoconf} | |
a55dcce8 | 178 | |
1d42c470 AM |
179 | %configure \ |
180 | --enable-shared \ | |
181 | --enable-static | |
a55dcce8 | 182 | |
d2b85948 | 183 | %{__make} clean |
184 | %{__make} | |
185 | ||
0efc8c35 | 186 | %install |
187 | rm -rf $RPM_BUILD_ROOT | |
aead9417 | 188 | install -d $RPM_BUILD_ROOT{%{_examplesdir}/motif,%{_datadir}/xsessions} \ |
b4e9f633 | 189 | $RPM_BUILD_ROOT{/etc/{sysconfig/wmstyle,X11/mwm},%{_aclocaldir}} |
aa30e514 | 190 | |
aead9417 JB |
191 | %{__make} install \ |
192 | DESTDIR=$RPM_BUILD_ROOT \ | |
193 | bmdir=%{xbitmapsdir} \ | |
194 | binddir=%{xlibdir}/bindings | |
aa30e514 | 195 | |
cb1d2cce | 196 | cd demos |
128b0df5 | 197 | %{__make} clean |
cb1d2cce JB |
198 | cp -a * $RPM_BUILD_ROOT%{_examplesdir}/motif |
199 | cd .. | |
200 | ||
85922354 | 201 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/X11/mwm/system.mwmrc |
e9c22a56 JR |
202 | |
203 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/wmstyle/mwm.sh | |
102377de | 204 | install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/xsessions/mwm.desktop |
b4e9f633 | 205 | install %{SOURCE6} $RPM_BUILD_ROOT%{_aclocaldir} |
0bf67d9d | 206 | |
bdd07766 | 207 | ln -sf libXm.so.3.0.2 $RPM_BUILD_ROOT%{_libdir}/libXm.so.2 |
208 | ln -sf libXm.so.3.0.2 $RPM_BUILD_ROOT%{_libdir}/libXm.so.1 | |
79045861 | 209 | |
0efc8c35 | 210 | %clean |
211 | rm -rf $RPM_BUILD_ROOT | |
212 | ||
a9df3676 | 213 | %post libs -p /sbin/ldconfig |
214 | %postun libs -p /sbin/ldconfig | |
0916b5f7 | 215 | |
0efc8c35 | 216 | %files |
217 | %defattr(644,root,root,755) | |
55c51e0b | 218 | %doc LICENSE COPYRIGHT.MOTIF RELNOTES |
aead9417 JB |
219 | %{xbitmapsdir}/* |
220 | %{xlibdir}/bindings | |
aa30e514 JR |
221 | |
222 | %files clients | |
223 | %defattr(644,root,root,755) | |
aa30e514 JR |
224 | %attr(755,root,root) %{_bindir}/uil* |
225 | %attr(755,root,root) %{_bindir}/xmbind | |
aa30e514 JR |
226 | %{_mandir}/man1/uil.1* |
227 | %{_mandir}/man1/xmbind.1* | |
0916b5f7 | 228 | |
229 | %files devel | |
230 | %defattr(644,root,root,755) | |
aa30e514 | 231 | %attr(755,root,root) %{_libdir}/lib*.so |
aead9417 | 232 | %{_libdir}/lib*.la |
aa30e514 JR |
233 | %{_includedir}/Mrm |
234 | %{_includedir}/Xm | |
235 | %{_includedir}/uil | |
ab305f0c | 236 | %{_mandir}/man3/* |
237 | %{_mandir}/man5/* | |
b4e9f633 | 238 | %{_aclocaldir}/*.m4 |
0916b5f7 | 239 | |
240 | %files static | |
241 | %defattr(644,root,root,755) | |
aa30e514 JR |
242 | %{_libdir}/lib*.a |
243 | ||
244 | %files demos | |
245 | %defattr(644,root,root,755) | |
246 | %attr(755,root,root) %{_bindir}/DNDDemo | |
247 | %attr(755,root,root) %{_bindir}/airport | |
248 | %attr(755,root,root) %{_bindir}/autopopups | |
aa30e514 JR |
249 | %attr(755,root,root) %{_bindir}/draw |
250 | %attr(755,root,root) %{_bindir}/earth | |
aa30e514 JR |
251 | %attr(755,root,root) %{_bindir}/filemanager |
252 | %attr(755,root,root) %{_bindir}/fileview | |
d1314824 | 253 | %attr(755,root,root) %{_bindir}/getsubres |
aa30e514 JR |
254 | %attr(755,root,root) %{_bindir}/helloint |
255 | %attr(755,root,root) %{_bindir}/hellomotif | |
256 | %attr(755,root,root) %{_bindir}/i18ninput | |
aa30e514 JR |
257 | %attr(755,root,root) %{_bindir}/panner |
258 | %attr(755,root,root) %{_bindir}/periodic | |
259 | %attr(755,root,root) %{_bindir}/piano | |
260 | %attr(755,root,root) %{_bindir}/sampler2_0 | |
261 | %attr(755,root,root) %{_bindir}/setDate | |
aa30e514 JR |
262 | %attr(755,root,root) %{_bindir}/simpledrop |
263 | %attr(755,root,root) %{_bindir}/todo | |
264 | %attr(755,root,root) %{_bindir}/wsm | |
265 | %attr(755,root,root) %{_bindir}/xmanimate | |
aa30e514 JR |
266 | %{_examplesdir}/motif |
267 | ||
a9df3676 | 268 | %files libs |
269 | %defattr(644,root,root,755) | |
270 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
271 | ||
aa30e514 JR |
272 | %files mwm |
273 | %defattr(644,root,root,755) | |
274 | %attr(755,root,root) %{_bindir}/mwm | |
85922354 JB |
275 | %dir %{_sysconfdir}/X11/mwm |
276 | %config %{_sysconfdir}/X11/mwm/* | |
e9c22a56 | 277 | %attr(755,root,root) /etc/sysconfig/wmstyle/*.sh |
102377de | 278 | %{_datadir}/xsessions/mwm.desktop |
aa30e514 | 279 | %{_mandir}/man1/mwm.1* |
ab305f0c | 280 | %{_mandir}/man4/* |
79045861 | 281 | |
282 | %files compat | |
bdd07766 | 283 | %defattr(644,root,root,755) |
284 | %attr(755,root,root) %{_libdir}/libXm.so.1 | |
285 | %attr(755,root,root) %{_libdir}/libXm.so.2 |