File mdbtools.spec of Package mdbtools.3194
#
# spec file for package mdbtools
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mdbtools
%define gnome_prefix %(pkg-config libgnomeui-2.0 --variable=prefix)
%define gnome_datadir %{gnome_prefix}/share
BuildRequires: bison
BuildRequires: flex
BuildRequires: libglade2-devel
BuildRequires: libgnomeui-devel
BuildRequires: libtool
BuildRequires: readline-devel
BuildRequires: scrollkeeper
BuildRequires: unixODBC-devel
BuildRequires: update-desktop-files
Url: https://github.com/brianb/mdbtools
Version: 0.7
Release: 0
Summary: A Suite of Libraries and Programs to Access Microsoft Access Databases
License: GPL-2.0+
Group: Productivity/Databases/Tools
Source: mdbtools-%{version}.tar.gz
Source1: gmdb2.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Mdbtools contains:
mdb-dump -- simple hex dump utility for looking at mdb files
mdb-schema -- prints DDL for the specified table
mdb-export -- export table to CSV format
mdb-tables -- a simple dump of table names to be used with shell scripts
mdb-header -- generates a C header to be used in exporting mdb data to a C prog
mdb-parsecvs -- generates a C program given a CSV file made with mdb-export
mdb-sql -- demo SQL engine program
mdb-ver -- print version of database
%package devel
Requires: %{name} = %{version}
Requires: %{name}-odbc = %{version}
Requires: flex
Requires: glib2-devel
Requires: unixODBC-devel
Summary: All files necessary for development with the MDB Tools libraries
Group: Development/Libraries/C and C++
%description devel
Mdbtools contains:
mdb-dump -- simple hex dump utility for looking at mdb files
mdb-schema -- prints DDL for the specified table
mdb-export -- export table to CSV format
mdb-tables -- a simple dump of table names to be used with shell scripts
mdb-header -- generates a C header to be used in exporting mdb data to a C prog
mdb-parsecvs -- generates a C program given a CSV file made with mdb-export
mdb-sql -- demo SQL engine program
mdb-ver -- print version of database
%package gui
Summary: A Suite of libraries and programs to access Microsoft Access databases
Group: Productivity/Databases/Tools
%description gui
Mdbtools contains:
mdb-dump -- simple hex dump utility for looking at mdb files
mdb-schema -- prints DDL for the specified table
mdb-export -- export table to CSV format
mdb-tables -- a simple dump of table names to be used with shell scripts
mdb-header -- generates a C header to be used in exporting mdb data to a C prog
mdb-parsecvs -- generates a C program given a CSV file made with mdb-export
mdb-sql -- demo SQL engine program
mdb-ver -- print version of database
%package -n libmdbodbc1
Summary: MDB Tools ODBC driver for unixODBC
Group: Productivity/Databases/Tools
Provides: mdbtools-odbc = %{version}
Obsoletes: mdbtools-odbc < %{version}
%description -n libmdbodbc1
Mdbtools contains:
mdb-dump -- simple hex dump utility for looking at mdb files
mdb-schema -- prints DDL for the specified table
mdb-export -- export table to CSV format
mdb-tables -- a simple dump of table names to be used with shell scripts
mdb-header -- generates a C header to be used in exporting mdb data to a C prog
mdb-parsecvs -- generates a C program given a CSV file made with mdb-export
mdb-sql -- demo SQL engine program
mdb-ver -- print version of database
%prep
%setup -q
%build
autoreconf -f -i
%configure --disable-static --with-pic --with-unixodbc=%{_usr}
%{__make} %{?jobs:-j%jobs} RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
%check
make check
%install
%makeinstall
install -D -m 0644 %{S:1} %{buildroot}%{gnome_datadir}/applications/gmdb2.desktop
%suse_update_desktop_file gmdb2 Office Database
%{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n libmdbodbc1 -p /sbin/ldconfig
%postun -n libmdbodbc1 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README AUTHORS COPYING NEWS HACKING ChangeLog TODO
/usr/bin/mdb-*
%_libdir/libmdb.so.2
%_libdir/libmdb.so.2.0.0
%_libdir/libmdbsql.so.2
%_libdir/libmdbsql.so.2.0.0
%doc %_mandir/man1/mdb-*.1*
%files devel
%defattr(-,root,root)
/usr/include/mdb*.h
/usr/include/gmdb.h
/usr/include/connectparams.h
%_libdir/libmdbsql.so
%_libdir/libmdb.so
%_libdir/libmdbodbc.so
%_libdir/pkgconfig/libmdb.pc
%_libdir/pkgconfig/libmdbsql.pc
%files gui
%defattr(-,root,root)
%gnome_prefix/bin/gmdb2
%gnome_datadir/gmdb
%doc %gnome_datadir/gnome/help/gmdb
%gnome_datadir/applications/gmdb2.desktop
%_mandir/man1/gmdb2.1*
%files -n libmdbodbc1
%defattr(-,root,root)
%_libdir/libmdbodbc.so.1
%_libdir/libmdbodbc.so.1.0.0
%changelog