]>
Commit | Line | Data |
---|---|---|
1 | Summary: XBase - xbase-compatible C++ class library | |
2 | Summary(pl.UTF-8): XBase - kompatybilna z xbase biblioteka klas C++ | |
3 | Name: xbase | |
4 | Version: 2.1.1 | |
5 | Release: 3 | |
6 | License: LGPL (library), GPL (programs) | |
7 | Group: Libraries | |
8 | Source0: http://dl.sourceforge.net/xdb/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: f36852f0ba0c4d9e047e84c3269fde37 | |
10 | Patch0: %{name}-fix.patch | |
11 | Patch1: %{name}-gcc4.patch | |
12 | URL: http://linux.techass.com/projects/xdb/ | |
13 | BuildRequires: autoconf >= 2.52 | |
14 | BuildRequires: automake | |
15 | BuildRequires: libstdc++-devel | |
16 | BuildRequires: libtool >= 2:1.4d | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | XBase is an xbase (i.e. dBase, FoxPro, etc.) compatible C++ class | |
21 | library. It's useful for accessing data in legacy dBase 3 and 4 | |
22 | database files as well as a general light-weight database engine. It | |
23 | includes support for DBF (dBase version 3 and 4) data files, NDX and | |
24 | NTX indexes, and DBT (dBase version 3 and 4). It supports file and | |
25 | record locking under *nix OSes. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | XBase to kompatybilna z xbase (czyli dBase, FoxPro itp.) biblioteka | |
29 | klas C++. Jest przydatna do dostępu do danych w plikach starych baz | |
30 | dBase 3 i 4, a także jako lekki silnik baz danych ogólnego | |
31 | przeznaczenia. Obsługuje pliki baz DBF (dBase w wersji 3 i 4), indeksy | |
32 | NDX i NTX oraz DBT (dBase w wersji 3 i 4). Obsługuje blokowanie | |
33 | plików i rekordów pod systemami uniksowymi. | |
34 | ||
35 | %package devel | |
36 | Summary: XBase development files | |
37 | Summary(pl.UTF-8): Pliki dla programistów używających XBase | |
38 | License: LGPL | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | Requires: libstdc++-devel | |
42 | ||
43 | %description devel | |
44 | This package contains XBase development files. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Ten pakiet zawiera pliki nagłówkowe potrzebne przy tworzeniu | |
48 | aplikacji używających Xbase. | |
49 | ||
50 | %package static | |
51 | Summary: Static XBase library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka XBase | |
53 | License: LGPL | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static XBase library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka XBase. | |
62 | ||
63 | %prep | |
64 | %setup -q | |
65 | %patch0 -p1 | |
66 | %patch1 -p1 | |
67 | ||
68 | %build | |
69 | %{__libtoolize} | |
70 | %{__aclocal} | |
71 | %{__autoconf} | |
72 | %{__autoheader} | |
73 | %{__automake} | |
74 | CXXFLAGS="%{rpmcflags} -fno-implicit-templates" | |
75 | %configure \ | |
76 | --enable-nls \ | |
77 | --with-exceptions \ | |
78 | --with-index-ndx \ | |
79 | --with-index-ntx | |
80 | %{__make} | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %post -p /sbin/ldconfig | |
92 | %postun -p /sbin/ldconfig | |
93 | ||
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %doc AUTHORS ChangeLog NEWS README TODO | |
97 | %attr(755,root,root) %{_bindir}/[!x]* | |
98 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
99 | ||
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
102 | %doc html/{*.html,*.jpg} | |
103 | %attr(755,root,root) %{_bindir}/xbase-config | |
104 | %attr(755,root,root) %{_libdir}/lib*.so | |
105 | %{_libdir}/lib*.la | |
106 | %{_includedir}/xbase | |
107 | ||
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/lib*.a |