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