2007-01-15 23:41:53 +00:00
|
|
|
#
|
2011-11-22 16:50:00 +00:00
|
|
|
# spec file for package xbase
|
2007-01-15 23:41:53 +00:00
|
|
|
#
|
2017-06-21 16:07:07 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-15 23:41:53 +00:00
|
|
|
#
|
2008-11-29 22:23:04 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2007-01-15 23:41:53 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2008-04-16 14:00:19 +00:00
|
|
|
|
2017-06-21 16:07:07 +00:00
|
|
|
%define libname libxbase64-1
|
2007-01-15 23:41:53 +00:00
|
|
|
Name: xbase
|
2017-06-21 16:07:07 +00:00
|
|
|
Version: 3.1.2
|
2015-04-22 06:17:57 +00:00
|
|
|
Release: 0
|
2012-03-22 21:54:40 +00:00
|
|
|
Summary: XBase Compatible C++ Class Library
|
2011-12-06 18:13:50 +00:00
|
|
|
License: LGPL-2.1+
|
2007-01-15 23:41:53 +00:00
|
|
|
Group: Productivity/Databases/Tools
|
2011-11-22 16:50:00 +00:00
|
|
|
Url: http://linux.techass.com/projects/xdb/#downloads
|
2017-06-21 16:07:07 +00:00
|
|
|
Source0: http://prdownloads.sourceforge.net/xdb/%{name}64-%{version}.tar.gz
|
|
|
|
|
Patch0: xbase-3.1.2-fixconfig.patch
|
|
|
|
|
Patch1: xbase-3.1.2-gcc44.patch
|
|
|
|
|
Patch2: xbase-2.0.0-ppc.patch
|
|
|
|
|
Patch3: xbase-3.1.2-xbnode.patch
|
|
|
|
|
Patch4: xbase-3.1.2-lesserg.patch
|
|
|
|
|
Patch5: xbase-3.1.2-gcc47.patch
|
|
|
|
|
Patch6: xbase-3.1.2-gcc6.patch
|
|
|
|
|
Patch7: xbase-3.1.2-configure-gcc-version-fix.patch
|
|
|
|
|
Patch8: xbase-3.1.2-gcc7.patch
|
2015-04-22 06:17:57 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: libtool
|
2017-06-21 16:07:07 +00:00
|
|
|
Provides: xbase64 = %{version}-%{release}
|
2007-01-15 23:41:53 +00:00
|
|
|
|
|
|
|
|
%description
|
2017-06-21 16:07:07 +00:00
|
|
|
This package contains various utilities for working with X-Base files:
|
|
|
|
|
checkndx (check an NDX file), copydbf (copy a DBF file structure), deletall
|
|
|
|
|
(mark all records for deletion), dumphdr (print an X-Base file header),
|
|
|
|
|
dumprecs (dump records for an X-Base file), packdbf (pack a database file),
|
|
|
|
|
reindex (rebuild an index), undelall (undeletes all deleted records in a file),
|
|
|
|
|
xbase-zap (remove all records from a DBF file).
|
|
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
|
Summary: XBase Compatible C++ Class Library
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n %{libname}
|
2007-01-15 23:41:53 +00:00
|
|
|
This is an XBase (dBase and FoxPro, for example) compatible C++ class
|
|
|
|
|
library.
|
|
|
|
|
|
2007-11-09 00:06:31 +00:00
|
|
|
%package devel
|
|
|
|
|
Summary: Developmnet files for XBase Compatible C++ Class Library
|
2012-03-22 21:54:40 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
|
Requires: libstdc++-devel
|
2017-06-21 16:07:07 +00:00
|
|
|
Provides: xbase64-devel = %{version}-%{release}
|
2007-11-09 00:06:31 +00:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
This is an XBase (dBase and FoxPro, for example) compatible C++ class
|
|
|
|
|
library.
|
|
|
|
|
|
|
|
|
|
This package contains header files and development files.
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
|
Summary: Developer documentation for XBase Compatible C++ Class Library
|
2012-03-22 21:54:40 +00:00
|
|
|
Group: Productivity/Databases/Tools
|
2007-11-09 00:06:31 +00:00
|
|
|
Requires: %{name} = %{version}
|
2015-04-22 06:17:57 +00:00
|
|
|
Provides: xbase:%{_docdir}/xbase-doc/html/classes.html
|
2007-11-09 00:06:31 +00:00
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
Developer documentation for XBase (dBase and FoxPro, for example)
|
|
|
|
|
compatible C++ class library.
|
|
|
|
|
|
|
|
|
|
This package contains header files, a library, some command line tools,
|
|
|
|
|
and developer documentation.
|
|
|
|
|
|
2007-01-15 23:41:53 +00:00
|
|
|
%prep
|
2017-06-21 16:07:07 +00:00
|
|
|
%setup -q -n %{name}64-%{version}
|
|
|
|
|
%autopatch -p1
|
|
|
|
|
touch AUTHORS README NEWS
|
|
|
|
|
cp -p copying COPYING
|
|
|
|
|
chmod -x COPYING ChangeLog
|
2007-01-15 23:41:53 +00:00
|
|
|
|
|
|
|
|
%build
|
2009-01-29 23:25:56 +00:00
|
|
|
autoreconf -fiv
|
2017-06-21 16:07:07 +00:00
|
|
|
%configure --disable-static
|
2015-04-22 06:17:57 +00:00
|
|
|
make %{?_smp_mflags}
|
2007-01-15 23:41:53 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make DESTDIR="$RPM_BUILD_ROOT" install
|
2015-04-22 06:17:57 +00:00
|
|
|
mv %{buildroot}%{_bindir}/zap %{buildroot}%{_bindir}/xbase-zap
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-15 23:41:53 +00:00
|
|
|
|
2017-06-21 16:07:07 +00:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
2007-01-15 23:41:53 +00:00
|
|
|
|
2017-06-21 16:07:07 +00:00
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2007-01-15 23:41:53 +00:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
2017-06-21 16:07:07 +00:00
|
|
|
%doc COPYING ChangeLog
|
|
|
|
|
%{_bindir}/checkndx
|
|
|
|
|
%{_bindir}/copydbf
|
|
|
|
|
%{_bindir}/dbfxtrct
|
|
|
|
|
%{_bindir}/deletall
|
|
|
|
|
%{_bindir}/dumphdr
|
|
|
|
|
%{_bindir}/dumprecs
|
|
|
|
|
%{_bindir}/packdbf
|
|
|
|
|
%{_bindir}/reindex
|
|
|
|
|
%{_bindir}/undelall
|
|
|
|
|
%{_bindir}/xbase-zap
|
|
|
|
|
%{_bindir}/dbfutil1
|
|
|
|
|
|
|
|
|
|
%files -n %{libname}
|
2015-04-22 06:17:57 +00:00
|
|
|
%{_libdir}/libxbase*.so.*
|
2007-11-09 00:06:31 +00:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
2017-06-21 16:07:07 +00:00
|
|
|
%{_bindir}/xbase64-config
|
|
|
|
|
%{_libdir}/libxbase64.so
|
|
|
|
|
%{_includedir}/xbase64
|
2007-01-15 23:41:53 +00:00
|
|
|
|
2007-11-09 00:06:31 +00:00
|
|
|
%files doc
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc docs/html
|
2008-04-16 14:00:19 +00:00
|
|
|
|
2007-11-09 00:06:31 +00:00
|
|
|
%changelog
|