Summary(pl): Firebird - serwer baz danych SQL oraz narzêdzia klienckie
Name: Firebird
# FirebirdCS/FirebirdSS (Classic Server/Super Server)?
-Version: 1.0.0.796
+Version: 1.0.2.908
Release: 1
License: Interbase Public License 1.0
Group: Applications/Databases
Source0: ftp://ftp.sourceforge.net/pub/sourceforge/firebird/%{name}-%{version}.src.tar.gz
Source1: ftp://ftp.sourceforge.net/pub/sourceforge/firebird/bootkit-%{version}.tar.gz
-# missing isc4.gbak generated by: make isql || : ; make gdef gsec secutity_db
-Source2: %{name}-isc4.gbak
-# missing save.c generated by gpre after building pixar w/o save.o and then other stuff
-Patch0: %{name}-bootkit-missing.patch
+Source2: http://www.ibphoenix.com/downloads/60All.zip
+Source3: http://www.ibphoenix.com/downloads/ib_4_0_docs.tar.gz
+Source4: http://www.ibphoenix.com/downloads/isc_docs.zip
# dirty "fixes" for missing error contants and conflict with isql from unixODBC
-Patch1: %{name}-fix.patch
-# ksh supports only [! ] globs, not [^ ]
-Patch2: %{name}-ksh.patch
+# (gds__bad_{limit,skip}_param are defined in supplied codes.h, but removed
+# by codes.h regeneration from messages.gbak(?))
+Patch0: %{name}-fix.patch
URL: http://firebird.sourceforge.net/
+BuildRequires: unzip
Requires: %{name}-lib = %{version}
+# see firebird-*/jrd/{common.h,gds.h,ibase.h} if you want to add support for more
+ExclusiveArch: %{ix86}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define ibdir %{_libdir}/interbase
%description static -l pl
Statyczna biblioteka Firebird (libgds).
+%package doc
+Summary: Extensive InterBase and Firebird documentation
+Summary(pl): Obszerna dokumentacja do baz InterBase i Firebird
+Group: Documentation
+
+%description doc
+Extensive InterBase and Firebird documentation.
+
+%description doc -l pl
+Obszerna dokumentacja do baz InterBase i Firebird.
+
%prep
%setup -q -n firebird-%{version} -a1
%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-chmod u+w -R .
-cp -f %{SOURCE2} misc/isc4.gbak
+install -d docs/{IB3.0,IB4.0,IB6.0}
+unzip -q %{SOURCE2} -d docs/IB6.0
+tar xzf %{SOURCE3} -C docs/IB4.0
+unzip -q %{SOURCE4} -d docs/IB3.0
+# standardize extension, also avoids gzipping by compress-doc
+mv -f docs/IB6.0/LANGREF.{PDF,pdf}
%build
INTERBASE=/usr/lib/interbase; export INTERBASE
PROD_CFLAGS="%{rpmcflags} -fpic -DFLINTSTONE"
# classic/super - what's the difference?
-#%{__make} super_firebird
+#%%{__make} super_firebird
#-Isource/interbase/include"
%files static
%defattr(644,root,root,755)
%{_libdir}/libgds.a
+
+%files doc
+%defattr(644,root,root,755)
+%doc docs/*