Summary: Firebird Relational Database Server and Client tools. Name: FirebirdSS Version: 1.5.2.4731 Release: 2 License: IDL Group: Applications/Databases Source0: firebird-%{version}.tar.bz2 Source1: firebird.sh URL: http://firebird.sourceforge.net BuildRequires: autoconf automake byacc libtool BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(id -u -n) Conflicts: InterBaseCS InterBaseSS FirebirdCS %define FBroot /opt/firebird %description Firebird is a relational database offering many ANSI SQL-92 features that runs on Linux, Windows, and a variety of Unix platforms. Firebird offers excellent concurrency, high performance, and powerful language support for stored procedures and triggers. It has been used in production systems, under a variety of names since 1981. Firebird is a opensource project developing and enhancing a multi-platform relational database management system based on the source code released by Inprise Corp (now known again as Borland Software Corp). %package devel Summary: Firebird SQL development header files and libraries Group: Development/Libraries Requires: FirebirdSS = %{version}-%{release} %description devel This package contains the development header files and libraries necessary to develope your own Firebird SQL based applications. %prep %setup -q -n firebird-%{version} %build %configure --prefix=%{FBroot} --enable-superserver --with-editline %{__make} touch doc/none.pdf pushd gen/ install/makeInstallImage.sh popd %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/ install -d $RPM_BUILD_ROOT%{_sysconfdir}/ install -d $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/ install -d $RPM_BUILD_ROOT%{_initrddir}/ # Prepare docs mv gen/buildroot%{FBroot}/README doc/. mv gen/buildroot%{FBroot}/examples/ doc/. rm gen/buildroot%{FBroot}/WhatsNew rm -r gen/buildroot%{FBroot}/doc/ # Remove unneeded rm gen/buildroot%{FBroot}/bin/SSchangeRunUser.sh rm gen/buildroot%{FBroot}/bin/SSrestoreRootRunUser.sh rm -r gen/buildroot%{FBroot}/misc/ rm -r gen/buildroot/usr/ # Get all we need cp -R gen/buildroot/* $RPM_BUILD_ROOT/. # Copy additional files cp %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/firebird # Create gds_hosts.equiv echo "localhost" > $RPM_BUILD_ROOT%{_sysconfdir}/gds_hosts.equiv echo "localhost.localdomain" >> $RPM_BUILD_ROOT%{_sysconfdir}/gds_hosts.equiv # Create ld.so config echo "%{FBroot}/lib" > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/firebird.conf # Create SYSDBA.passwd echo "ISC_USER=sysdba" > $RPM_BUILD_ROOT%{FBroot}/SYSDBA.password echo "ISC_PASSWD=masterkey" >> $RPM_BUILD_ROOT%{FBroot}/SYSDBA.password # Create fbmgr shell cat > $RPM_BUILD_ROOT%{FBroot}/bin/fbmgr <> $SERV fi # Create lock files for i in isc_init1 isc_lock1 isc_event1 isc_guard1 ; do FileName=%{FBroot}/$i.`hostname` touch $FileName chmod 0660 $FileName chown firebird:firebird $FileName done # Create log file LogFile=%{FBroot}/firebird.log touch $LogFile chmod 0644 $LogFile chown firebird:firebird $LogFile # Start the server so we can change the password echo "Preparing SYSDBA default password:" /sbin/service firebird start # Generate new sysdba password NewPasswd=`ps ax | md5sum | cut -c -8` %{FBroot}/bin/changeDBAPassword.sh </dev/null 2>&1 || /sbin/chkconfig --del firebird fi %postun /sbin/ldconfig if [ $1 -eq 0 ] ; then # Clean /etc/services sed -i -e "/gds_db/d" /etc/services # Remove lock files rm -rf %{FBroot}/isc_* # Remove Firebird user /usr/sbin/userdel firebird else /sbin/service firebird condrestart > /dev/null 2>&1 || : fi %files %defattr(0644,root,root,0755) %doc ChangeLog doc/fb2-todo.txt doc/Firebird_conf.txt %doc doc/WhatsNew doc/README doc/README.user* %doc doc/sql.extensions/ %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/gds_hosts.equiv %attr(0750,firebird,firebird) %config(noreplace) %{_initrddir}/firebird %attr(0644,root,root) %{_sysconfdir}/ld.so.conf.d/firebird.conf %dir %{FBroot}/bin %attr(0500,firebird,firebird) %{FBroot}/bin/fbserver %attr(0500,firebird,firebird) %{FBroot}/bin/fbguard %attr(0555,firebird,firebird) %{FBroot}/bin/fbmgr %attr(0700,-,-) %{FBroot}/bin/changeDBAPassword.sh %attr(0700,-,-) %{FBroot}/bin/createAliasDB.sh %attr(0755,-,-) %{FBroot}/bin/fbmgr.bin %attr(0755,-,-) %{FBroot}/bin/fb_config %attr(0755,-,-) %{FBroot}/bin/fb_lock_print %attr(0755,-,-) %{FBroot}/bin/gbak %attr(0755,-,-) %{FBroot}/bin/gdef %attr(0755,-,-) %{FBroot}/bin/gfix %attr(0755,-,-) %{FBroot}/bin/gpre %attr(0755,-,-) %{FBroot}/bin/gsec %attr(0755,-,-) %{FBroot}/bin/gstat %attr(0755,-,-) %{FBroot}/bin/isql %attr(0755,-,-) %{FBroot}/bin/qli %config(noreplace) %{FBroot}/aliases.conf %config(noreplace) %{FBroot}/firebird.conf %attr(0600,firebird,firebird) %config(noreplace) %{FBroot}/security.fdb %attr(0600,-,-) %config(noreplace) %{FBroot}/SYSDBA.password %attr(0644,-,-) %ghost %{FBroot}/firebird.log %{FBroot}/*.msg %{FBroot}/UDF/ %{FBroot}/help/ %attr(0755,-,-) %{FBroot}/intl/ %dir %{FBroot}/lib %attr(0755,-,-) %{FBroot}/lib/libfbclient.so.* %attr(0755,-,-) %{FBroot}/lib/libib_util.so %files devel %doc doc/examples/ %{FBroot}/include/ %{FBroot}/lib/libfbclient.so %{FBroot}/lib/libgds.so %changelog * Thu Feb 24 2005 Petr Krištof 1.5.2.4731-2 - Fix file permissions - Add chkconfig to %post * Wed Feb 16 2005 Petr Krištof 1.5.2.4731-1 - Update to 1.5.2.4731 - Reworked spec file * Mon Nov 16 2004 Petr Krištof 1.5.2.4721-1 - Update to 1.5.2.4721 - Rebuild on FC-3 * Mon Nov 16 2001 Petr Krištof - Initial release for RH-7.2