146 lines
3.7 KiB
RPMSpec
146 lines
3.7 KiB
RPMSpec
%define sourcever %(echo %version | cut -d. -f1-2)
|
|
Name: mdbtools
|
|
Version: 0.7.1
|
|
Release: 1mamba
|
|
Summary: A set of utilities for reading Microsoft Access database (MDB) files
|
|
Group: System/Tools
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/mdbtools/mdbtools
|
|
Source: https://github.com/mdbtools/mdbtools.git/%{version}/mdbtools-%{version}.tar.bz2
|
|
Patch0: mdbtools-0.6pre1-gcc4.patch
|
|
Patch1: mdbtools-0.6pre1-ooo.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libgdk-pixbuf-devel
|
|
BuildRequires: libglade-devel
|
|
BuildRequires: libglib-devel
|
|
%ifarch x86_64 %{ix86}
|
|
BuildRequires: libgnome-devel
|
|
BuildRequires: libgnomeui-devel
|
|
%endif
|
|
BuildRequires: libgtk2-devel
|
|
BuildRequires: libltdl-devel
|
|
BuildRequires: libodbc-devel
|
|
BuildRequires: libpango-devel
|
|
BuildRequires: libreadline-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: txt2man
|
|
|
|
%description
|
|
A set of utilities for reading Microsoft Access database (MDB) files.
|
|
|
|
%package -n libmdb
|
|
Summary: A set of libraries for reading Microsoft Access database (MDB) files
|
|
Group: System/Libraries
|
|
|
|
%description -n libmdb
|
|
A set of libraries for reading Microsoft Access database (MDB) files.
|
|
|
|
%package -n libmdb-devel
|
|
Summary: Devel package for %{name}
|
|
Group: Development/Libraries
|
|
Requires: libmdb = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n libmdb-devel
|
|
A set of libraries for reading Microsoft Access database (MDB) files.
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
%package -n gmdb
|
|
Summary: GNOME frontend from %{name}
|
|
Group: Graphical Desktop/Applications/Utilities
|
|
|
|
%description -n gmdb
|
|
GNOME frontend from %{name}.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
#mv brianb-mdbtools*/* .
|
|
#sed -i "s|libtooloze|libtoolize|" autogen.sh
|
|
#./autogen.sh
|
|
autoreconf -f -i
|
|
|
|
%build
|
|
%configure \
|
|
--with-unixodbc=%{_prefix}
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
rm -rf %{buildroot}%{_localstatedir}/scrollkeeper
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/mdb-array
|
|
%{_bindir}/mdb-export
|
|
%{_bindir}/mdb-header
|
|
%{_bindir}/mdb-hexdump
|
|
%{_bindir}/mdb-parsecsv
|
|
%{_bindir}/mdb-prop
|
|
%{_bindir}/mdb-schema
|
|
%{_bindir}/mdb-sql
|
|
%{_bindir}/mdb-tables
|
|
%{_bindir}/mdb-ver
|
|
%{_mandir}/man1/mdb-*.1*
|
|
%{_mandir}/man1/gmdb2.1*
|
|
%doc COPYING
|
|
|
|
%ifarch %{ix86} x86_64
|
|
%files -n gmdb
|
|
%defattr(-,root,root)
|
|
%{_bindir}/gmdb2
|
|
%{_datadir}/gmdb/*
|
|
%{_datadir}/omf/mdbtools/gmdb-C.omf
|
|
%dir %{_datadir}/gnome/help/gmdb
|
|
%dir %{_datadir}/gnome/help/gmdb/C
|
|
%{_datadir}/gnome/help/gmdb/C/*
|
|
%endif
|
|
|
|
%files -n libmdb
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libmdbsql.so.*
|
|
#%{_libdir}/libmdbodbc.so.*
|
|
%{_libdir}/libmdb.so.*
|
|
%doc AUTHORS COPYING.LIB
|
|
|
|
%files -n libmdb-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/*.h
|
|
%{_libdir}/libmdbsql.a
|
|
%{_libdir}/libmdbsql.la
|
|
%{_libdir}/libmdbsql.so
|
|
%{_libdir}/libmdbodbc*.a
|
|
%{_libdir}/libmdbodbc*.la
|
|
%{_libdir}/libmdbodbc*.so
|
|
%{_libdir}/libmdb.a
|
|
%{_libdir}/libmdb.la
|
|
%{_libdir}/libmdb.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
%doc ChangeLog NEWS README TODO
|
|
|
|
%changelog
|
|
* Sun Jun 13 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.1-1mamba
|
|
- update to 0.7.1
|
|
|
|
* Sun Mar 10 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7-1mamba
|
|
- update to 0.7
|
|
|
|
* Sat Jun 13 2009 Automatic Build System <autodist@mambasoft.it> 0.6pre1.svn20090613-1mamba
|
|
- update to 0.6pre1.svn20090613
|
|
|
|
* Sat Jun 13 2009 Automatic Build System <autodist@mambasoft.it> 0.6pre1-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Wed Nov 07 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6pre1-1mamba
|
|
- package created by autospec
|