|
|
|
@ -1,8 +1,12 @@
|
|
|
|
|
%global upversion 3.0.7.33374
|
|
|
|
|
%global upversion 4.0.0.2496
|
|
|
|
|
%global pkgversion Firebird-%{upversion}-0
|
|
|
|
|
|
|
|
|
|
%global major 3.0
|
|
|
|
|
%global major 4.0
|
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
# firebird is mis-compiled when LTO is enabled. A root
|
|
|
|
|
# cause analysis has not yet been completed. Reported upstream.
|
|
|
|
|
# Disable LTO for now
|
|
|
|
|
%global _lto_cflags %nil
|
|
|
|
|
|
|
|
|
|
Name: firebird
|
|
|
|
|
Version: %{upversion}
|
|
|
|
@ -12,41 +16,41 @@ Summary: SQL relational database management system
|
|
|
|
|
License: Interbase
|
|
|
|
|
URL: http://www.firebirdsql.org/
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/FirebirdSQL/firebird/releases/download/R3_0_7/%{pkgversion}.tar.bz2
|
|
|
|
|
Source0: https://github.com/FirebirdSQL/firebird/releases/download/v4.0.0/%{pkgversion}.tar.xz
|
|
|
|
|
Source1: firebird-logrotate
|
|
|
|
|
Source2: README.Fedora
|
|
|
|
|
Source3: firebird-superserver.service
|
|
|
|
|
Source3: firebird.service
|
|
|
|
|
Source4: fb_config
|
|
|
|
|
|
|
|
|
|
# from OpenSuse
|
|
|
|
|
Patch101: add-pkgconfig-files.patch
|
|
|
|
|
Patch103: Provide-sized-global-delete-operators-when-compiled.patch
|
|
|
|
|
|
|
|
|
|
# from Debian to be sent upstream
|
|
|
|
|
Patch201: obsolete-syslogd.target.patch
|
|
|
|
|
Patch202: honour-buildflags.patch
|
|
|
|
|
Patch203: no-copy-from-icu.patch
|
|
|
|
|
Patch205: cloop-honour-build-flags.patch
|
|
|
|
|
|
|
|
|
|
# from upstream
|
|
|
|
|
|
|
|
|
|
# Support for riscv64, sent upstream:
|
|
|
|
|
# http://tracker.firebirdsql.org/browse/CORE-5779
|
|
|
|
|
Patch401: 0001-Port-to-RISC-V-64-bit-riscv64.patch
|
|
|
|
|
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: libtommath-devel
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: libstdc++-static
|
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
BuildRequires: procmail
|
|
|
|
|
# Firebird 4 have build issues (bz 1969393)
|
|
|
|
|
ExcludeArch: s390x
|
|
|
|
|
|
|
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: libtommath-devel
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
|
BuildRequires: libicu-devel
|
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: libstdc++-static
|
|
|
|
|
BuildRequires: systemd-units
|
|
|
|
|
BuildRequires: chrpath
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
BuildRequires: procmail
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: libtomcrypt-devel
|
|
|
|
|
BuildRequires: unzip
|
|
|
|
|
BuildRequires: sed
|
|
|
|
|
|
|
|
|
|
Requires(postun): /usr/sbin/userdel
|
|
|
|
|
Requires(postun): /usr/sbin/groupdel
|
|
|
|
@ -60,18 +64,18 @@ Requires: libfbclient2 = %{version}-%{release}
|
|
|
|
|
Requires: libib-util = %{version}-%{release}
|
|
|
|
|
Requires: %{name}-utils = %{version}-%{release}
|
|
|
|
|
|
|
|
|
|
Obsoletes: firebird-arch < 3.0
|
|
|
|
|
Obsoletes: firebird-filesystem < 3.0
|
|
|
|
|
Obsoletes: firebird-classic-common < 3.0
|
|
|
|
|
Obsoletes: firebird-classic < 3.0
|
|
|
|
|
Obsoletes: firebird-superclassic < 3.0
|
|
|
|
|
Obsoletes: firebird-superserver < 3.0
|
|
|
|
|
Conflicts: firebird-arch < 3.0
|
|
|
|
|
Conflicts: firebird-filesystem < 3.0
|
|
|
|
|
Conflicts: firebird-classic-common < 3.0
|
|
|
|
|
Conflicts: firebird-classic < 3.0
|
|
|
|
|
Conflicts: firebird-superclassic < 3.0
|
|
|
|
|
Conflicts: firebird-superserver < 3.0
|
|
|
|
|
Obsoletes: firebird-arch < 4.0
|
|
|
|
|
Obsoletes: firebird-filesystem < 4.0
|
|
|
|
|
Obsoletes: firebird-classic-common < 4.0
|
|
|
|
|
Obsoletes: firebird-classic < 4.0
|
|
|
|
|
Obsoletes: firebird-superclassic < 4.0
|
|
|
|
|
Obsoletes: firebird-superserver < 4.0
|
|
|
|
|
Conflicts: firebird-arch < 4.0
|
|
|
|
|
Conflicts: firebird-filesystem < 4.0
|
|
|
|
|
Conflicts: firebird-classic-common < 4.0
|
|
|
|
|
Conflicts: firebird-classic < 4.0
|
|
|
|
|
Conflicts: firebird-superclassic < 4.0
|
|
|
|
|
Conflicts: firebird-superserver < 4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -114,9 +118,9 @@ in production systems, under a variety of names, since 1981.
|
|
|
|
|
|
|
|
|
|
%package -n libfbclient2
|
|
|
|
|
Summary: Firebird SQL server client library
|
|
|
|
|
Obsoletes: firebird-libfbclient < 3.0
|
|
|
|
|
Conflicts: firebird-libfbclient < 3.0
|
|
|
|
|
Obsoletes: firebird-libfbembed < 3.0
|
|
|
|
|
Obsoletes: firebird-libfbclient < 4.0
|
|
|
|
|
Conflicts: firebird-libfbclient < 4.0
|
|
|
|
|
Obsoletes: firebird-libfbembed < 4.0
|
|
|
|
|
|
|
|
|
|
%description -n libfbclient2
|
|
|
|
|
Shared client library for Firebird SQL server.
|
|
|
|
@ -191,43 +195,39 @@ in production systems, under a variety of names, since 1981.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pkgversion}
|
|
|
|
|
%patch101 -p1
|
|
|
|
|
%patch103 -p1
|
|
|
|
|
%patch201 -p1
|
|
|
|
|
%patch202 -p1
|
|
|
|
|
%patch203 -p1
|
|
|
|
|
%patch205 -p1
|
|
|
|
|
%patch401 -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
|
export CXXFLAGS="${CFLAGS} -fno-delete-null-pointer-checks"
|
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
|
%configure --prefix=%{_prefix} \
|
|
|
|
|
--disable-binreloc \
|
|
|
|
|
%configure --disable-rpath --prefix=%{_prefix} \
|
|
|
|
|
--with-system-editline \
|
|
|
|
|
--with-fbbin=%{_bindir} --with-fbsbin=%{_sbindir} \
|
|
|
|
|
--with-fbconf=%{_sysconfdir}/%{name} \
|
|
|
|
|
--with-fblib=%{_libdir} --with-fbinclude=%{_includedir}/%{name} \
|
|
|
|
|
--with-fblib=%{_libdir} --with-fbinclude=%{_includedir} \
|
|
|
|
|
--with-fbdoc=%{_defaultdocdir}/%{name} \
|
|
|
|
|
--with-fbudf=%{_libdir}/%{name}/udf \
|
|
|
|
|
--with-fbsample=%{_defaultdocdir}/%{name}/sample \
|
|
|
|
|
--with-fbsample-db=%{_localstatedir}/lib/%{name}/data/ \
|
|
|
|
|
--with-fbhelp=%{_localstatedir}/lib/%{name}/system/ \
|
|
|
|
|
--with-fbsample-db=%{_localstatedir}/lib/%{name}/data \
|
|
|
|
|
--with-fbhelp=%{_localstatedir}/lib/%{name}/system \
|
|
|
|
|
--with-fbintl=%{_libdir}/%{name}/intl \
|
|
|
|
|
--with-fbmisc=%{_datadir}/%{name}/misc \
|
|
|
|
|
--with-fbsecure-db=%{_localstatedir}/lib/%{name}/secdb/ \
|
|
|
|
|
--with-fbmsg=%{_localstatedir}/lib/%{name}/system/ \
|
|
|
|
|
--with-fbsecure-db=%{_localstatedir}/lib/%{name}/secdb \
|
|
|
|
|
--with-fbmsg=%{_localstatedir}/lib/%{name}/system \
|
|
|
|
|
--with-fblog=%{_localstatedir}/log/%{name} \
|
|
|
|
|
--with-fbglock=%{_var}/run/%{name} \
|
|
|
|
|
--with-fbplugins=%{_libdir}/%{name}/plugins
|
|
|
|
|
--with-fbglock=/run/%{name} \
|
|
|
|
|
--with-fbplugins=%{_libdir}/%{name}/plugins \
|
|
|
|
|
--with-fbtzdata=%{_localstatedir}/lib/%{name}/tzdata
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
cd gen
|
|
|
|
|
make -f Makefile.install buildRoot
|
|
|
|
|
sed -i '/linkFiles "/d' ./install/makeInstallImage.sh
|
|
|
|
|
./install/makeInstallImage.sh
|
|
|
|
|
chmod -R u+w buildroot%{_docdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
chmod u+rw,a+rx gen/buildroot/usr/include/firebird/firebird/impl
|
|
|
|
|
chmod u+rw,a+rx gen/buildroot/%{_includedir}/firebird/impl
|
|
|
|
|
cp -r gen/buildroot/* ${RPM_BUILD_ROOT}/
|
|
|
|
|
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/pkgconfig
|
|
|
|
|
cp -v gen/install/misc/*.pc ${RPM_BUILD_ROOT}%{_libdir}/pkgconfig/
|
|
|
|
@ -236,30 +236,27 @@ cd ${RPM_BUILD_ROOT}
|
|
|
|
|
rm -vf .%{_sbindir}/*.sh
|
|
|
|
|
mv -v .%{_sbindir}/fb_config .%{_libdir}/
|
|
|
|
|
install -p -m 0755 %{SOURCE4} %{buildroot}%{_sbindir}/fb_config
|
|
|
|
|
rm -vf .%{_includedir}/%{name}/perf.h
|
|
|
|
|
rm -vf .%{_includedir}/perf.h
|
|
|
|
|
rm -vf .%{_libdir}/libicu*.so
|
|
|
|
|
rm -vf .%{_includedir}/*.h
|
|
|
|
|
chmod -R u+w .%{_docdir}/%{name}
|
|
|
|
|
rm -vf .%{_datadir}/%{name}/misc/firebird.init.*
|
|
|
|
|
rm -vf .%{_datadir}/%{name}/misc/firebird.xinetd
|
|
|
|
|
rm -vf .%{_datadir}/%{name}/misc/rc.config.firebird
|
|
|
|
|
mv -v .%{_sysconfdir}/%{name}/README .%{_sysconfdir}/%{name}/WhatsNew \
|
|
|
|
|
mv -v .%{_datadir}/%{name}/misc/upgrade/udf/* .%{_docdir}/%{name}/
|
|
|
|
|
rm -rvf .%{_datadir}/%{name}/misc
|
|
|
|
|
mv -v .%{_sysconfdir}/%{name}/README.md .%{_sysconfdir}/%{name}/CHANGELOG.md \
|
|
|
|
|
.%{_docdir}/%{name}/
|
|
|
|
|
mv -v .%{_sysconfdir}/%{name}/IDPLicense.txt .%{_docdir}/%{name}/
|
|
|
|
|
mv -v .%{_sysconfdir}/%{name}/IPLicense.txt .%{_docdir}/%{name}/
|
|
|
|
|
install -p -m 0644 -D %{SOURCE2} .%{_docdir}/%{name}/README.Fedora
|
|
|
|
|
mv -v .%{_bindir}/gstat .%{_bindir}/gstat-fb
|
|
|
|
|
mv -v .%{_bindir}/isql .%{_bindir}/isql-fb
|
|
|
|
|
rm -rvf .%{_defaultdocdir}/%{name}/sample/prebuilt
|
|
|
|
|
|
|
|
|
|
mkdir -p .%{_localstatedir}/log/%{name}
|
|
|
|
|
mkdir -p .%{_sysconfdir}/logrotate.d
|
|
|
|
|
echo 1 > .%{_localstatedir}/log/%{name}/%{name}.log
|
|
|
|
|
sed "s@%{name}.log@%{_localstatedir}/log/%{name}/%{name}.log@g" %{SOURCE1} > .%{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
|
|
|
|
|
|
cp -f %{SOURCE3} .%{_datadir}/%{name}/misc/%{name}-superserver.service
|
|
|
|
|
|
|
|
|
|
mkdir -p .%{_unitdir}
|
|
|
|
|
cp .%{_datadir}/%{name}/misc/%{name}-superserver.service .%{_unitdir}/%{name}-superserver.service
|
|
|
|
|
cp -f %{SOURCE3} .%{_unitdir}/%{name}.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
@ -277,15 +274,15 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post firebird-superserver.service
|
|
|
|
|
%systemd_post firebird.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart firebird-superserver.service
|
|
|
|
|
%systemd_postun_with_restart firebird.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun firebird-superserver.service
|
|
|
|
|
%systemd_preun firebird.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
@ -301,30 +298,32 @@ fi
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/fbtrace.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/firebird.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/plugins.conf
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/replication.conf
|
|
|
|
|
%dir %{_libdir}/%{name}
|
|
|
|
|
%dir %{_datadir}/%{name}
|
|
|
|
|
%{_libdir}/%{name}/intl
|
|
|
|
|
%{_libdir}/%{name}/plugins
|
|
|
|
|
%{_libdir}/%{name}/udf
|
|
|
|
|
%{_datadir}/%{name}/misc
|
|
|
|
|
|
|
|
|
|
%dir %{_localstatedir}/lib/%{name}
|
|
|
|
|
%dir %attr(0700,%{name},%{name}) %{_localstatedir}/lib/%{name}/secdb
|
|
|
|
|
%dir %attr(0700,%{name},%{name}) %{_localstatedir}/lib/%{name}/data
|
|
|
|
|
%dir %attr(0755,%{name},%{name}) %{_localstatedir}/lib/%{name}/system
|
|
|
|
|
%attr(0600,firebird,firebird) %config(noreplace) %{_localstatedir}/lib/%{name}/secdb/security3.fdb
|
|
|
|
|
%dir %attr(0755,%{name},%{name}) %{_localstatedir}/lib/%{name}/tzdata
|
|
|
|
|
%attr(0600,firebird,firebird) %config(noreplace) %{_localstatedir}/lib/%{name}/secdb/security4.fdb
|
|
|
|
|
%attr(0644,firebird,firebird) %{_localstatedir}/lib/%{name}/system/help.fdb
|
|
|
|
|
%attr(0644,firebird,firebird) %{_localstatedir}/lib/%{name}/system/firebird.msg
|
|
|
|
|
%ghost %dir %attr(0775,%{name},%{name}) %{_var}/run/%{name}
|
|
|
|
|
%ghost %attr(0644,%{name},%{name}) %{_var}/run/%{name}/fb_guard
|
|
|
|
|
%attr(0644,firebird,firebird) %{_localstatedir}/lib/%{name}/tzdata/*.res
|
|
|
|
|
%ghost %dir %attr(0775,%{name},%{name}) /run/%{name}
|
|
|
|
|
%ghost %attr(0644,%{name},%{name}) /run/%{name}/fb_guard
|
|
|
|
|
%dir %{_localstatedir}/log/%{name}
|
|
|
|
|
%config(noreplace) %attr(0664,%{name},%{name}) %{_localstatedir}/log/%{name}/%{name}.log
|
|
|
|
|
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}
|
|
|
|
|
|
|
|
|
|
%attr(0644,root,root) %{_unitdir}/%{name}-superserver.service
|
|
|
|
|
%attr(0644,root,root) %{_unitdir}/%{name}.service
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/*.h
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
%{_libdir}/fb_config
|
|
|
|
|
%{_sbindir}/fb_config
|
|
|
|
@ -369,6 +368,9 @@ fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Jun 08 2021 Philippe Makowski <makowski@fedoraproject.org> - 4.0.0.2496-1
|
|
|
|
|
- Update to 4.0.0 (#1963311)
|
|
|
|
|
|
|
|
|
|
* Fri Oct 23 2020 Philippe Makowski <makowski@fedoraproject.org> - 3.0.7.33374-1
|
|
|
|
|
- new upstream release fix #1887991
|
|
|
|
|
|
|
|
|
|