SPECS: slony1.spec - "altperl" toolset (-altperl subpackage) and o...

jajcus jajcus at pld-linux.org
Thu Jul 7 15:21:57 CEST 2005


Author: jajcus                       Date: Thu Jul  7 13:21:57 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- "altperl" toolset (-altperl subpackage) and other usefull scripts (-tools subpackage) packaged
- sysconfig filed path fixed

---- Files affected:
SPECS:
   slony1.spec (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SPECS/slony1.spec
diff -u SPECS/slony1.spec:1.4 SPECS/slony1.spec:1.5
--- SPECS/slony1.spec:1.4	Tue Jul  5 15:25:01 2005
+++ SPECS/slony1.spec	Thu Jul  7 15:21:51 2005
@@ -3,12 +3,14 @@
 # TODO:
 #	- trigger for upgrading
 #		e.g. stop slony1, warn user. No automatic upgrade possible (must be done all all nodes)
+#	- move slony-tools.pm to some better place
 #
+%include	/usr/lib/rpm/macros.perl
 Summary:	Slony-I - a "master to multiple slaves" replication system for PostgreSQL
 Summary(pl):	Slony-I - system replikacji dla PostgreSQL
 Name:		slony1
 Version:	1.1.0
-Release:	0.1
+Release:	0.2
 Epoch:		0
 License:	BSD
 Group:		Applications/Databases
@@ -18,6 +20,7 @@
 Source3:	%{name}.sysconfig
 Patch0:		%{name}-no_server_for_build.patch
 URL:		http://slony.info/
+BuildRequires:	rpm-perlprov
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	postgresql-backend-devel
@@ -27,6 +30,8 @@
 %define		_pgmoduledir	%{_libdir}/postgresql
 %define		_pgsqldir	%{_datadir}/postgresql
 
+%define         _noautoreq      '%{_libdir}//slon-tools.pm'
+
 %description
 Slony-I is a "master to multiple slaves" replication system with
 cascading and failover.
@@ -50,21 +55,45 @@
 wymaga aby zarówno serwer główny jak i wszystkie serwery pomocnicze
 były cały czas operacyjne.
 
+%package altperl
+Summary:	Perl scripts for managing Slony-I
+Group:		Applications/Databases
+Requires:	perl-modules
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+
+%description altperl
+The altperl scripts provide an alternate method of managing Slony-I,
+generating slonik scripts and monitoring slon daemons.  They support an
+arbitrary number of Slony-I nodes in clusters of various shapes and
+sizes.
+
+%package tools
+Summary:	Usefull additional scripts for Slony-I
+Group:		Applications/Databases
+Requires:	perl-modules
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+
+%description tools
+This package contains some additional scripts provided wyth Slony-I,
+usefull Slony-I setup, maintainance or monitoring.
+
 %prep
 %setup -q
 %patch0 -p1
+sed -i -e 's,^#!/usr/bin/env perl,^#!/usr/bin/perl,' tools/*.pl
 
 %build
 %{__aclocal} -I config
 %{__autoconf}
 cp /usr/share/automake/config.* config
 %configure \
-	--with-pgsharedir=%{_pgsqldir}
+	--with-pgsharedir=%{_pgsqldir} \
+	--with-perltools
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig/slony1,/home/services/slony1}
+install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/etc/sysconfig,/home/services/slony1}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
@@ -72,6 +101,8 @@
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/slony1
 install %{SOURCE2} $RPM_BUILD_ROOT/home/services/slony1/.pgpass
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/slony1
+mv $RPM_BUILD_ROOT%{_sysconfdir}/slon_tools.conf{-sample,}
+install tools/{check_*.sh,generate_syncs.sh,slony1_*.sh,slony_setup.pl} $RPM_BUILD_ROOT%{_bindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -99,7 +130,8 @@
 %files
 %defattr(644,root,root,755)
 %doc HISTORY-1.1 README SAMPLE TODO UPGRADING doc/adminguide/prebuilt/* doc/*/*.txt
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/slon
+%attr(755,root,root) %{_bindir}/slonik
 %attr(755,root,root) %{_pgmoduledir}/*.so
 %{_pgsqldir}/*
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
@@ -107,12 +139,32 @@
 %attr(750,slony1,slony1) %dir /home/services/slony1
 %attr(600,slony1,slony1) /home/services/slony1/.pgpass
 
+%files altperl
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/slonik_*
+%attr(755,root,root) %{_bindir}/slon_*
+%attr(755,root,root) %{_bindir}/slony_*
+%attr(755,root,root) %{_bindir}/show_configuration
+%{_libdir}/*.pm
+%{_sysconfdir}/slon_tools.conf
+
+%files tools
+%defattr(644,root,root,755)
+%doc tools/README*
+%attr(755,root,root) %{_bindir}/*.sh
+%attr(755,root,root) %{_bindir}/*.pl
+
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.5  2005/07/07 13:21:51  jajcus
+- "altperl" toolset (-altperl subpackage) and other usefull scripts (-tools subpackage) packaged
+- sysconfig filed path fixed
+
 Revision 1.4  2005/07/05 13:25:01  jajcus
 - configure script fixed so only PostgreSQL devel files and libraries (no server) are required to build slony1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/slony1.spec?r1=1.4&r2=1.5&f=u




More information about the pld-cvs-commit mailing list