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