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
+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
# missing isc4.gbak generated by: make isql || : ; make gdef gsec secutity_db
-Source2: %{name}-isc4.gbak
+Source5: %{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
# dirty "fixes" for missing error contants and conflict with isql from unixODBC
# ksh supports only [! ] globs, not [^ ]
Patch2: %{name}-ksh.patch
URL: http://firebird.sourceforge.net/
+BuildRequires: unzip
Requires: %{name}-lib = %{version}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%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
%patch2 -p1
chmod u+w -R .
-cp -f %{SOURCE2} misc/isc4.gbak
+cp -f %{SOURCE5} 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
%files static
%defattr(644,root,root,755)
%{_libdir}/libgds.a
+
+%files doc
+%defattr(644,root,root,755)
+%doc docs/*