]>
Commit | Line | Data |
---|---|---|
e891c44b | 1 | Summary: XBase - xbase-compatible C++ class library |
33fa3a2f | 2 | Summary(pl.UTF-8): XBase - kompatybilna z xbase biblioteka klas C++ |
e7b3b477 | 3 | Name: xbase |
8a22714a | 4 | Version: 2.1.1 |
db5fc4a9 | 5 | Release: 3 |
8a22714a | 6 | License: LGPL (library), GPL (programs) |
f97b2485 | 7 | Group: Libraries |
b9171807 | 8 | Source0: http://dl.sourceforge.net/xdb/%{name}-%{version}.tar.gz |
8a22714a JB |
9 | # Source0-md5: f36852f0ba0c4d9e047e84c3269fde37 |
10 | Patch0: %{name}-fix.patch | |
bb3cd4ce | 11 | Patch1: %{name}-gcc4.patch |
84418ba6 | 12 | URL: http://linux.techass.com/projects/xdb/ |
8a22714a JB |
13 | BuildRequires: autoconf >= 2.52 |
14 | BuildRequires: automake | |
b9132b06 | 15 | BuildRequires: libstdc++-devel |
8a22714a | 16 | BuildRequires: libtool >= 2:1.4d |
99af2939 | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
dae735e8 | 18 | |
19 | %description | |
e891c44b JB |
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. | |
dae735e8 | 26 | |
33fa3a2f | 27 | %description -l pl.UTF-8 |
e891c44b | 28 | XBase to kompatybilna z xbase (czyli dBase, FoxPro itp.) biblioteka |
33fa3a2f JR |
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. | |
dae735e8 | 34 | |
35 | %package devel | |
e891c44b | 36 | Summary: XBase development files |
33fa3a2f | 37 | Summary(pl.UTF-8): Pliki dla programistów używających XBase |
8a22714a | 38 | License: LGPL |
f97b2485 | 39 | Group: Development/Libraries |
8a22714a | 40 | Requires: %{name} = %{version}-%{release} |
26b135f7 | 41 | Requires: libstdc++-devel |
dae735e8 | 42 | |
43 | %description devel | |
e891c44b | 44 | This package contains XBase development files. |
dae735e8 | 45 | |
33fa3a2f JR |
46 | %description devel -l pl.UTF-8 |
47 | Ten pakiet zawiera pliki nagłówkowe potrzebne przy tworzeniu | |
48 | aplikacji używających Xbase. | |
dae735e8 | 49 | |
8a22714a JB |
50 | %package static |
51 | Summary: Static XBase library | |
33fa3a2f | 52 | Summary(pl.UTF-8): Statyczna biblioteka XBase |
8a22714a JB |
53 | License: LGPL |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static XBase library. | |
59 | ||
33fa3a2f | 60 | %description static -l pl.UTF-8 |
8a22714a JB |
61 | Statyczna biblioteka XBase. |
62 | ||
dae735e8 | 63 | %prep |
fb665945 | 64 | %setup -q |
8a22714a | 65 | %patch0 -p1 |
bb3cd4ce | 66 | %patch1 -p1 |
dae735e8 | 67 | |
68 | %build | |
8a22714a JB |
69 | %{__libtoolize} |
70 | %{__aclocal} | |
71 | %{__autoconf} | |
72 | %{__autoheader} | |
73 | %{__automake} | |
74 | CXXFLAGS="%{rpmcflags} -fno-implicit-templates" | |
75 | %configure \ | |
dae735e8 | 76 | --enable-nls \ |
77 | --with-exceptions \ | |
78 | --with-index-ndx \ | |
79 | --with-index-ntx | |
eb43ade0 | 80 | %{__make} |
dae735e8 | 81 | |
82 | %install | |
e7b3b477 | 83 | rm -rf $RPM_BUILD_ROOT |
d5617c06 | 84 | |
e891c44b JB |
85 | %{__make} install \ |
86 | DESTDIR=$RPM_BUILD_ROOT | |
dae735e8 | 87 | |
88 | %clean | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
8b2efa14 | 91 | %post -p /sbin/ldconfig |
e891c44b JB |
92 | %postun -p /sbin/ldconfig |
93 | ||
dae735e8 | 94 | %files |
e7b3b477 | 95 | %defattr(644,root,root,755) |
8a22714a | 96 | %doc AUTHORS ChangeLog NEWS README TODO |
e891c44b | 97 | %attr(755,root,root) %{_bindir}/[!x]* |
dcebbe83 | 98 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
dae735e8 | 99 | |
100 | %files devel | |
e7b3b477 | 101 | %defattr(644,root,root,755) |
8a22714a | 102 | %doc html/{*.html,*.jpg} |
84418ba6 | 103 | %attr(755,root,root) %{_bindir}/xbase-config |
dcebbe83 | 104 | %attr(755,root,root) %{_libdir}/lib*.so |
ebb27c54 | 105 | %{_libdir}/lib*.la |
84418ba6 | 106 | %{_includedir}/xbase |
8a22714a JB |
107 | |
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/lib*.a |