]> git.pld-linux.org Git - packages/Firebird.git/blobdiff - Firebird.spec
- massive attack: perl -pi -e "s/^#+\%\{/#\%\%\{/"
[packages/Firebird.git] / Firebird.spec
index 8073ae3f6df4ea4cf16cf7293b8b603cea1de72b..024a6c686d5d25b92ed2561c899eb971e0bd3c5b 100644 (file)
@@ -2,22 +2,24 @@ Summary:      Firebird SQL Database Server and Client tools
 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
@@ -66,14 +68,27 @@ 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
-%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
@@ -85,7 +100,7 @@ echo 'y' | ./Configure.sh PROD
        PROD_CFLAGS="%{rpmcflags} -fpic -DFLINTSTONE"
 
 # classic/super - what's the difference?
-#%{__make} super_firebird
+#%%{__make} super_firebird
 
 #-Isource/interbase/include"
 
@@ -136,3 +151,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.034598 seconds and 4 git commands to generate.