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