]> git.pld-linux.org Git - packages/Firebird.git/blobdiff - Firebird.spec
- adapterized
[packages/Firebird.git] / Firebird.spec
index 37891a46283ac94e2cc3996257538dc3131c4d2a..81997a6c1abf8cd11e766c899bdfdd03717ba9b3 100644 (file)
@@ -13,31 +13,31 @@ Summary(de.UTF-8):  Firebird - relationalen Open-Source- Datenbankmanagementsyste
 Summary(pl.UTF-8):     Firebird - serwer baz danych SQL oraz narzędzia klienckie
 Name:          Firebird
 # FirebirdCS/FirebirdSS (Classic Server/Super Server)?
-Version:       2.1.1.17910
-Release:       2
+Version:       2.1.3.18185
+Release:       1
 License:       Interbase Public License 1.0, Initial Developer's Public License 1.0
 Group:         Applications/Databases
-Source0:       http://dl.sourceforge.net/firebird/Firebird-%{version}-0.tar.bz2
-# Source0-md5: c8bed24245440cb21b9c4fe16aae70bb
-Source1:       http://www.firebirdsql.org/pdfmanual/Firebird-2.1-QuickStart.pdf
-# Source1-md5: 676e5b294a04e3cd12b9298a776e19eb
+Source0:       http://downloads.sourceforge.net/firebird/%{name}-%{version}-0.tar.bz2
+# Source0-md5: ec42bd5c85dc2f65baef185228bcc5ca
+Source1:       http://www.firebirdsql.org/pdfmanual/%{name}-2.1-QuickStart.pdf
+# Source1-md5: 46bb1af4b94e8c8acee1d6ef2055b2d3
 # distfiles refuses this, would require some audit to allow '('/')' chars
 #Source2:      http://www.firebirdsql.org/pdfmanual/Using-Firebird_(wip).pdf
 ## Source2-md5:        9eb90583c200bdd7292a80ecc1df1178
-Source3:       http://www.firebirdsql.org/pdfmanual/Firebird-Null-Guide.pdf
+Source3:       http://www.firebirdsql.org/pdfmanual/%{name}-Null-Guide.pdf
 # Source3-md5: d1f8ba75fe3bb9eb9d203ce3f82a1a1a
-Source4:       http://www.firebirdsql.org/pdfmanual/Firebird-Generator-Guide.pdf
+Source4:       http://www.firebirdsql.org/pdfmanual/%{name}-Generator-Guide.pdf
 # Source4-md5: 44e7568ef477072a8ad5f381c3e12a75
-Source5:       http://www.firebirdsql.org/pdfmanual/MSSQL-to-Firebird.pdf
+Source5:       http://www.firebirdsql.org/pdfmanual/MSSQL-to-%{name}.pdf
 # Source5-md5: 1bd4a168e550910fc899e2aa125d83a3
-Source6:       http://www.firebirdsql.org/pdfmanual/Firebird-nbackup.pdf
+Source6:       http://www.firebirdsql.org/pdfmanual/%{name}-nbackup.pdf
 # Source6-md5: 7ef8a8b9a899d06bec2a5da0bb5fea0e
-Source7:       http://www.firebirdsql.org/pdfmanual/Firebird-Utils-WIP.pdf
+Source7:       http://www.firebirdsql.org/pdfmanual/%{name}-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
+Source9:       http://www.firebirdsql.org/doc/contrib/fb_2_1_errorcodes.pdf
+# Source9-md5: 9ab392dc349657dbcf9a9c35acd8e8db
 Source100:     firebird.init
 Source101:     firebird.sysconfig
 Source102:     firebird.inetd
@@ -46,6 +46,8 @@ Patch1:               %{name}-editline.patch
 Patch2:                %{name}-va.patch
 Patch3:                %{name}-morearchs.patch
 Patch4:                %{name}-FHS.patch
+Patch5:                %{name}-64bit.patch
+Patch6:                %{name}-gcc-icu.patch
 URL:           http://www.firebirdsql.org/
 BuildRequires: autoconf >= 2.56
 BuildRequires: automake
@@ -54,9 +56,10 @@ BuildRequires:       libedit-devel
 BuildRequires: libicu-devel
 BuildRequires: libstdc++-devel
 BuildRequires: libtool
-BuildRequires: ncurses-devel
 BuildRequires: psmisc >= 22.5-2
 BuildRequires: rpmbuild(macros) >= 1.268
+BuildRequires: sed >= 4.0
+Requires:      %{name}-dirs = %{version}-%{release}
 Requires:      %{name}-lib = %{version}-%{release}
 %if %{with ss}
 Requires(post,preun):  /sbin/chkconfig
@@ -94,6 +97,17 @@ 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.
 
+%package dirs
+Summary:       Firebird SQL Database common directories
+Summary(pl.UTF-8):     Firebird - wspólne katalogi
+Group:         Applications/Databases
+
+%description dirs
+Firebird SQL Database common directories.
+
+%description dirs -l pl.UTF-8
+Firebird - wspólne katalogi.
+
 %package lib
 Summary:       Firebird shared library
 Summary(pl.UTF-8):     Biblioteka współdzielona Firebird
@@ -109,6 +123,7 @@ Biblioteka współdzielona Firebird (libgds).
 Summary:       Header files for Firebird library
 Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki Firebird
 Group:         Development/Libraries
+Requires:      %{name}-dirs = %{version}-%{release}
 Requires:      %{name}-lib = %{version}-%{release}
 Requires:      libstdc++-devel
 
@@ -142,12 +157,16 @@ Extensive InterBase and Firebird documentation.
 Obszerna dokumentacja do baz InterBase i Firebird.
 
 %prep
-%setup -q -n Firebird-%{version}-0
+%setup -q -n %{name}-%{version}-0
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
+%patch6 -p0
+
+%{__sed} -i 's,@prefix@,%{_prefix},' builds/install/misc/fb_config.in
 
 # force rebuild
 rm -f src/dsql/parse.cpp
@@ -197,8 +216,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__make} -C src -f ../gen/Makefile.install buildImageDir
 
-install -d $RPM_BUILD_ROOT/etc/{firebird,rc.d/init.d,sysconfig/rc-inetd}
-install -d $RPM_BUILD_ROOT{%{ibdir},%{_libdir},%{_includedir}} \
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/{firebird,rc.d/init.d,sysconfig/rc-inetd}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{ibdir},%{_libdir},%{_includedir}} \
 install -d $RPM_BUILD_ROOT/var/{log,lib/firebird} \
        $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
@@ -220,6 +239,10 @@ ln -sf libfbclient.so.2 $RPM_BUILD_ROOT%{_libdir}/libgds.so
 
 ln -sf libfbstatic.a $RPM_BUILD_ROOT%{_libdir}/libgds.a
 
+for f in bin/{fb_lock_print,gbak,gdef,gds_drop,gfix,gpre,gsec,gsplit,gstat,nbackup}; do
+       ln -sf %{ibdir}/$f $RPM_BUILD_ROOT%{_bindir}/$ff
+done
+
 %if %{with ss}
 install %{SOURCE100} $RPM_BUILD_ROOT/etc/rc.d/init.d/firebird
 install %{SOURCE101} $RPM_BUILD_ROOT/etc/sysconfig/firebird
@@ -257,13 +280,13 @@ fi
 
 %triggerpostun -- %{name} < 2.1.1.17910-2
 if [ -f %{ibdir}/aliases.conf.rpmsave ]; then
-  mv -f %{ibdir}/aliases.conf.rpmsave %{_sysconfdir}/firebird/aliases.conf
+       mv -f %{ibdir}/aliases.conf.rpmsave %{_sysconfdir}/firebird/aliases.conf
 fi
 if [ -f %{ibdir}/firebird.conf.rpmsave ]; then
-  mv -f %{ibdir}/firebird.conf.rpmsave %{_sysconfdir}/firebird/firebird.conf
+       mv -f %{ibdir}/firebird.conf.rpmsave %{_sysconfdir}/firebird/firebird.conf
 fi
 if [ -f %{ibdir}/security2.fdb.rpmsave ]; then
-  mv -f %{ibdir}/security2.fdb.rpmsave /var/lib/firebird/security2.fdb
+       mv -f %{ibdir}/security2.fdb.rpmsave /var/lib/firebird/security2.fdb
 fi
 
 %files
@@ -271,14 +294,17 @@ fi
 %doc doc/{license,sql.extensions,Firebird_conf.txt,README.user*,WhatsNew,fb2-todo.txt}
 %dir %{_sysconfdir}/firebird
 %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/*.conf
+%attr(755,root,root) %{_bindir}/fb_lock_print
+%attr(755,root,root) %{_bindir}/g*
+%attr(755,root,root) %{_bindir}/nbackup
 %attr(755,root,root) %{_libdir}/libib_util.so
-%dir %{ibdir}
 %attr(755,root,root) %{ibdir}/UDF
-%attr(755,root,root) %{ibdir}/bin
+%attr(755,root,root) %{ibdir}/bin/*
+%exclude %{ibdir}/bin/fb_config
 %{ibdir}/help
 %dir %attr(770,root,firebird) %{ibdir}/intl
 %attr(755,root,root) %{ibdir}/intl/fbintl
-# should it be moved to /etc and marked as config?
+# should it be moved to %{_sysconfdir} and marked as config?
 %{ibdir}/intl/fbintl.conf
 %{ibdir}/firebird.msg
 %dir %attr(770,root,firebird) /var/lib/firebird
@@ -292,6 +318,11 @@ fi
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/firebird
 %endif
 
+%files dirs
+%defattr(644,root,root,755)
+%dir %{ibdir}
+%dir %{ibdir}/bin
+
 %files lib
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libfbclient.so.*.*.*
@@ -309,6 +340,7 @@ fi
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libfbclient.so
 %attr(755,root,root) %{_libdir}/libfbembed.so
+%attr(755,root,root) %{ibdir}/bin/fb_config
 %{_includedir}/ib_util.h
 %{_includedir}/ibase.h
 %{_includedir}/iberror.h
This page took 0.05476 seconds and 4 git commands to generate.