X-Git-Url: http://git.pld-linux.org/?p=packages%2FFirebird.git;a=blobdiff_plain;f=Firebird.spec;h=cb1e3367fffa930af06e5bb19263f6c4b6daa472;hp=176960983e4987a0d12772be1fa466515ddb1b71;hb=HEAD;hpb=4db8ab34ab48dbe906d68f9e056b3295cbfbc3a1 diff --git a/Firebird.spec b/Firebird.spec index 1769609..22f6917 100644 --- a/Firebird.spec +++ b/Firebird.spec @@ -9,37 +9,45 @@ # - create SYSDBA user with initial password before first firebird start # eg.: # su firebird -# echo "create user SYSDBA password 'masterkey';"|fb_isql -u SYSDBA /var/lib/firebird/security3.fdb +# echo "create user SYSDBA password 'masterkey';"|fb_isql -u SYSDBA /var/lib/firebird/security5.fdb # 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 Name: Firebird -Version: 3.0.4.33054 -Release: 2 +Version: 5.0.0.1306 +Release: 1 License: Interbase Public License 1.0, Initial Developer's Public License 1.0 Group: Applications/Databases -Source0: https://github.com/FirebirdSQL/firebird/releases/download/R3_0_4/%{name}-%{version}-0.tar.bz2 -# Source0-md5: 43569120299b2db7587dcfbddab1e25a -Source1: http://www.firebirdsql.org/file/documentation/reference_manuals/user_manuals/%{name}-3-QuickStart.pdf -# Source1-md5: 8e029d449e9cb3e1da8213ac6c11ad02 +Source0: https://github.com/FirebirdSQL/firebird/releases/download/v5.0.0/%{name}-%{version}-0-source.tar.xz +# Source0-md5: 9d8b64e922df57d6a3f3de1acca4f8e3 +Source1: https://firebirdsql.org/file/documentation/pdf/en/firebirddocs/qsg5/firebird-5-quickstartguide.pdf +# Source1-md5: c02b14827cc050806bf107fd85a18458 # 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/%{name}-Null-Guide.pdf -# Source3-md5: d1f8ba75fe3bb9eb9d203ce3f82a1a1a +# Source3-md5: dc8e5e234b2138af9a472feca6565359 Source4: http://www.firebirdsql.org/pdfmanual/%{name}-Generator-Guide.pdf -# Source4-md5: 44e7568ef477072a8ad5f381c3e12a75 +# Source4-md5: 23926037205ab8716cf0a54544585231 Source5: http://www.firebirdsql.org/pdfmanual/MSSQL-to-%{name}.pdf -# Source5-md5: 1bd4a168e550910fc899e2aa125d83a3 +# Source5-md5: 230ef237842d255916398f408f459281 Source6: http://www.firebirdsql.org/pdfmanual/%{name}-nbackup.pdf -# Source6-md5: 7ef8a8b9a899d06bec2a5da0bb5fea0e -Source7: http://www.firebirdsql.org/pdfmanual/%{name}-Utils-WIP.pdf -# Source7-md5: 39b9a4f3c9d9e27d985e9277ae163ceb +# Source6-md5: 98d310a374ecc3f1f241e1feac6e4dca +Source7: http://www.firebirdsql.org/pdfmanual/%{name}-shell-scripts.pdf +# Source7-md5: 01c5e91de9f1639f62f93b3e486584c8 Source8: http://www.firebirdnews.org/docs/fb2min.pdf -# Source8-md5: ebac312c0afbe97b1850bdc74c553c28 -Source9: http://www.firebirdsql.org/doc/contrib/fb_2_1_errorcodes.pdf +# Source8-md5: 5e192abaf5db4417b29ad871716522b5 +Source9: https://firebirdsql.org/file/documentation/reference_manuals/reference_material/Firebird-2.1-ErrorCodes.pdf # Source9-md5: 9ab392dc349657dbcf9a9c35acd8e8db +Source10: http://www.firebirdsql.org/pdfmanual/%{name}-gsec.pdf +# Source10-md5: 326ef6f7afebf369b534838945ee4f74 +Source11: http://www.firebirdsql.org/pdfmanual/%{name}-gfix.pdf +# Source11-md5: 22e2cdc1058dd4f764728bcb3a8644f0 +Source12: http://www.firebirdsql.org/pdfmanual/%{name}-gsplit.pdf +# Source12-md5: 0147b5d2118e2e80c93762600107a71f +Source13: https://firebirdsql.org/file/documentation/pdf/en/refdocs/fblangref50/firebird-50-language-reference.pdf +# Source13-md5: cf095a223a7b7f631e6a4b8a9604b1da Source100: firebird.init Source101: firebird.sysconfig Source102: firebird.inetd @@ -55,15 +63,13 @@ Patch1: %{name}-editline.patch Patch2: %{name}-va.patch Patch3: %{name}-FHS.patch Patch4: %{name}-opt.patch -Patch5: %{name}-gcc-icu.patch Patch6: %{name}-libpath.patch Patch7: add-pkgconfig-files.patch -Patch8: Provide-sized-global-delete-operators-when-compiled.patch -Patch9: parallel-build.patch Patch10: no-copy-from-icu.patch Patch11: config.patch Patch12: chown.patch Patch13: cloop-honour-build-flags.patch +Patch14: mod_loader.patch URL: http://www.firebirdsql.org/ BuildRequires: autoconf >= 2.67 BuildRequires: automake @@ -87,6 +93,7 @@ Requires: %{name}-lib = %{version}-%{release} ExclusiveArch: %{ix86} %{x8664} x32 arm ia64 mips mipsel ppc sparc sparcv9 alpha BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define filterout -flto %define ibdir %{_libdir}/interbase %define specflags -fno-strict-aliasing %define debugcflags -O1 -g -Wall -fno-strict-aliasing @@ -189,24 +196,22 @@ Firebird Classic (inetd) init scripts. Skrypty startowe Firebirda w wersji Classic (inetd). %prep -%setup -q -n %{name}-%{version}-0 +%setup -q -n %{name}-%{version}-0-source %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 -%patch5 -p0 %patch6 -p1 %patch7 -p1 -%patch8 -p1 -%patch9 -p1 -%patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 +%patch14 -p1 mkdir docs -cp %{SOURCE1} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} docs +cp %{SOURCE1} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \ + %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} docs # not processed by configure %{__sed} -i -e 's/^CFLAGS.*$/& %{rpmcflags} %{rpmcppflags}/' extern/btyacc/Makefile @@ -220,7 +225,6 @@ cp %{SOURCE1} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %configure \ CFLAGS="%{rpmcflags} -fno-delete-null-pointer-checks" \ --prefix=%{ibdir} \ - --with-system-editline \ --with-fbconf=%{_sysconfdir}/firebird \ --with-fbinclude=%{_includedir} \ --with-fblib=%{_libdir} \ @@ -239,10 +243,10 @@ cp %{SOURCE1} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %install rm -rf $RPM_BUILD_ROOT -%{__make} -C src -f ../gen/Makefile.install buildImageDir +%{__make} -C src -f ../gen/Makefile.install buildRoot install -d $RPM_BUILD_ROOT%{_sysconfdir}/{firebird{,/conf.d},rc.d/init.d,sysconfig/rc-inetd} -install -d $RPM_BUILD_ROOT{%{_bindir},%{ibdir},%{_libdir},%{_includedir}} \ +install -d $RPM_BUILD_ROOT{%{_bindir},%{ibdir},%{_libdir},%{_includedir},%{_pkgconfigdir}} \ install -d $RPM_BUILD_ROOT/var/{log,lib/firebird} \ $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} install -d $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d @@ -250,16 +254,18 @@ install -d $RPM_BUILD_ROOT%{systemdunitdir} cp -p %{SOURCE103} $RPM_BUILD_ROOT%{_sysconfdir}/tmpfiles.d/firebird.conf touch $RPM_BUILD_ROOT/var/log/firebird.log +cp -p gen/install/misc/fbclient.pc $RPM_BUILD_ROOT%{_pkgconfigdir} + cd gen/buildroot -cp -p var/lib/firebird/security3.fdb $RPM_BUILD_ROOT/var/lib/firebird +cp -p var/lib/firebird/security5.fdb $RPM_BUILD_ROOT/var/lib/firebird cp -p etc/firebird/*.conf $RPM_BUILD_ROOT%{_sysconfdir}/firebird chmod 755 usr/include/firebird/impl cp -pr usr/include/* $RPM_BUILD_ROOT%{_includedir} cp -dp usr/%{_lib}/*.so* $RPM_BUILD_ROOT%{_libdir} cd .%{ibdir} -cp -a UDF bin help intl plugins firebird.msg $RPM_BUILD_ROOT%{ibdir} +cp -a bin intl plugins firebird.msg $RPM_BUILD_ROOT%{ibdir} ln -s %{ibdir}/intl $RPM_BUILD_ROOT%{_sysconfdir}/firebird -ln -s %{ibdir}/{UDF,bin,plugins,firebird.msg} $RPM_BUILD_ROOT%{_sysconfdir}/firebird +ln -s %{ibdir}/{bin,plugins,firebird.msg} $RPM_BUILD_ROOT%{_sysconfdir}/firebird chmod u+w -R examples # allow further cleaning cp -rf examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} @@ -276,7 +282,7 @@ rm -f $RPM_BUILD_ROOT%{ibdir}/bin/{FirebirdUninstall.sh,changeServerMode.sh} sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE100} >$RPM_BUILD_ROOT/etc/rc.d/init.d/firebird cp -p %{SOURCE101} $RPM_BUILD_ROOT/etc/sysconfig/firebird sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE104} >$RPM_BUILD_ROOT%{systemdunitdir}/firebird.service -install -d $RPM_BUILD_ROOT/var/run/firebird +install -d $RPM_BUILD_ROOT/run/firebird sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE102} >$RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/firebird sed -e 's|/usr/lib|%{_libdir}|' %{SOURCE105} >$RPM_BUILD_ROOT%{systemdunitdir}/firebird-classic@.service @@ -333,15 +339,15 @@ fi %files %defattr(644,root,root,755) -%doc doc/{license,sql.extensions,Firebird_conf.txt,README.user*,WhatsNew,fb2-todo.txt} +%doc doc/{license,sql.extensions,Firebird_conf.txt,README.user*} %dir %{_sysconfdir}/firebird %dir %{_sysconfdir}/firebird/conf.d %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/databases.conf %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/fbtrace.conf %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/firebird.conf %attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/plugins.conf +%attr(640,root,firebird) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/firebird/replication.conf %{_sysconfdir}/firebird/intl -%{_sysconfdir}/firebird/UDF %{_sysconfdir}/firebird/bin %{_sysconfdir}/firebird/firebird.msg %{_sysconfdir}/firebird/plugins @@ -354,32 +360,32 @@ fi %attr(755,root,root) %{_bindir}/gstat %attr(755,root,root) %{_bindir}/nbackup %attr(755,root,root) %{_libdir}/libib_util.so -%attr(755,root,root) %{ibdir}/UDF %attr(755,root,root) %{ibdir}/bin/* %exclude %{ibdir}/bin/fb_config %exclude %{ibdir}/bin/gpre %exclude %{ibdir}/bin/fbguard -%{ibdir}/help %dir %{ibdir}/intl %attr(755,root,root) %{ibdir}/intl/fbintl # should it be moved to %{_sysconfdir} and marked as config? %{ibdir}/intl/fbintl.conf %dir %{ibdir}/plugins +%attr(755,root,root) %{ibdir}/plugins/libChaCha.so +%attr(755,root,root) %{ibdir}/plugins/libDefault_Profiler.so %attr(755,root,root) %{ibdir}/plugins/libfbtrace.so -%attr(755,root,root) %{ibdir}/plugins/libCryptKeyHolder_example.so -%attr(755,root,root) %{ibdir}/plugins/libDbCrypt_example.so -%attr(755,root,root) %{ibdir}/plugins/libEngine12.so +%attr(755,root,root) %{ibdir}/plugins/libEngine13.so %attr(755,root,root) %{ibdir}/plugins/libLegacy_Auth.so %attr(755,root,root) %{ibdir}/plugins/libLegacy_UserManager.so %attr(755,root,root) %{ibdir}/plugins/libSrp.so %attr(755,root,root) %{ibdir}/plugins/libudr_engine.so %dir %{ibdir}/plugins/udr +%attr(755,root,root) %{ibdir}/plugins/udr/libudf_compat.so +%{ibdir}/plugins/udr/udf_compat.sql %attr(755,root,root) %{ibdir}/plugins/udr/libudrcpp_example.so %{ibdir}/plugins/udr_engine.conf %{ibdir}/firebird.msg %dir %attr(770,root,firebird) /var/lib/firebird -%attr(660,root,firebird) %config(noreplace) %verify(not md5 mtime size) /var/lib/firebird/security3.fdb +%attr(660,root,firebird) %config(noreplace) %verify(not md5 mtime size) /var/lib/firebird/security5.fdb %attr(660,root,firebird) %config(noreplace) %verify(not md5 mtime size) /var/log/firebird.log @@ -406,6 +412,7 @@ fi %attr(755,root,root) %{ibdir}/bin/fb_config %attr(755,root,root) %{ibdir}/bin/gpre %attr(755,root,root) %{_bindir}/gpre +%{_pkgconfigdir}/fbclient.pc %{_includedir}/firebird %{_includedir}/ib_util.h %{_includedir}/ibase.h @@ -424,7 +431,7 @@ fi %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/firebird %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/tmpfiles.d/firebird.conf %attr(755,root,root) %{ibdir}/bin/fbguard -%dir %attr(770,root,firebird) /var/run/firebird +%dir %attr(770,root,firebird) /run/firebird %{systemdunitdir}/firebird.service %files classic