SPECS: sqlrelay.spec - doc subpackage - finish perl, python module

glen glen at pld-linux.org
Tue Sep 12 10:29:59 CEST 2006


Author: glen                         Date: Tue Sep 12 08:29:59 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- doc subpackage
- finish perl, python module

---- Files affected:
SPECS:
   sqlrelay.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/sqlrelay.spec
diff -u SPECS/sqlrelay.spec:1.2 SPECS/sqlrelay.spec:1.3
--- SPECS/sqlrelay.spec:1.2	Tue Sep 12 10:06:42 2006
+++ SPECS/sqlrelay.spec	Tue Sep 12 10:29:54 2006
@@ -2,12 +2,13 @@
 Summary:	Persistent database connection system
 Name:		sqlrelay
 Version:	0.37.1
-Release:	0.4
+Release:	0.9
 License:	GPL/LGPL and Others
 Group:		Daemons
 Source0:	http://dl.sourceforge.net/sqlrelay/%{name}-%{version}.tar.gz
 # Source0-md5:	4628782233e548a1436c6149f913fd89
 Source1:	%{name}.init
+Patch0:		%{name}-perl.patch
 URL:		http://sqlrelay.sourceforge.net
 BuildRequires:	mysql-devel
 BuildRequires:	php-devel >= 4:5:0
@@ -76,29 +77,38 @@
 %description mysql
 SQL Relay connection daemon for MySQL.
 
-%package perl
+%package -n perl-SQLRelay
 Summary:	SQL Relay modules for Perl
 Group:		Development/Languages
+Requires:	perl-DBI
 
-%description perl
+%description -n perl-SQLRelay
 SQL Relay modules for Perl.
 
-%package php
+%package -n php-%{name}
 Summary:	SQL Relay modules for PHP
 Group:		Development/Languages
 
-%description php
+%description -n php-%{name}
 SQL Relay modules for PHP.
 
-%package python
+%package -n python-%{name}
 Summary:	SQL Relay modules for Python
 Group:		Development/Languages
 
-%description python
+%description -n python-%{name}
 SQL Relay modules for Python.
 
+%package doc
+Summary:	Documentation for SQLRelay
+Group:		Documentation
+
+%description doc
+Documentation for SQLRelay.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure \
@@ -128,11 +138,19 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__make} install \
+	OVERRIDEPERLSITEARCH=%{perl_vendorarch} \
+	OVERRIDEPERLSITELIB=%{perl_vendorlib} \
 	DESTDIR=$RPM_BUILD_ROOT
 
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}/SQLRelay
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}/SQLRelay
+%py_postclean %{py_sitedir}/SQLRelay
+
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/sqlrelay
 mv $RPM_BUILD_ROOT%{_sysconfdir}/sqlrelay.conf{.example,}
 
+rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/{DBD/SQLRelay,SQLRelay/{Connection,Cursor}}/.packlist
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -141,7 +159,6 @@
 
 %files
 %defattr(644,root,root,755)
-%doc %{_docdir}/%{name}
 %config %attr(600,root,root) %{_sysconfdir}/sqlrelay.conf
 %config %attr(600,root,root) %{_sysconfdir}/sqlrelay.dtd
 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/sqlrelay
@@ -157,7 +174,6 @@
 /var/sqlrelay/tmp
 /var/sqlrelay/debug
 %{_mandir}/man1/fields.1*
-%{_mandir}/man1/query.py.1*
 %{_mandir}/man1/sqlr-config-gtk.1*
 %{_mandir}/man8/sqlr-cachemanager.8*
 %{_mandir}/man8/sqlr-connection.8*
@@ -216,30 +232,41 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/sqlr-connection-mysql*
 
-%files perl
+%files -n perl-SQLRelay
 %defattr(644,root,root,755)
-%{perl_sitelib}/DBD/SQLRelay.pm
-%{perl_sitearch}/auto/DBD/SQLRelay
-%{perl_sitearch}/SQLRelay/Connection.pm
-%{perl_sitearch}/SQLRelay/Cursor.pm
-%{perl_sitearch}/auto/SQLRelay/Connection
-%{perl_sitearch}/auto/SQLRelay/Cursor
+%dir %{perl_vendorarch}/SQLRelay
+%{perl_vendorarch}/SQLRelay/Connection.pm
+%{perl_vendorarch}/SQLRelay/Cursor.pm
+%dir %{perl_vendorarch}/auto/SQLRelay/Connection
+%{perl_vendorarch}/auto/SQLRelay/Connection/Connection.bs
+%attr(755,root,root) %{perl_vendorarch}/auto/SQLRelay/Connection/Connection.so
+%dir %{perl_vendorarch}/auto/SQLRelay/Cursor
+%{perl_vendorarch}/auto/SQLRelay/Cursor/Cursor.bs
+%dir %{perl_vendorarch}/auto/SQLRelay
+%dir %{perl_vendorarch}/auto/SQLRelay/Cursor
+%attr(755,root,root) %{perl_vendorarch}/auto/SQLRelay/Cursor/Cursor.so
+%{perl_vendorlib}/DBD/SQLRelay.pm
 %{_mandir}/man3/DBD::SQLRelay.3pm*
 %{_mandir}/man3/SQLRelay::Connection.3pm*
 %{_mandir}/man3/SQLRelay::Cursor.3pm*
 
-%files php
+%files -n php-%{name}
 %defattr(644,root,root,755)
 %attr(755,root,root) %{phpextdir}/sql_relay.so
 %{php_pear_dir}/DB/sqlrelay.php
 
-%files python
+%files -n python-%{name}
 %defattr(644,root,root,755)
 %dir %{py_sitedir}/SQLRelay
 %attr(755,root,root) %{py_sitedir}/SQLRelay/CSQLRelay.so
-%{py_sitedir}/SQLRelay/PySQLRClient.py
-%{py_sitedir}/SQLRelay/PySQLRDB.py
-%{py_sitedir}/SQLRelay/__init__.py
+%{py_sitedir}/SQLRelay/PySQLRClient.py[co]
+%{py_sitedir}/SQLRelay/PySQLRDB.py[co]
+%{py_sitedir}/SQLRelay/__init__.py[co]
+%{_mandir}/man1/query.py.1*
+
+%files doc
+%defattr(644,root,root,755)
+%doc %{_docdir}/%{name}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -247,6 +274,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/09/12 08:29:54  glen
+- doc subpackage
+- finish perl, python module
+
 Revision 1.2  2006/09/12 08:06:42  glen
 - pldized initscript
 - put manuals to proper packages, files fixes
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/sqlrelay.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list