File palm-db-tools.spec of Package palm-db-tools
#
# spec file for package palm-db-tools (Version 0.3.6)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: palm-db-tools
BuildRequires: gcc-c++
License: GPL v2 or later
Group: Hardware/Palm
AutoReqProv: on
Version: 0.3.6
Release: 190
Source: %{name}-%{version}.tar.bz2
Patch: %{name}.dif
Patch1: %{name}-%{version}-type-fix.diff
Patch2: %{name}-%{version}-gcc.diff
Url: http://pilot-db.sourceforge.net//
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: convert text files into several PalmOS database formats
%description
The palm-db-tools package convert text files to several flat-file
database formats. The currently supported formats are: DB
http://pilot-db.sourceforge.net/ MobileDB
http://www.mobilegeneration.com/products/mobiledb/ List
http://www.magma.ca/~roo/list/list.html JFile v3.x (v4.x will be
supported later) http://www.land-j.com/jfile.html
Authors:
--------
Tom Dyas <tdyas@users.sourceforge.net>
%prep
%setup -n %{name}
%patch
%patch1
%patch2
#convert dos2unix file format
cat configure.in | tr -d '\015' >configure.in.new && mv -f configure.in.new configure.in
%build
%{suse_update_config}
libtoolize --force
autoreconf --install --force
chmod a+x configure
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -Wno-deprecated -fPIC" \
./configure --prefix=/usr \
--exec_prefix=/usr \
--bindir=/usr/bin \
--sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--libdir=/usr/%_lib
make %{?jobs:-j%jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%post
%run_ldconfig
%postun
%run_ldconfig
%files
%defattr(-,root,root)
%doc README NEWS ChangeLog TODO docs/manual.txt
/usr/%_lib/libpdbtools.so
/usr/bin/csv2pdb
/usr/bin/pdb2csv
%changelog
* Wed Oct 24 2007 - nadvornik@suse.cz
- added missing includes
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 - schwab@suse.de
- Don't strip binaries.
* Wed Apr 27 2005 - postadal@suse.cz
- fixed for gcc 4.0
* Sat Jan 10 2004 - adrian@suse.de
- add %%defattr and %%run_ldconfig
* Fri Aug 22 2003 - postadal@suse.cz
- fixed data type (type-fix.diff)
- build libflatfile.a with -fPIC
* Thu Jul 31 2003 - ro@suse.de
- try to fix installation (urgs...)
* Mon Jul 28 2003 - postadal@suse.cz
- updated to version 0.3.6
- removed obsoleted patches (c++, gcc, makefile)
* Wed Jan 22 2003 - postadal@suse.cz
- updated to version 0.3.5
* note, link, linked field Type support
- fix to compile with gcc3.2
* Thu Jan 31 2002 - schwab@suse.de
- Fix for gcc3.
* Sun Oct 07 2001 - tcrhak@suse.cz
- added -a to automake (needed by automake 1.5-4)
* Fri Aug 10 2001 - adostal@suse.cz
- update to version 0.3.2 (stable)
- add makefile patch
* Mon Jun 04 2001 - pblaha@suse.cz
- create this package version 0.3.2