Devrim GUNDUZ devrim
Wed Mar 23 07:47:52 PST 2005
Hi,

Attached is the new spec.in file , as proposed in my previous e-mail. 
Could you please apply it to stable branch?

Regards,
--
Devrim GUNDUZ 
devrim~gunduz.org, devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.tdmsoft.com                         http://www.gunduz.org
-------------- next part --------------
%define _unpackaged_files_terminate_build 0
%{!?pgversion:%define pgversion 8.0.1}
%{!?pgsourcetree:%define pgsourcetree /usr/src/redhat/SOURCES/postgresql-%pgversion}

Summary: A "master to multiple slaves" replication system with cascading and failover.
Name: postgresql- at PACKAGE_NAME@
Version: @PACKAGE_VERSION@
Release: 3_pgsql%pgversion
License: Berkeley/BSD
Packager: Devrim Gunduz <devrim at PostgreSQL.org>
Group: Applications/Databases
URL: http://slony.info/
Source0: @PACKAGE_NAME at -%{version}.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-root

Autoreqprov: no
BuildRequires: postgresql-devel
Requires: postgresql = %pgversion

%description
Slony-I will be a "master to multiple slaves" replication 
system with cascading and failover.

The big picture for the development of Slony-I is to build 
a master-slave system that includes all features and 
capabilities needed to replicate large databases to a 
reasonably limited number of slave systems.

Slony-I is planned as a system for data centers and backup 
sites, where the normal mode of operation is that all nodes 
are available

%prep
%setup -q -n @PACKAGE_NAME at -%{version}

%build
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS
CFLAGS="${CFLAGS} -I%{_includedir}/et" ; export CFLAGS

export LIBNAME=%{_lib}
./configure --bindir /usr/bin --libdir %{_libdir}/pgsql --includedir %{_includedir}/pgsql --datadir /usr/share/pgsql --with-pgsourcetree=%pgsourcetree
make 

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

mkdir -p $RPM_BUILD_ROOT/usr/share/pgsql
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pgsql
install -m 755 src/backend/*.sql $RPM_BUILD_ROOT/usr/share/pgsql
install -m 755 src/xxid/xxid.so $RPM_BUILD_ROOT%{_libdir}/pgsql
install -m 755 src/backend/slony1_funcs.so $RPM_BUILD_ROOT%{_libdir}/pgsql

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc COPYRIGHT
%{_bindir}/slon
%{_bindir}/slonik
/usr/share/pgsql/*.sql
%{_libdir}/pgsql/slony1_funcs.so
%{_libdir}/pgsql/xxid.so

%changelog
* Fri Mar 19 2005 Devrim Gunduz <devrim at PostgreSQL.org> postgresql-slony1-engine postgresql-slony1-engine 1.0.5-3
- Added predefined value for pgsourcetree
- Allowed slony to be installed for different versions on the same machine.

* Fri Mar 18 2005 Devrim Gunduz <devrim at PostgreSQL.org> postgresql-slony1-engine
- Fix spec file so that Slony can be installed on a server that PostgreSQL is installed from RPMs.

* Thu Mar 18 2004 Daniel Berrange <berrange at redhat.com> postgresql-slony1-engine
- Initial RPM packaging


More information about the Slony1-general mailing list