]> git.pld-linux.org Git - packages/xbase.git/blobdiff - xbase.spec
- x32 rebuild
[packages/xbase.git] / xbase.spec
index dccd2560ab15bfd2b4888ddb34ea936ca3e76e59..eb5ef3f46a504cac94c2c3345e7a0ed355e83a5a 100644 (file)
-Summary:       Xbase DBMS Library
-Summary(pl):   Xbase biblioteka dla ró¿nych baz danych.
+Summary:       XBase - xbase-compatible C++ class library
+Summary(pl.UTF-8):     XBase - kompatybilna z xbase biblioteka klas C++
 Name:          xbase
-Version:       1.8.1
-Release:       2
-Copyright:     LGPL
-Group:         Applications/Libraries
-Group(pl):     Aplikacje/Biblioteki
-Source:                ftp://www.startech.keller.tx.us/pub/xbase/%name-%version.tar.gz
-URL:           http://www.startech.keller.tx.us/xbase.html
-Buildroot:     /tmp/%{name}-%{version}-root
+Version:       2.1.1
+Release:       6
+License:       LGPL v2.1+ (library), GPL v2+ (programs)
+Group:         Libraries
+Source0:       http://downloads.sourceforge.net/xdb/%{name}-%{version}.tar.gz
+# Source0-md5: f36852f0ba0c4d9e047e84c3269fde37
+Patch0:                %{name}-fix.patch
+Patch1:                %{name}-gcc4.patch
+Patch2:                %{name}-am.patch
+URL:           http://linux.techass.com/projects/xdb/
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.4d
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This product provides C and C++ programmers a class and function library for
-manipulating Xbase type datafiles and indices. This project was formerly
-known as Xbase for Linux, but as I have recieved input from several people
-who are compiling this on platforms other than Linux, I have renamed it to
-Xbase DBMS.  The main development of this library however, remains on the
-Linux platform utilizing the GCC public domain C/C++ compiler.
-
-XBase DBMS currently includes routines to support multi-user access for .DBF
-databases, fields, Dbase III and IV memo fields (variable length fields),
-dates, record and file locking and (.NDX) indices.  As of release 1.7.4,
-Xbase is compatible with dBASE III data, index and memo fields and also has
-support for some dBASE IV features.
-
-%description -l pl
-Bibliotek zawieraj±ca zespó³ procerur i funkcji pozwalaj±cych na podstawowe
-operacje na na formatacie danych dBASE III i czê¶ciowo dBASE IV.
-
-Bazowo projekt powstawa³ po Linuxa ale obecnie jest urzywany na wielu
-platformach.
+XBase is an xbase (i.e. dBase, FoxPro, etc.) compatible C++ class
+library. It's useful for accessing data in legacy dBase 3 and 4
+database files as well as a general light-weight database engine. It
+includes support for DBF (dBase version 3 and 4) data files, NDX and
+NTX indexes, and DBT (dBase version 3 and 4). It supports file and
+record locking under *nix OSes.
+
+%description -l pl.UTF-8
+XBase to kompatybilna z xbase (czyli dBase, FoxPro itp.) biblioteka
+klas C++. Jest przydatna do dostępu do danych w plikach starych baz
+dBase 3 i 4, a także jako lekki silnik baz danych ogólnego
+przeznaczenia. Obsługuje pliki baz DBF (dBase w wersji 3 i 4), indeksy
+NDX i NTX oraz DBT (dBase w wersji 3 i 4). Obsługuje blokowanie
+plików i rekordów pod systemami uniksowymi.
 
 %package devel
-Summary:       Xbase development
-Summary(pl):   Xbase delelopment
-Group:         Applications/Libraries
-Group(pl):     Aplikacje/Biblioteki
-Requires:      %{name} = %{version}
+Summary:       XBase development files
+Summary(pl.UTF-8):     Pliki dla programistów używających XBase
+License:       LGPL v2.1+
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+Requires:      libstdc++-devel
 
 %description devel
-Include headers and Turbo Vision module in source.
+This package contains XBase development files.
 
-%description devel -l pl
-Zawiera pliki nag³ówkowe potrzebne przy tworzeniu oprogramowania,
-oraz modu³ dla Turbo Vision.
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe potrzebne przy tworzeniu
+aplikacji używających Xbase.
+
+%package static
+Summary:       Static XBase library
+Summary(pl.UTF-8):     Statyczna biblioteka XBase
+License:       LGPL v2.1+
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static XBase library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka XBase.
+
+%package tools
+Summary:       XBase utilities for xbase files
+Summary(pl.UTF-8):     XBase - narzędzia do plików xbase
+License:       GPL v2+
+Group:         Applications/File
+Requires:      %{name} = %{version}-%{release}
+
+%description tools
+XBase utilities for xbase files.
+
+%description tools -l pl.UTF-8
+XBase - narzędzia do plików xbase.
 
 %prep
-%setup -q 
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-CPPFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-implicit-templates" \
-./configure %{_target} \
-       --prefix=/usr \
-       --enable-nls \
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+CXXFLAGS="%{rpmcflags} -fno-implicit-templates"
+%configure \
        --with-exceptions \
        --with-index-ndx \
        --with-index-ntx
-make
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make prefix=$RPM_BUILD_ROOT/usr install
-
-install -d $RPM_BUILD_ROOT/usr/doc/%name-%version
-
-gzip -9nf ChangeLog TODO AUTHORS NEWS README
 
-strip $RPM_BUILD_ROOT/usr/{bin/*,lib/lib*.so.*.*}
-
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc *gz
-%attr(755,root,root)%{_bindir}/*
-%attr(755,root,root)%{_libdir}/lib*.so*.*
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_libdir}/libxbase.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libxbase.so.1
 
 %files devel
 %defattr(644,root,root,755)
-%doc html/{*html,*gif,*jpg}
-%attr(755,root,root)%{_libdir}/lib*.so
-%{_includedir}/*
+%doc html/{*.html,*.jpg}
+%attr(755,root,root) %{_bindir}/xbase-config
+%attr(755,root,root) %{_libdir}/libxbase.so
 %{_libdir}/libxbase.la
+%{_includedir}/xbase
 
-%changelog
-* Thu Apr 22 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.8.1-2]
-- recompiles on new rpm.
-
-* Thu Apr 15 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.8.1-1]
-- added passing $RPM_OPT_FLAGS in CFLAGS and CPPFLAGS; in CPPFLAGS
-  added "-fno-rtti -fno-implicit-templates",
-- added "-s" to LDFLAGS,
-- added stripping shared libraries,
-- added URL,
-- fixed Copyright (LGPL).
-
-* Wed Apr 14 1999 Wojciech "Sas" Ciêciwa <cieciwa@alpha.zarz.agh.edu.pl>
-- separate file,
-- update to version 1.8.1
-
-* Sat Dec 12 1998 Wojciech "Sas" Ciêciwa <cieciwa@alpha.zarz.agh.edu.pl>
-- building RPM.
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libxbase.a
+
+%files tools
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/checkndx
+%attr(755,root,root) %{_bindir}/copydbf
+%attr(755,root,root) %{_bindir}/dbfutil1
+%attr(755,root,root) %{_bindir}/dbfxtrct
+%attr(755,root,root) %{_bindir}/deletall
+%attr(755,root,root) %{_bindir}/dumphdr
+%attr(755,root,root) %{_bindir}/dumprecs
+%attr(755,root,root) %{_bindir}/packdbf
+%attr(755,root,root) %{_bindir}/reindex
+%attr(755,root,root) %{_bindir}/undelall
+%attr(755,root,root) %{_bindir}/zap
This page took 0.0643319999999999 seconds and 4 git commands to generate.