-Source0: http://dl.sourceforge.net/firebird/%{name}-%{version}.src.tar.gz
-Source1: http://dl.sourceforge.net/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
-# dirty "fixes" for missing error contants and conflict with isql from unixODBC
-# (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/
+Source0: http://dl.sourceforge.net/firebird/firebird-%{version}.tar.bz2
+# 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
+# Source2-md5: f4176d5dec952ee774bb8ee74c1f715d
+Source3: http://www.ibphoenix.com/downloads/isc_docs.zip
+# Source3-md5: 66eef71c188215d10988788282c014a7
+Source4: firebird.init
+Source5: firebird.sysconfig
+Source6: firebird.inetd
+Patch0: %{name}-chmod.patch
+Patch1: %{name}-editline.patch
+Patch2: %{name}-va.patch
+Patch3: %{name}-morearchs.patch
+Patch4: %{name}-gcc4.patch
+Patch5: %{name}-fix-os-detection.dpatch
+Patch6: %{name}-fix-pthreads-detect.dpatch
+Patch7: %{name}-link-with-g++.dpatch
+Patch8: %{name}-no-custom-errno-and-sys_XXerrXX.dpatch
+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
+BuildRequires: bison
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
+BuildRequires: ncurses-devel
+BuildRequires: rpmbuild(macros) >= 1.268