a1c0d45
%global pkgname Firebird-2.1.3.18185-0
87fcb48
%global fbroot	%{_libdir}/%{name}
a1c0d45
%global major	2.1.3
87fcb48
87fcb48
87fcb48
Summary:	SQL relational database management system
87fcb48
Name:		firebird
a1c0d45
Version:	2.1.3.18185.0
a1c0d45
Release:	1%{?dist}
87fcb48
87fcb48
Group:		Applications/Databases
87fcb48
License:	Interbase
87fcb48
URL:		http://www.firebirdsql.org/
87fcb48
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot
87fcb48
a1c0d45
#Source0:	http://downloads.sourceforge.net/firebird/%{pkgname}.tar.bz2
a1c0d45
Source0:	http://firebirdsql.org/downloads/prerelease/source/%{pkgname}.RC2.tar.bz2
bccecf9
Source1:	firebird-logrotate
bccecf9
Source2:	README.Fedora
87fcb48
87fcb48
Patch0:		firebird-mcpu-to-mtune.patch
a1c0d45
#Patch1:		firebird-2.1.2-doc.patch
87fcb48
Patch2:		firebird-fix-initscript.patch
380f755
Patch3:		firebird_lock-file-location.patch
8f77c91
Patch4:		firebird-gcc-icu.patch
87fcb48
87fcb48
87fcb48
BuildRequires:	autoconf
87fcb48
BuildRequires:	automake
87fcb48
BuildRequires:	bison
87fcb48
BuildRequires:	libtool
87fcb48
BuildRequires:	ncurses-devel
87fcb48
BuildRequires:	libtermcap-devel
87fcb48
BuildRequires:	libicu-devel
bccecf9
BuildRequires:	gcc-c++
87fcb48
380f755
Requires:	%{name}-arch = %{version}-%{release}
87fcb48
Requires:	grep
87fcb48
Requires:	sed
87fcb48
Requires(post):		/sbin/ldconfig
87fcb48
Requires(postun):	/sbin/ldconfig
87fcb48
Requires(postun):	/usr/sbin/userdel
87fcb48
Requires(postun):	/usr/sbin/groupdel
87fcb48
Requires(pre):		/usr/sbin/groupadd
87fcb48
Requires(pre):		/usr/sbin/useradd
87fcb48
Requires:		%{name}-libfbclient
87fcb48
Requires:		logrotate
87fcb48
87fcb48
%description
87fcb48
This package contains common files between firebird-classic and
87fcb48
firebird-superserver. You will need this if you want to use either one.
87fcb48
87fcb48
%package		doc
87fcb48
Summary:		Documentation for Firebird SQL RDBMS
87fcb48
Group:			Applications/Databases
87fcb48
87fcb48
%description	doc
87fcb48
This are the Firebird SQL Database shared doc and examples files.
87fcb48
87fcb48
%package		filesystem
87fcb48
Summary:		Filesystem for Firebird SQL RDBMS
87fcb48
Group:			Applications/Databases
87fcb48
87fcb48
%description	filesystem
87fcb48
This is the Firebird SQL Database root file system.
87fcb48
87fcb48
%package		devel
87fcb48
Summary:		Development Libraries for Firebird SQL RDBMS
87fcb48
Group:			Applications/Databases
87fcb48
Requires:		%{name}-libfbclient = %{version}-%{release}
87fcb48
Requires:		%{name}-libfbembed = %{version}-%{release}
87fcb48
87fcb48
87fcb48
%description	devel
87fcb48
Development libraries for firebird.
87fcb48
87fcb48
%package		classic
87fcb48
Summary:		Classic (xinetd) server for Firebird SQL RDBMS
87fcb48
Group:			Applications/Databases
380f755
Provides:		%{name}-arch = %{version}-%{release}
87fcb48
Requires:		xinetd
380f755
Requires:		%{name} = %{version}-%{release}
87fcb48
Conflicts:		%{name}-superserver
380f755
Requires:		%{name}-libfbembed = %{version}-%{release}
87fcb48
87fcb48
87fcb48
%description	classic
87fcb48
This is the classic (xinetd) server Firebird SQL RDBMS.
87fcb48
It can also be used as an embedded server, when paired with the
87fcb48
client-embedded package.
87fcb48
87fcb48
%package		superserver
87fcb48
Summary:		Superserver (single process) server for Firebird SQL RDBMS
87fcb48
Group:			Applications/Databases
380f755
Provides:		%{name}-arch = %{version}-%{release}
380f755
Requires:		%{name} = %{version}-%{release}
87fcb48
Conflicts:		%{name}-classic
87fcb48
87fcb48
87fcb48
%description		superserver
87fcb48
This is the Superserver (single process) Firebird SQL RDBMS.
87fcb48
87fcb48
87fcb48
%package		libfbclient
87fcb48
Summary:		Multi-threaded, non-local client libraries for Firebird SQL RDBMS
87fcb48
Group:			System Environment/Libraries
87fcb48
Requires(post):		/sbin/ldconfig
87fcb48
Requires(postun):	/sbin/ldconfig
380f755
Requires:		%{name}-filesystem 
87fcb48
87fcb48
%description		libfbclient
87fcb48
Multi-threaded, non-local client libraries for Firebird SQL Database
87fcb48
87fcb48
87fcb48
%package		libfbembed
87fcb48
Summary:		Multi-process, local client libraries for Firebird SQL RDBMS
87fcb48
Group:			System Environment/Libraries
87fcb48
Requires(post):		/sbin/ldconfig
87fcb48
Requires(postun):	/sbin/ldconfig
380f755
Requires:		%{name}-filesystem 
87fcb48
87fcb48
%description		libfbembed
87fcb48
Multi-process, local client libraries for Firebird SQL RDBMS
87fcb48
87fcb48
87fcb48
%prep
87fcb48
%setup -q -n %{pkgname}
87fcb48
# convert intl character to UTF-8
87fcb48
iconv	-f	ISO-8859-1	-t	utf-8	-c	./doc/README.intl					-o	./doc/README.intl
87fcb48
# backport patch
87fcb48
%patch2
a1c0d45
#%patch1
87fcb48
%patch0
380f755
%patch3
8f77c91
%patch4
87fcb48
87fcb48
%build
87fcb48
87fcb48
# classic
bccecf9
%ifarch	sparc64 
bccecf9
export CXXFLAGS='-m64'
bccecf9
export CFLAGS='-m64'
bccecf9
export LDFLAGS='-m64'
bccecf9
%endif
bccecf9
%ifarch	sparcv9 
bccecf9
export CXXFLAGS='-m32'
bccecf9
export CFLAGS='-m32'
bccecf9
export LDFLAGS='-m32'
bccecf9
%endif
bccecf9
a1c0d45
%ifarch	ppc64
87fcb48
autoreconf -vfi
bccecf9
%configure --prefix=%{fbroot}	\
87fcb48
		--with-system-icu	
a1c0d45
%else
a1c0d45
./autogen.sh	--prefix=%{fbroot}	\
a1c0d45
		--with-system-icu		
a1c0d45
%endif
bccecf9
bccecf9
%ifarch	sparc64 
bccecf9
sed	"s@COMMON_FLAGS=-m32@COMMON_FLAGS=-m64@"	-i	./gen/make.platform	
bccecf9
%endif
87fcb48
		
87fcb48
# Can't use make %{?_smp_mflags} as parallel build is broken
87fcb48
make
87fcb48
87fcb48
cd gen
87fcb48
87fcb48
./install/makeInstallImage.sh
87fcb48
87fcb48
# here we patch a bug in the configure script
87fcb48
%ifarch	ppc64
87fcb48
mv	-f	./buildroot/usr/lib/*		./buildroot/%{_libdir}
87fcb48
%endif
87fcb48
87fcb48
mv		./buildroot/ buildroot-classic
87fcb48
chmod 644	./buildroot-classic%{fbroot}/help/help.fdb
87fcb48
cd ..
87fcb48
87fcb48
# superserver
a1c0d45
%ifarch	ppc64
bccecf9
autoreconf -vfi
bccecf9
%configure --prefix=%{fbroot}	\
87fcb48
		--enable-superserver	\
87fcb48
		--with-system-icu	
a1c0d45
%else
a1c0d45
./autogen.sh	--prefix=%{fbroot}	\
a1c0d45
		--enable-superserver	\
a1c0d45
		--with-system-icu	
a1c0d45
%endif
87fcb48
		
bccecf9
%ifarch	sparc64 
bccecf9
sed	"s@COMMON_FLAGS=-m32@COMMON_FLAGS=-m64@"	-i	./gen/make.platform	
bccecf9
%endif
bccecf9
87fcb48
# Can't use make %{?_smp_mflags} as parallel build is broken
87fcb48
make
87fcb48
87fcb48
cd gen
87fcb48
./install/makeInstallImage.sh
87fcb48
87fcb48
# here we patch a bug in the configure script
87fcb48
%ifarch	ppc64
87fcb48
mv	-f	./buildroot/usr/lib/*		./buildroot/%{_libdir}
87fcb48
%endif
87fcb48
87fcb48
mv		./buildroot/ buildroot-superserver
87fcb48
chmod 644	./buildroot-superserver%{fbroot}/help/help.fdb
87fcb48
87fcb48
87fcb48
87fcb48
%install
87fcb48
# we wanted to setup both Classic and Superserver, we need to do all here
87fcb48
rm -Rf %{buildroot}
87fcb48
install	-d	%{buildroot}
87fcb48
87fcb48
cd	%{buildroot}
87fcb48
87fcb48
mkdir	-p	%{buildroot}%{_sysconfdir}/%{name}
87fcb48
mkdir	-p	%{buildroot}%{_initrddir} 
87fcb48
mkdir	-p	%{buildroot}%{_sysconfdir}/xinetd.d
87fcb48
mkdir	-p	%{buildroot}%{_sysconfdir}/profile.d
87fcb48
mkdir	-p	%{buildroot}%{_sysconfdir}/logrotate.d
87fcb48
mkdir	-p	%{buildroot}%{_var}/run/%{name}
87fcb48
mkdir	-p	%{buildroot}%{_localstatedir}/lib/%{name}
87fcb48
mkdir	-p	%{buildroot}%{_localstatedir}/lib/%{name}/data
bccecf9
mkdir	-p	%{buildroot}%{_localstatedir}/lib/%{name}/system
87fcb48
mkdir	-p	%{buildroot}%{_localstatedir}/log/%{name}
87fcb48
mkdir	-p	%{buildroot}%{_includedir}/%{name}
87fcb48
mkdir	-p	%{buildroot}%{_libdir}
87fcb48
mkdir	-p	%{buildroot}%{fbroot}
87fcb48
mkdir	-p	%{buildroot}%{fbroot}/help
87fcb48
mkdir	-p	%{buildroot}%{fbroot}/intl
87fcb48
mkdir	-p	%{buildroot}%{fbroot}/lib
87fcb48
mkdir	-p	%{buildroot}%{fbroot}/include
87fcb48
mkdir	-p	%{buildroot}%{fbroot}/bin-classic
87fcb48
mkdir	-p	%{buildroot}%{fbroot}/UDF-classic
87fcb48
mkdir	-p	%{buildroot}%{fbroot}/bin-superserver
87fcb48
mkdir	-p	%{buildroot}%{fbroot}/UDF-superserver
380f755
mkdir	-p	%{buildroot}%{_bindir} 
87fcb48
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/examples/empbuild/employee.fdb		%{buildroot}%{_localstatedir}/lib/%{name}/data/employee.fdb
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/help/help.fdb		%{buildroot}%{fbroot}/help/help.fdb
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/*.msg		%{buildroot}%{fbroot}/
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/intl/fbintl		%{buildroot}%{fbroot}/intl/fbintl
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/lib/libib_util.so		%{buildroot}%{fbroot}/lib/
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/lib/libfbclient.so.%{major}		%{buildroot}%{fbroot}/lib/
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/lib/libfbembed.so.%{major}		%{buildroot}%{fbroot}/lib/
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/bin/*		%{buildroot}%{fbroot}/bin-classic/
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/UDF/*		%{buildroot}%{fbroot}/UDF-classic/
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-superserver%{fbroot}/bin/*		%{buildroot}%{fbroot}/bin-superserver/
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-superserver%{fbroot}/UDF/*		%{buildroot}%{fbroot}/UDF-superserver/
87fcb48
87fcb48
cd	%{buildroot}%{fbroot}/bin-superserver/
bccecf9
ln	-s	fbmgr.bin	fbmgr
87fcb48
cd	%{buildroot}
87fcb48
a1c0d45
major2=`echo %{major} | sed 's|\.[0-9]*$||'`
a1c0d45
major1=`echo ${major2} | sed 's|\.[0-9]*$||'` 
87fcb48
cd	%{buildroot}%{fbroot}/lib/
a1c0d45
ln	-s	%{fbroot}/lib/libfbembed.so.%{major}	libfbembed.so.%{major2} 
a1c0d45
ln	-s	%{fbroot}/lib/libfbembed.so.%{major2} 	libfbembed.so
a1c0d45
ln	-s	%{fbroot}/lib/libfbclient.so.%{major}	libfbclient.so.%{major1} 
a1c0d45
ln	-s	%{fbroot}/lib/libfbclient.so.%{major1}	libfbclient.so
87fcb48
cd	%{buildroot}
87fcb48
87fcb48
cd	%{buildroot}%{_libdir}
87fcb48
ln	-s	%{fbroot}/lib/libfbembed.so	libfbembed.so
a1c0d45
ln	-s	%{fbroot}/lib/libfbembed.so.%{major2}	libfbembed.so.%{major2}
87fcb48
ln	-s	%{fbroot}/lib/libfbembed.so.%{major}	libfbembed.so.%{major}
87fcb48
ln	-s	%{fbroot}/lib/libfbclient.so	libfbclient.so
a1c0d45
ln	-s	%{fbroot}/lib/libfbclient.so.%{major1}	libfbclient.so.%{major1}
87fcb48
ln	-s	%{fbroot}/lib/libfbclient.so.%{major}	libfbclient.so.%{major}
bccecf9
ln	-s	%{fbroot}/lib/libfbclient.so.%{major}	libgds.so.0
bccecf9
ln	-s	%{fbroot}/lib/libfbclient.so	libgds.so
87fcb48
ln	-s	%{fbroot}/lib/libib_util.so	libib_util.so
87fcb48
cd	%{buildroot}
87fcb48
87fcb48
echo 1 > %{buildroot}%{_localstatedir}/log/%{name}/%{name}.log
87fcb48
ln	-s	%{_localstatedir}/log/%{name}/%{name}.log	.%{fbroot}/%{name}.log	
bccecf9
sed	"s@%{name}.log@%{_localstatedir}/log/%{name}/%{name}.log@g"	%{SOURCE1}	>	%{buildroot}%{_sysconfdir}/logrotate.d/%{name}
87fcb48
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/include/*		%{buildroot}%{_includedir}/%{name}/
87fcb48
cd	%{buildroot}%{fbroot}/include/
87fcb48
ln	-s	%{_includedir}/%{name}/ibase.h	ibase.h
87fcb48
ln	-s	%{_includedir}/%{name}/iberror.h	iberror.h
87fcb48
ln	-s	%{_includedir}/%{name}/ib_util.h	ib_util.h
87fcb48
ln	-s	%{_includedir}/%{name}/perf.h	perf.h
bccecf9
cd	%{buildroot}%{_includedir}
bccecf9
ln	-s	%{_includedir}/%{name}/ibase.h	ibase.h
bccecf9
ln	-s	%{_includedir}/%{name}/iberror.h	iberror.h
bccecf9
ln	-s	%{_includedir}/%{name}/ib_util.h	ib_util.h
bccecf9
ln	-s	%{_includedir}/%{name}/perf.h	perf.h
87fcb48
cd	%{buildroot}
87fcb48
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/aliases.conf	.%{_sysconfdir}/%{name}/aliases.conf
87fcb48
sed	"s@%{fbroot}/examples/empbuild@%{_localstatedir}/lib/%{name}/data@"	-i	.%{_sysconfdir}/%{name}/aliases.conf	
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/firebird.conf	.%{_sysconfdir}/%{name}/firebird.conf
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/intl/fbintl.conf	.%{_sysconfdir}/%{name}/fbintl.conf
bccecf9
cp	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/security2.fdb	.%{_localstatedir}/lib/%{name}/system/security2.fdb
87fcb48
87fcb48
ln	-s	%{_sysconfdir}/%{name}/aliases.conf	.%{fbroot}/aliases.conf
87fcb48
ln	-s	%{_sysconfdir}/%{name}/firebird.conf	.%{fbroot}/firebird.conf
bccecf9
ln	-s	%{_localstatedir}/lib/%{name}/system/security2.fdb	.%{fbroot}/security2.fdb
87fcb48
ln	-s	%{_sysconfdir}/%{name}/fbintl.conf	.%{fbroot}/intl/fbintl.conf
87fcb48
bccecf9
sed	"s@= root@= %{name}@"	%{_builddir}/%{pkgname}/gen/buildroot-classic%{fbroot}/misc/%{name}.xinetd	>	%{buildroot}%{_sysconfdir}/xinetd.d/%{name}
87fcb48
cp	%{_builddir}/%{pkgname}/gen/buildroot-superserver%{fbroot}/misc/%{name}.init.d.mandrake	%{buildroot}%{_initrddir}/%{name}
a1c0d45
#sed	"s@chkconfig: 345@chkconfig: -@"	-i	%{buildroot}%{_initrddir}/%{name}	
87fcb48
bccecf9
sed	"s@%%{fbroot}@%{fbroot}@g"	%{SOURCE2}	>	%{_builddir}/%{pkgname}/doc/README.Fedora
380f755
ln	-s	%{_var}/run/%{name}	.%{fbroot}/run
bccecf9
ln	-s	%{fbroot}/bin/isql	.%{_bindir}/isql-fb
380f755
ln	-s	%{fbroot}/bin/gbak	.%{_bindir}/gbak
380f755
ln	-s	%{fbroot}/bin/gfix	.%{_bindir}/gfix
380f755
ln	-s	%{fbroot}/bin/gsec	.%{_bindir}/gsec
380f755
ln	-s	%{fbroot}/bin/nbackup	.%{_bindir}/nbackup
380f755
ln	-s	%{fbroot}/bin/gstat	.%{_bindir}/gstat
380f755
87fcb48
 
87fcb48
%clean
87fcb48
rm -Rf %{buildroot}
87fcb48
87fcb48
%post	libfbclient -p /sbin/ldconfig
87fcb48
87fcb48
%postun	libfbclient -p /sbin/ldconfig
87fcb48
87fcb48
%post	libfbembed -p /sbin/ldconfig
87fcb48
87fcb48
%postun	libfbembed -p /sbin/ldconfig
87fcb48
87fcb48
%post	classic
bccecf9
if [ "$(readlink %{fbroot}/bin 2> /dev/null)" \!= "%{fbroot}/bin-classic" ]; then 
bccecf9
	[ -e %{fbroot}/bin ] && rm -f %{fbroot}/bin
87fcb48
	ln -s %{fbroot}/bin{-classic,}
87fcb48
fi
bccecf9
if [ "$(readlink %{fbroot}/UDF 2> /dev/null)" \!= "%{fbroot}/UDF-classic" ]; then 
bccecf9
	[ -e %{fbroot}/UDF ] && rm -f %{fbroot}/bin
87fcb48
	ln -s %{fbroot}/UDF{-classic,}
87fcb48
fi
87fcb48
if /sbin/service xinetd status >& /dev/null; then
380f755
	/sbin/service xinetd reload &>/dev/null || :
87fcb48
fi
87fcb48
87fcb48
%preun	classic
87fcb48
if [ $1 -eq 0 ]; then
87fcb48
	if /sbin/service xinetd status >& /dev/null; then
380f755
		/sbin/service xinetd reload &>/dev/null || :
87fcb48
	fi
87fcb48
	if [ "$(readlink %{fbroot}/bin 2> /dev/null)" = "%{fbroot}/bin-classic" ]; then
87fcb48
		rm -f %{fbroot}/bin
87fcb48
	fi
87fcb48
	if [ "$(readlink %{fbroot}/UDF 2> /dev/null)" = "%{fbroot}/UDF-classic" ]; then
87fcb48
		rm -f %{fbroot}/UDF
87fcb48
	fi
87fcb48
fi
87fcb48
87fcb48
87fcb48
%post	superserver
bccecf9
if [ "$(readlink %{fbroot}/bin 2> /dev/null)" \!= "%{fbroot}/bin-superserver" ]; then 
bccecf9
	[ -e %{fbroot}/bin ] && rm -f %{fbroot}/bin
87fcb48
	ln -s %{fbroot}/bin{-superserver,}
87fcb48
fi
bccecf9
if [ "$(readlink %{fbroot}/UDF 2> /dev/null)" \!= "%{fbroot}/UDF-superserver" ]; then 
bccecf9
	[ -e %{fbroot}/UDF ] && rm -f %{fbroot}/bin
87fcb48
	ln -s %{fbroot}/UDF{-superserver,}
87fcb48
fi
87fcb48
87fcb48
if [ $1 -eq 1 ]; then
87fcb48
	chkconfig firebird off
87fcb48
fi
87fcb48
87fcb48
87fcb48
%preun	superserver
87fcb48
if [ $1 -eq 0 ]; then
87fcb48
87fcb48
	if /sbin/service firebird status >& /dev/null; then
87fcb48
	/sbin/service firebird stop
87fcb48
	fi
87fcb48
	
87fcb48
	chkconfig --del firebird
87fcb48
	
87fcb48
	if [ "$(readlink %{fbroot}/bin 2> /dev/null)" = "%{fbroot}/bin-superserver" ]; then
87fcb48
		rm -f %{fbroot}/bin
87fcb48
	fi
87fcb48
	if [ "$(readlink %{fbroot}/UDF 2> /dev/null)" = "%{fbroot}/UDF-superserver" ]; then
87fcb48
		rm -f %{fbroot}/UDF
87fcb48
	fi
87fcb48
fi
87fcb48
87fcb48
87fcb48
%pre	
87fcb48
# Create the firebird group if it doesn't exist
87fcb48
getent group %{name} || /usr/sbin/groupadd -r %{name} 
bccecf9
getent passwd %{name} >/dev/null || /usr/sbin/useradd -d / -g %{name} -s /bin/nologin -r %{name} 
87fcb48
87fcb48
# Add gds_db to /etc/services if needed
87fcb48
FileName=/etc/services
87fcb48
newLine="gds_db 3050/tcp  # Firebird SQL Database Remote Protocol"
87fcb48
oldLine=`grep "^gds_db" $FileName`
87fcb48
if [ -z "$oldLine" ]; then
87fcb48
	echo $newLine >> $FileName
87fcb48
fi
87fcb48
87fcb48
87fcb48
%post	-p /sbin/ldconfig
87fcb48
380f755
%postun	
380f755
/sbin/ldconfig
380f755
rm -Rf	%{_var}/run/%{name}
87fcb48
87fcb48
%files 
87fcb48
%defattr(0644,root,root,0755)
87fcb48
%doc doc/license/IDPL.txt
87fcb48
%doc doc/license/README.license.usage.txt
bccecf9
%doc doc/README.Fedora
87fcb48
%defattr(0644,root,root,0755)
87fcb48
%dir %attr(0755,root,root) %{_localstatedir}/lib/%{name}
87fcb48
%dir %attr(0770,%{name},%{name}) %{_localstatedir}/lib/%{name}/data
87fcb48
%attr(0660,%{name},%{name})	%{_localstatedir}/lib/%{name}/data/employee.fdb
87fcb48
%dir %{_localstatedir}/log/%{name}
87fcb48
%dir %{fbroot}/intl
87fcb48
%dir %{_sysconfdir}/%{name}
bccecf9
%config(noreplace) %attr (0600,%{name},%{name}) %{_localstatedir}/lib/%{name}/system/security2.fdb
87fcb48
%{fbroot}/security2.fdb
380f755
%config(noreplace) %attr (0664,%{name},%{name}) %{_sysconfdir}/%{name}/fbintl.conf
380f755
%config(noreplace) %attr (0664,%{name},%{name}) %{_sysconfdir}/%{name}/aliases.conf
380f755
%config(noreplace) %attr (0664,%{name},%{name}) %{_sysconfdir}/%{name}/firebird.conf
87fcb48
%{fbroot}/aliases.conf
87fcb48
%{fbroot}/firebird.conf
87fcb48
%{fbroot}/intl/fbintl.conf
87fcb48
%{fbroot}/firebird.log
bccecf9
%config(noreplace) %attr(0664,%{name},%{name})  %{_localstatedir}/log/%{name}/%{name}.log
87fcb48
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}
87fcb48
%{fbroot}/*.msg
87fcb48
%{fbroot}/help
87fcb48
%{_libdir}/libib_util.so
87fcb48
%{fbroot}/lib/libib_util.so
87fcb48
%defattr(0755,root,root,0750)
87fcb48
%{fbroot}/intl/fbintl
380f755
%defattr(0755,root,root,0755)
bccecf9
%{_bindir}/isql-fb
380f755
%{_bindir}/gbak
380f755
%{_bindir}/gsec
380f755
%{_bindir}/gfix
380f755
%{_bindir}/nbackup
380f755
%{_bindir}/gstat
380f755
%dir %attr(0755,%{name},%{name}) %{_var}/run/%{name}
380f755
%defattr(0755,root,root,0755)
380f755
%{fbroot}/run
87fcb48
87fcb48
%files	filesystem
380f755
%defattr(0644,root,root,0755)
380f755
%doc	doc/README.Fedora
87fcb48
%defattr(0755,root,root,0755)
380f755
%dir %{fbroot}
87fcb48
%dir %{fbroot}/lib
87fcb48
87fcb48
%files doc
87fcb48
%defattr(0644,root,root,0755)
87fcb48
%doc	gen/buildroot-classic%{fbroot}/doc
87fcb48
%doc	gen/buildroot-classic%{fbroot}/examples
87fcb48
%doc	gen/buildroot-classic%{fbroot}/README
87fcb48
%doc	gen/buildroot-classic%{fbroot}/misc/intl.sql
87fcb48
%doc	gen/buildroot-classic%{fbroot}/misc/upgrade
87fcb48
87fcb48
87fcb48
87fcb48
%files devel
87fcb48
%defattr(0644,root,root,0755)
87fcb48
%dir %{fbroot}/include
87fcb48
%{fbroot}/include/*
87fcb48
%{fbroot}/lib/*.so
87fcb48
%{_includedir}/*
87fcb48
%{_libdir}/*.so
87fcb48
87fcb48
87fcb48
87fcb48
%files libfbclient
87fcb48
%defattr(0644,root,root,0755)
87fcb48
%doc doc/license/IDPL.txt
87fcb48
%doc doc/license/README.license.usage.txt
87fcb48
%{_libdir}/libfbclient.so.*
bccecf9
%{_libdir}/libgds.so.0
87fcb48
%{fbroot}/lib/libfbclient.so.*
87fcb48
87fcb48
87fcb48
%files libfbembed
87fcb48
%defattr(0644,root,root,0755)
87fcb48
%doc doc/license/IDPL.txt
87fcb48
%doc doc/license/README.license.usage.txt
87fcb48
%{_libdir}/libfbembed.so.*
87fcb48
%{fbroot}/lib/libfbembed.so.*
87fcb48
87fcb48
87fcb48
%files classic
87fcb48
%defattr(0644,root,root,0755)
87fcb48
%doc doc/license/IDPL.txt
87fcb48
%doc doc/license/README.license.usage.txt
87fcb48
%config(noreplace) %{_sysconfdir}/xinetd.d/%{name}
87fcb48
%dir %{fbroot}/bin-classic
87fcb48
%dir %{fbroot}/UDF-classic
87fcb48
%defattr(0755,root,root,0755)
87fcb48
%{fbroot}/bin-classic/*
87fcb48
%{fbroot}/UDF-classic/*.so
87fcb48
%defattr(0644,root,root,0755)
87fcb48
%{fbroot}/UDF-classic/*.sql
87fcb48
87fcb48
87fcb48
%files superserver
87fcb48
%defattr(0644,root,root,0755)
87fcb48
%doc doc/license/IDPL.txt
87fcb48
%doc doc/license/README.license.usage.txt
87fcb48
%defattr(0644,root,root,0755)
87fcb48
%dir %{fbroot}/bin-superserver
87fcb48
%dir %{fbroot}/UDF-superserver
87fcb48
%defattr(0755,root,root,0755)
87fcb48
%{_initrddir}/%{name}
87fcb48
%{fbroot}/bin-superserver/*
87fcb48
%{fbroot}/UDF-superserver/*.so
87fcb48
%defattr(0644,root,root,0755)
87fcb48
%{fbroot}/UDF-superserver/*.sql
87fcb48
87fcb48
87fcb48
%changelog
a1c0d45
* Thu Jul 30 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.3.18185.0-1
a1c0d45
- Update to 2.1.3.18185
a1c0d45
- Fix rh #514463
a1c0d45
- Remove doc patch 
a1c0d45
- Apply backport initscript patch
531f137
a1c0d45
* Sat Jul 11 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.2.18118.0-11
bccecf9
- change xinetd script (rh #506528)
bccecf9
- add missing library (and header files) for build php4-interbase module (rh #506728)
bccecf9
- update README.fedora
bccecf9
- automatically created user now have /bin/nologin as shell to make things a little more secure
bccecf9
8f77c91
* Tue May 12 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.2.18118.0-8
8f77c91
- patch to fix gcc 4.4.0 and icu 4.2 build error
8f77c91
380f755
* Tue May 12 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.2.18118.0-7
380f755
- patch to change lock files location and avoid %%{fbroot} owned by firebird user (rh #500219)
380f755
- add README.fedora
380f755
- add symlinks in /usr/bin
380f755
- change xinetd reload (rh #500219)
380f755
87fcb48
* Sat May 02 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.2.18118.0-6
87fcb48
- add filesystem-subpackage
87fcb48
- remove common subpackage and use the main instead
87fcb48
- add logrotate config
87fcb48
87fcb48
* Thu Apr 30 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.2.18118.0-5
87fcb48
- fix directories owning
87fcb48
87fcb48
* Thu Apr 23 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.2.18118.0-4
87fcb48
- major cleaning install process to take care of the two architectures (Classic and Superserver) the right way
87fcb48
87fcb48
* Wed Apr 22 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.2.18118.0-3
87fcb48
- fix group creation
87fcb48
87fcb48
* Sun Apr 19 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.2.18118.0-2
87fcb48
- fix autogen issue for f11
87fcb48
- patch init script
87fcb48
- fix ppc64 lib destination issue
87fcb48
87fcb48
* Sun Apr 19 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.2.18118.0-1
87fcb48
- backport doc patch
87fcb48
- update to 2.1.2.18118
87fcb48
- cleanup macros
87fcb48
- specifie libdir
87fcb48
- change firebird user login
87fcb48
87fcb48
* Sat Mar 28 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.1.17910.0-5
87fcb48
- Major packaging restructuring
87fcb48
 
87fcb48
* Mon Mar 21 2009  Philippe Makowski <makowski at firebird-fr.eu.org> 2.1.1.17190.0-4
87fcb48
- Create a doc package
87fcb48
- major cleaning to avoid rpmlint errors
87fcb48
- revert to 2.1.1 (last stable build published)
87fcb48
87fcb48
* Mon Mar 09 2009  Jonathan MERCIER <bioinfornatics at gmail.com> 2.1.2.18116.0-3
87fcb48
- Perform %%configure with option --with-system-icu
87fcb48
- Add libicu-devel in BuildRequires
87fcb48
- Use iconv for convert files to UTF-8
87fcb48
87fcb48
* Fri Mar 05 2009  Jonathan MERCIER <bioinfornatics at gmail.com> 2.1.2.18116.0-2
87fcb48
- Update to 2.1.2
87fcb48
- Use %%global instead of %%define
87fcb48
- Change ${SOURCE1} to %%{SOURCE1}
87fcb48
- Change Group Database to Applications/Databases
87fcb48
- Change License IPL to Interbase
87fcb48
- Perform %%configure section's with some module
87fcb48
- Cconvert cyrillic character to UTF-8
87fcb48
87fcb48
* Thu Jul 17 2008 Arkady L. Shane <ashejn@yandex-team.ru> 2.1.1.17910.0-1
87fcb48
- Update to 2.1.1
87fcb48
87fcb48
* Fri Apr 18 2008 Arkady L. Shane <ashejn@yandex-team.ru> 2.1.0.17798.0-1
87fcb48
- Update to 2.1.0
87fcb48
87fcb48
* Thu Sep 27 2007 Arkady L. Shane <ashejn@yandex-team.ru> 2.0.3.12981.1-1
87fcb48
- Update to 2.0.3
87fcb48
87fcb48
* Thu Sep 13 2007 Arkady L. Shane <ashejn@yandex-team.ru> 2.0.1.12855.0-1
87fcb48
- Initial build for Fedora
87fcb48
- cleanup Mandriva spec