]>
Commit | Line | Data |
---|---|---|
bc96c946 | 1 | %define _truename xbae |
d83d3bcb | 2 | Summary: The XbaeMatrix is a Motif-based widget which displays a grid of cells |
50d73b51 | 3 | Summary(pl.UTF-8): XbaeMatrix jest motifowym widgetem wyświetlającym tabelki |
d83d3bcb | 4 | Name: Xbae |
bc96c946 | 5 | Version: 4.60.4 |
fd578a79 | 6 | Release: 2 |
a9d55fb3 | 7 | License: BSD-like (Bell Communications Research) |
d83d3bcb | 8 | Group: X11/Libraries |
1ab7a573 | 9 | Source0: http://dl.sourceforge.net/xbae/%{_truename}-%{version}.tar.gz |
bc96c946 | 10 | # Source0-md5: 9690059474bb05191dccd041ff5052bd |
2bd27c32 | 11 | Patch0: %{name}-ac.patch |
f05b026a | 12 | URL: http://xbae.sourceforge.net/ |
d83d3bcb | 13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
15 | BuildRequires: libtool | |
f05b026a | 16 | BuildRequires: motif-devel >= 2.0 |
d83d3bcb | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
d83d3bcb | 19 | %description |
d83d3bcb | 20 | The XbaeMatrix is a Motif-based widget which displays a grid of cells |
21 | in the same manner as a spreadsheet. The cell array is scrollable, | |
22 | editable, and otherwise reasonably configurable in appearance. Each | |
23 | cell usually displays text, but pixmaps can also be displayed (not | |
24 | editable). The XbaeMatrix looks to some extent like a grid of | |
25 | XmTextField widgets, but is actually implemented with a single | |
26 | XmTextField. This means a big performance improvement due to less | |
27 | overhead. | |
28 | ||
9ad92aa4 | 29 | %description -l pl.UTF-8 |
1ab7a573 JB |
30 | XbaeMatrix jest motifowym widgetem wyświetlającym tabelki złożone z |
31 | pól w sposób podobny do arkuszy kalkulacyjnych. Tabelę można przewijać | |
32 | i poddawać edycji. Każde pole zazwyczaj wyświetla tekst, ale może | |
33 | także bitmapę (bez możliwości edycji). | |
d83d3bcb | 34 | |
35 | %package devel | |
36 | Summary: XbaeMatrix header files and development documentation | |
50d73b51 | 37 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja XbaeMatrix |
d83d3bcb | 38 | Group: X11/Development/Libraries |
b9781cbe JB |
39 | Requires: %{name} = %{version}-%{release} |
40 | Requires: motif-devel >= 2.0 | |
d83d3bcb | 41 | |
42 | %description devel | |
43 | XbaeMatrix header files and development documentation. | |
44 | ||
9ad92aa4 JR |
45 | %description devel -l pl.UTF-8 |
46 | Pliki nagłówkowe i dokumentacja programisty do XbaeMatrix. | |
d83d3bcb | 47 | |
48 | %package static | |
49 | Summary: XbaeMatrix static library | |
50d73b51 | 50 | Summary(pl.UTF-8): Biblioteki statyczne XbaeMatrix |
d83d3bcb | 51 | Group: X11/Development/Libraries |
b9781cbe | 52 | Requires: %{name}-devel = %{version}-%{release} |
d83d3bcb | 53 | |
54 | %description static | |
55 | XbaeMatrix static library. | |
56 | ||
9ad92aa4 | 57 | %description static -l pl.UTF-8 |
d83d3bcb | 58 | Biblioteki statyczne XbaeMatrix. |
59 | ||
60 | %prep | |
bc96c946 | 61 | %setup -q -n %{_truename}-%{version} |
2bd27c32 | 62 | %patch0 -p1 |
d83d3bcb | 63 | |
64 | %build | |
3943b7e6 | 65 | %{__libtoolize} |
60ab8c90 | 66 | %{__aclocal} |
a7f5afb0 | 67 | %{__autoconf} |
68 | %{__automake} | |
d83d3bcb | 69 | %configure \ |
70 | --enable-shared \ | |
71 | --enable-static \ | |
bc96c946 | 72 | --with-editres |
af45d982 JB |
73 | |
74 | %{__make} | |
d83d3bcb | 75 | |
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
af45d982 | 78 | install -d $RPM_BUILD_ROOT%{_aclocaldir} |
d83d3bcb | 79 | |
80 | %{__make} install \ | |
b7f465c0 JB |
81 | DESTDIR=$RPM_BUILD_ROOT \ |
82 | mandir=%{_mandir} | |
d83d3bcb | 83 | |
af45d982 | 84 | # workaround - configure decides not to install *.m4 if aclocaldir is not writable |
d83d3bcb | 85 | install ac_find_*.m4 $RPM_BUILD_ROOT%{_aclocaldir} |
86 | ||
17b2b48d JB |
87 | rm -f doc/Makefile* doc/images/Makefile* |
88 | ||
d83d3bcb | 89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
e6489b70 | 92 | %post -p /sbin/ldconfig |
a9d55fb3 JB |
93 | %postun -p /sbin/ldconfig |
94 | ||
d83d3bcb | 95 | %files |
96 | %defattr(644,root,root,755) | |
31e5b4cd | 97 | %doc AUTHORS COPYING ChangeLog NEWS README |
d83d3bcb | 98 | %attr(755,root,root) %{_libdir}/libXbae.so.*.* |
bc96c946 | 99 | %{_datadir}/Xbae |
d83d3bcb | 100 | |
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
31e5b4cd | 103 | %doc doc/* |
d83d3bcb | 104 | %attr(755,root,root) %{_libdir}/libXbae.so |
2bd27c32 | 105 | %{_libdir}/libXbae.la |
d83d3bcb | 106 | %{_includedir}/Xbae |
107 | %{_aclocaldir}/ac_find_xbae.m4 | |
108 | %{_mandir}/man3/* | |
109 | ||
110 | %files static | |
111 | %defattr(644,root,root,755) | |
1d9be836 | 112 | %{_libdir}/libXbae.a |