]> git.pld-linux.org Git - packages/Firebird.git/blobdiff - Firebird.spec
- added some InterBase/Firebird docs (as subpackage - it's huge, even package)
[packages/Firebird.git] / Firebird.spec
index 8073ae3f6df4ea4cf16cf7293b8b603cea1de72b..30130e78d516176b317d853bb327ef0720603943 100644 (file)
@@ -8,8 +8,11 @@ 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
+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
@@ -17,6 +20,7 @@ Patch1:               %{name}-fix.patch
 # 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)
 
@@ -66,6 +70,17 @@ Static Firebird library (libgds).
 %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
@@ -73,7 +88,14 @@ Statyczna biblioteka Firebird (libgds).
 %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
@@ -136,3 +158,7 @@ rm -rf $RPM_BUILD_ROOT
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libgds.a
+
+%files doc
+%defattr(644,root,root,755)
+%doc docs/*
This page took 0.034764 seconds and 4 git commands to generate.