]> git.pld-linux.org Git - packages/xbase64.git/blob - xbase64.spec
- one more fix: redefined variable in dumprecs
[packages/xbase64.git] / xbase64.spec
1 Summary:        XBase64 - xbase-compatible C++ class library
2 Summary(pl.UTF-8):      XBase64 - kompatybilna z xbase biblioteka klas C++
3 Name:           xbase64
4 Version:        3.1.2
5 Release:        1
6 License:        LGPL v2.1+ (library), GPL v2+ (programs)
7 Group:          Libraries
8 Source0:        http://downloads.sourceforge.net/xdb/%{name}-%{version}.tar.gz
9 # Source0-md5:  7f3a727c142b4339faa781e1f6d5871c
10 Patch0:         %{name}-fix.patch
11 Patch1:         %{name}-am.patch
12 URL:            http://linux.techass.com/projects/xdb/
13 BuildRequires:  autoconf >= 2.52
14 BuildRequires:  automake
15 BuildRequires:  doxygen
16 BuildRequires:  libstdc++-devel
17 BuildRequires:  libtool >= 2:1.5
18 BuildRequires:  sed >= 4.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 XBase64 is an xbase (i.e. dBase, FoxPro, etc.) compatible C++ class
23 library. It's useful for accessing data in legacy dBase 3 and 4
24 database files as well as a general light-weight database engine. It
25 includes support for DBF (dBase version 3 and 4) data files, NDX and
26 NTX indexes, and DBT (dBase version 3 and 4). It supports file and
27 record locking under *nix OSes.
28
29 %description -l pl.UTF-8
30 XBase64 to kompatybilna z xbase (czyli dBase, FoxPro itp.) biblioteka
31 klas C++. Jest przydatna do dostępu do danych w plikach starych baz
32 dBase 3 i 4, a także jako lekki silnik baz danych ogólnego
33 przeznaczenia. Obsługuje pliki baz DBF (dBase w wersji 3 i 4), indeksy
34 NDX i NTX oraz DBT (dBase w wersji 3 i 4). Obsługuje blokowanie
35 plików i rekordów pod systemami uniksowymi.
36
37 %package devel
38 Summary:        XBase64 development files
39 Summary(pl.UTF-8):      Pliki dla programistów używających XBase64
40 License:        LGPL v2.1+
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43 Requires:       libstdc++-devel
44
45 %description devel
46 This package contains XBase64 development files.
47
48 %description devel -l pl.UTF-8
49 Ten pakiet zawiera pliki nagłówkowe potrzebne przy tworzeniu
50 aplikacji używających Xbase64.
51
52 %package static
53 Summary:        Static XBase64 library
54 Summary(pl.UTF-8):      Statyczna biblioteka XBase64
55 License:        LGPL v2.1+
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static XBase64 library.
61
62 %description static -l pl.UTF-8
63 Statyczna biblioteka XBase64.
64
65 %package tools
66 Summary:        XBase64 utilities for xbase files
67 Summary(pl.UTF-8):      XBase64 - narzędzia do plików xbase
68 License:        GPL v2+
69 Group:          Applications/File
70 Requires:       %{name} = %{version}-%{release}
71 Obsoletes:      xbase-tools
72 Conflicts:      xbase < 2.1.1-5
73
74 %description tools
75 XBase64 utilities for xbase files.
76
77 %description tools -l pl.UTF-8
78 XBase64 - narzędzia do plików xbase.
79
80 %prep
81 %setup -q
82
83 # not undos - there are some CRs in the middle if lines
84 %{__sed} -i -e 's,\r,,' -e 's,__GNU LesserG__,__GNU_LesserG__,' xbase64/*.[ch]*
85
86 %patch0 -p1
87 %patch1 -p1
88
89 %build
90 %{__libtoolize}
91 %{__aclocal}
92 %{__autoconf}
93 %{__autoheader}
94 %{__automake}
95 %configure \
96         --with-index-ndx \
97         --with-index-ntx
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post   -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
111
112 %files
113 %defattr(644,root,root,755)
114 %doc ChangeLog authors news readme todo
115 %attr(755,root,root) %{_libdir}/libxbase64.so.*.*.*
116 %attr(755,root,root) %ghost %{_libdir}/libxbase64.so.1
117
118 %files devel
119 %defattr(644,root,root,755)
120 %doc docs/html/{*.html,*.png}
121 %attr(755,root,root) %{_bindir}/xbase64-config
122 %attr(755,root,root) %{_libdir}/libxbase64.so
123 %{_libdir}/libxbase64.la
124 %{_includedir}/xbase64
125
126 %files static
127 %defattr(644,root,root,755)
128 %{_libdir}/libxbase64.a
129
130 %files tools
131 %defattr(644,root,root,755)
132 %attr(755,root,root) %{_bindir}/checkndx
133 %attr(755,root,root) %{_bindir}/copydbf
134 %attr(755,root,root) %{_bindir}/dbfutil1
135 %attr(755,root,root) %{_bindir}/dbfxtrct
136 %attr(755,root,root) %{_bindir}/deletall
137 %attr(755,root,root) %{_bindir}/dumphdr
138 %attr(755,root,root) %{_bindir}/dumprecs
139 %attr(755,root,root) %{_bindir}/packdbf
140 %attr(755,root,root) %{_bindir}/reindex
141 %attr(755,root,root) %{_bindir}/undelall
142 %attr(755,root,root) %{_bindir}/zap
This page took 0.069572 seconds and 4 git commands to generate.