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