# (see firebird2 on debian how to do it)
%bcond_with ss # Super Server
Summary: Firebird SQL Database Server and Client tools
-Summary(de): Firebird - relationalen Open-Source- Datenbankmanagementsystems
-Summary(pl): 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: 3
+Version: 1.5.4.4910
+Release: 1
License: Interbase Public License 1.0
Group: Applications/Databases
Source0: http://dl.sourceforge.net/firebird/firebird-%{version}.tar.bz2
-# Source0-md5: 559d005ab6622274f9448687f930393c
+# Source0-md5: 6655190f760217845623a75001b6ddd4
Source1: http://www.ibphoenix.com/downloads/60All.zip
# Source1-md5: f86a132012361cd4ae88563105741a4c
Source2: http://www.ibphoenix.com/downloads/ib_4_0_docs.tar.gz
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
URL: http://www.firebirdsql.org/
BuildRequires: autoconf
BuildRequires: automake
Firebird is a powerful, high-performance relational database designed
to be embedded into applications on multiple platforms.
-%description -l pl
-Firebird jest potê¿nym, wysoko wydajnym systemem relacyjnych baz
+%description -l pl.UTF-8
+Firebird jest potężnym, wysoko wydajnym systemem relacyjnych baz
danych zaprojektowanym do osadzania w aplikacjach na wielu
platformach.
-%description -l de
+%description -l de.UTF-8
Firebird ist der Open-Source-Spin-Off des weiterhin kommerziell von
Borland vertriebenen relationalen Datenbankmanagementsystemes
InterBase. Die Abspaltung erfolgte im Jahre 2000 als kurz vor Freigabe
-der Version 6 des kommerziellen Vorgängers Interbase bei Borland
-ernsthafte Überlegungen im Gange waren, die Weiterentwicklung
+der Version 6 des kommerziellen Vorgängers Interbase bei Borland
+ernsthafte Überlegungen im Gange waren, die Weiterentwicklung
einzustellen.
Aus Interbase 6.0 wurde Firebird 1.0, wobei dies als eine
Bugfix-Version mit nur wenigen Erweiterungen angesehen werden kann.
Eine Erweiterung von Firebird 1.0 ist der 64-Bit File I/O, so dass
-auch Datenbankdateien über 2GB erzeugt werden können.
+auch Datenbankdateien über 2GB erzeugt werden können.
%package lib
Summary: Firebird shared library
-Summary(pl): Biblioteka wspó³dzielona Firebird
+Summary(pl.UTF-8): Biblioteka współdzielona Firebird
Group: Libraries
%description lib
Firebird shared library (libgds).
-%description lib -l pl
-Biblioteka wspó³dzielona Firebird (libgds).
+%description lib -l pl.UTF-8
+Biblioteka współdzielona Firebird (libgds).
%package devel
Summary: Header files for Firebird library
-Summary(pl): 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
%description devel
Header files for Firebird library.
-%description devel -l pl
-Pliki nag³ówkowe biblioteki Firebird.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Firebird.
%package static
Summary: Static Firebird library
-Summary(pl): Statyczna biblioteka Firebird
+Summary(pl.UTF-8): Statyczna biblioteka Firebird
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Static Firebird library (libgds).
-%description static -l pl
+%description static -l pl.UTF-8
Statyczna biblioteka Firebird (libgds).
%package doc
Summary: Extensive InterBase and Firebird documentation
-Summary(pl): Obszerna dokumentacja do baz InterBase i Firebird
+Summary(pl.UTF-8): Obszerna dokumentacja do baz InterBase i Firebird
Group: Documentation
%description doc
Extensive InterBase and Firebird documentation.
-%description doc -l pl
+%description doc -l pl.UTF-8
Obszerna dokumentacja do baz InterBase i Firebird.
%prep
%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
# standardize extension, also avoids gzipping by compress-doc
mv -f docs/IB6.0/LANGREF.{PDF,pdf}
+# force rebuild
+rm -f src/dsql/parse.cpp
+
%build
cd src/extern/editline
cp -f /usr/share/automake/config.* .
# OPTFLAGS for editline
export OPTFLAGS="%{rpmcflags}"
+DARCH=""
%ifarch %{x8664}
DARCH="-DAMD64"
-%else
+%endif
%ifarch sparc sparcv9
DARCH="-Dsparc"
-%else
-DARCH=""
%endif
+%ifarch ppc
+DARCH="-DPPC"
%endif
%{__make} -j1 \
%files lib
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/libfbclient.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfbclient.so.[0-9]
%attr(755,root,root) %{_libdir}/libfbembed.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libfbembed.so.[0-9]
+
# InterBase/old Firebird compatibility symlinks
%attr(755,root,root) %{_libdir}/libgds.so.0
# needed here - original libgds.so.0 didn't have soname, so some old