]> git.pld-linux.org Git - packages/Firebird.git/blobdiff - Firebird.spec
- playing with 2.1RC. 1.5 is on FIREBIRD_1_5 now
[packages/Firebird.git] / Firebird.spec
index cbff81c604ab06b37f0b745144986616c8c38727..929ae36f26b6cdeafd5a2a25a1c4530b73468dcd 100644 (file)
@@ -2,27 +2,42 @@
 # - kill unaligned accesses (create_db,gpre_current,gbak_static,isql_static) on alpha
 # - create classic server/super server subpackages and drop bcond
 #   (see firebird2 on debian how to do it)
-%bcond_with    ss      # Super Server
+#
+# Conditional build:
+%bcond_with    ss      # Super Server (standalone daemon instead of inetd service)
+#
 Summary:       Firebird SQL Database Server and Client tools
-Summary(de.UTF-8):   Firebird - relationalen Open-Source- Datenbankmanagementsystems
-Summary(pl.UTF-8):   Firebird - serwer baz danych SQL oraz narzędzia klienckie
+Summary(de.UTF-8):     Firebird - relationalen Open-Source- Datenbankmanagementsystems
+Summary(pl.UTF-8):     Firebird - serwer baz danych SQL oraz narzędzia klienckie
 Name:          Firebird
 # FirebirdCS/FirebirdSS (Classic Server/Super Server)?
-Version:       1.5.3.4870
-Release:       8
+Version:       2.1.0.17735
+Release:       0.1
 License:       Interbase Public License 1.0
 Group:         Applications/Databases
-Source0:       http://dl.sourceforge.net/firebird/firebird-%{version}.tar.bz2
-# Source0-md5: 559d005ab6622274f9448687f930393c
-Source1:       http://www.ibphoenix.com/downloads/60All.zip
-# Source1-md5: f86a132012361cd4ae88563105741a4c
-Source2:       http://www.ibphoenix.com/downloads/ib_4_0_docs.tar.gz
-# Source2-md5: f4176d5dec952ee774bb8ee74c1f715d
-Source3:       http://www.ibphoenix.com/downloads/isc_docs.zip
-# Source3-md5: 66eef71c188215d10988788282c014a7
-Source4:       firebird.init
-Source5:       firebird.sysconfig
-Source6:       firebird.inetd
+Source0:       http://dl.sourceforge.net/firebird/Firebird-%{version}-ReleaseCandidate1.tar.bz2
+# Source0-md5: 69c0fff7c4022e430df6e1eb842e5aaa
+Source1:       http://www.firebirdsql.org/pdfmanual/Firebird-2.0-QuickStart.pdf
+# Source1-md5: 1ded6a5f6c1ec36a2b8a8b06370afc1a
+Source2:       http://www.firebirdsql.org/pdfmanual/Using-Firebird_(wip).pdf
+# Source2-md5: 9eb90583c200bdd7292a80ecc1df1178
+Source3:       http://www.firebirdsql.org/pdfmanual/Firebird-Null-Guide.pdf
+# Source3-md5: d1f8ba75fe3bb9eb9d203ce3f82a1a1a
+Source4:       http://www.firebirdsql.org/pdfmanual/Firebird-Generator-Guide.pdf
+# Source4-md5: 44e7568ef477072a8ad5f381c3e12a75
+Source5:       http://www.firebirdsql.org/pdfmanual/MSSQL-to-Firebird.pdf
+# Source5-md5: 1bd4a168e550910fc899e2aa125d83a3
+Source6:       http://www.firebirdsql.org/pdfmanual/Firebird-nbackup.pdf
+# Source6-md5: 7883243a5685560330430d8b423d2eba
+Source7:       http://www.firebirdsql.org/pdfmanual/Firebird-Utils-WIP.pdf
+# Source7-md5: 39b9a4f3c9d9e27d985e9277ae163ceb
+Source8:       http://www.firebirdnews.org/docs/fb2min.pdf
+# Source8-md5: ebac312c0afbe97b1850bdc74c553c28
+Source9:       http://www.firebirdsql.org/doc/contrib/fb_2_0_errorcodes.pdf
+# Source9-md5: 2acf2ff63c4ba3a1c590989e19bb253e
+Source100:     firebird.init
+Source101:     firebird.sysconfig
+Source102:     firebird.inetd
 Patch0:                %{name}-chmod.patch
 Patch1:                %{name}-editline.patch
 Patch2:                %{name}-va.patch
@@ -36,6 +51,7 @@ Patch9:               %{name}-opt-bypass-redundant-sort.dpatch
 Patch10:       %{name}-security-remote-preauth-crash.dpatch
 Patch11:       %{name}-separate-file-and-sem-perms.dpatch
 Patch12:       %{name}-ppc.patch
+Patch13:       %{name}-64bit.patch
 URL:           http://www.firebirdsql.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -43,8 +59,8 @@ BuildRequires:        bison
 BuildRequires: libstdc++-devel
 BuildRequires: libtool
 BuildRequires: ncurses-devel
+BuildRequires: psmisc >= 22.5-2
 BuildRequires: rpmbuild(macros) >= 1.268
-BuildRequires: unzip
 Requires:      %{name}-lib = %{version}-%{release}
 %if %{with ss}
 Requires(post,preun):  /sbin/chkconfig
@@ -84,7 +100,7 @@ auch Datenbankdateien über 2GB erzeugt werden können.
 
 %package lib
 Summary:       Firebird shared library
-Summary(pl.UTF-8):   Biblioteka współdzielona Firebird
+Summary(pl.UTF-8):     Biblioteka współdzielona Firebird
 Group:         Libraries
 
 %description lib
@@ -95,7 +111,7 @@ Biblioteka współdzielona Firebird (libgds).
 
 %package devel
 Summary:       Header files for Firebird library
-Summary(pl.UTF-8):   Pliki nagłówkowe biblioteki Firebird
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki Firebird
 Group:         Development/Libraries
 Requires:      %{name}-lib = %{version}-%{release}
 Requires:      libstdc++-devel
@@ -108,7 +124,7 @@ Pliki nagłówkowe biblioteki Firebird.
 
 %package static
 Summary:       Static Firebird library
-Summary(pl.UTF-8):   Statyczna biblioteka Firebird
+Summary(pl.UTF-8):     Statyczna biblioteka Firebird
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
@@ -120,7 +136,7 @@ Statyczna biblioteka Firebird (libgds).
 
 %package doc
 Summary:       Extensive InterBase and Firebird documentation
-Summary(pl.UTF-8):   Obszerna dokumentacja do baz InterBase i Firebird
+Summary(pl.UTF-8):     Obszerna dokumentacja do baz InterBase i Firebird
 Group:         Documentation
 
 %description doc
@@ -130,40 +146,38 @@ Extensive InterBase and Firebird documentation.
 Obszerna dokumentacja do baz InterBase i Firebird.
 
 %prep
-%setup -q -n firebird-%{version}
+%setup -q -n Firebird-%{version}-ReleaseCandidate1
 %patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
-%patch5 -p1
-%patch6 -p1
-%patch7 -p1
-%patch8 -p1
-%patch9 -p1
-%patch10 -p1
-%patch11 -p1
-%patch12 -p1
-install -d docs/{IB3.0,IB4.0,IB6.0}
-unzip -q %{SOURCE1} -d docs/IB6.0
-tar xzf %{SOURCE2} -C docs/IB4.0
-unzip -q %{SOURCE3} -d docs/IB3.0
-# standardize extension, also avoids gzipping by compress-doc
-mv -f docs/IB6.0/LANGREF.{PDF,pdf}
+# OBSOLETE?
+# %patch1 -p1
+# ???
+# %patch2 -p1
+# looks obsolete (but not fully)
+# %patch3 -p1
+# %patch4 -p1
+# %patch5 -p1
+# %patch6 -p1
+# %patch7 -p1
+# %patch8 -p1
+# %patch9 -p1
+# %patch10 -p1
+# %patch11 -p1
+# %patch12 -p1
+# %patch13 -p1
 
 # force rebuild
 rm -f src/dsql/parse.cpp
 
 %build
-cd src/extern/editline
-cp -f /usr/share/automake/config.* .
-%{__autoconf}
-cd ../../..
 %{__libtoolize}
 %{__aclocal}
 %{__autoconf}
 
 %configure \
+       --with-editline \
+       --with-system-editline \
+       --with-system-icu \
+       --with-gnu-ld \
        %{?with_ss:--enable-superserver} \
        --prefix=%{ibdir} \
        %{?debug:--enable-debug}
@@ -200,7 +214,7 @@ DARCH="-DPPC"
        LIB_CLIENT_LINK_OPTIONS="-lpthread"
 
 # fb_lock_mgr is started during build - try to stop it (if /proc is mounted...)
-/sbin/fuser -k gen/firebird/bin/fb_lock_mgr 2>/dev/null || :
+fuser -k gen/firebird/bin/fb_lock_mgr 2>/dev/null || :
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -227,9 +241,12 @@ ln -sf libfbclient.so.1 $RPM_BUILD_ROOT%{_libdir}/libgds.so
 
 ln -sf libfbstatic.a $RPM_BUILD_ROOT%{_libdir}/libgds.a
 
-install %{SOURCE4}     $RPM_BUILD_ROOT/etc/rc.d/init.d/firebird
-install %{SOURCE5}      $RPM_BUILD_ROOT/etc/sysconfig/firebird
-install %{SOURCE6}     $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/firebird
+%if %{with ss}
+install %{SOURCE100} $RPM_BUILD_ROOT/etc/rc.d/init.d/firebird
+install %{SOURCE101} $RPM_BUILD_ROOT/etc/sysconfig/firebird
+%else
+install %{SOURCE102} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/firebird
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.036708 seconds and 4 git commands to generate.