packages: php-adodb/php-adodb.spec - identify files for possible subpackage...

glen glen at pld-linux.org
Tue Jan 24 11:34:01 CET 2012


Author: glen                         Date: Tue Jan 24 10:34:01 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- identify files for possible subpackages; add lang tags; suggest php-pecl-adodb

---- Files affected:
packages/php-adodb:
   php-adodb.spec (1.58 -> 1.59) 

---- Diffs:

================================================================
Index: packages/php-adodb/php-adodb.spec
diff -u packages/php-adodb/php-adodb.spec:1.58 packages/php-adodb/php-adodb.spec:1.59
--- packages/php-adodb/php-adodb.spec:1.58	Tue Jan 24 10:45:50 2012
+++ packages/php-adodb/php-adodb.spec	Tue Jan 24 11:33:56 2012
@@ -1,15 +1,15 @@
 # $Revision$, $Date$
 # TODO
-# - session subpkg, perf, subpkg for others
+# - session subpkg, perf, xmlschema, subpkg for others
 # - %lang
 #
 # Conditional build:
 %bcond_without	pear	# Don't build pear-dependent packages.
 
-%include	/usr/lib/rpm/macros.php
 %define		ver		%(echo %{version} | tr -d .)
-%define		php_min_version 5.0.0
 %define		pkgname	adodb
+%define		php_min_version 5.2.0
+%include	/usr/lib/rpm/macros.php
 Summary:	Unique interface to access different SQL databases
 Summary(pl.UTF-8):	Jednolity inferfejs dostępu do baz danych SQL
 Name:		php-%{pkgname}
@@ -17,11 +17,12 @@
 Release:	1
 License:	dual licensed using BSD-Style and LGPL
 Group:		Libraries
-Source0:	http://downloads.sourceforge.net/project/adodb/adodb-php5-only/adodb-%{ver}-for-php5/adodb%{ver}.tgz
+Source0:	http://downloads.sourceforge.net/adodb/adodb%{ver}.tgz
 # Source0-md5:	47bcd99a38145b5a7012f9bc8d2bf8be
 Patch0:		%{name}-paths.patch
 URL:		http://adodb.sourceforge.net/
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+BuildRequires:	rpmbuild(macros) >= 1.553
 Requires:	php-common >= 4:%{php_min_version}
 Requires:	php-date
 Requires:	php-pcre
@@ -31,6 +32,8 @@
 Suggests:	php-pgsql
 Suggests:	php-session
 Suggests:	php-sqlite
+# gives some performance
+Suggests:	php-pecl-adodb
 Provides:	adodb = %{version}-%{release}
 Obsoletes:	adodb
 BuildArch:	noarch
@@ -109,14 +112,15 @@
 %prep
 %setup -qc
 mv %{pkgname}5/* .
-# undos the source
-find . -type f -print0 | xargs -0 sed -i -e 's,\r$,,'
+%undos -f php
 
 %patch0 -p1
 mv pear/{readme.Auth.txt,README}
 %{__rm} -r session/old
 %{__rm} adodb-php4.inc.php
 
+%{__sed} -i -e '4s/en/sv/' lang/adodb-sv.inc.php
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_appdir}/{drivers,datadict,perf,lang,session,xsl}
@@ -126,7 +130,7 @@
 
 %if %{with pear}
 install -d $RPM_BUILD_ROOT%{php_pear_dir}/Auth/Container
-cp -a pear/Auth/Container/ADOdb.php $RPM_BUILD_ROOT%{php_pear_dir}/Auth/Container
+cp -p pear/Auth/Container/ADOdb.php $RPM_BUILD_ROOT%{php_pear_dir}/Auth/Container
 %endif
 
 %clean
@@ -146,13 +150,8 @@
 %dir %{_appdir}
 %{_appdir}/datadict
 %{_appdir}/drivers
-%{_appdir}/lang
-%{_appdir}/perf
+%dir %{_appdir}/lang
 %{_appdir}/server.php
-%{_appdir}/session
-%{_appdir}/xmlschema.dtd
-%{_appdir}/xmlschema03.dtd
-%{_appdir}/xsl
 
 %{_appdir}/adodb-csvlib.inc.php
 %{_appdir}/adodb-datadict.inc.php
@@ -162,17 +161,52 @@
 %{_appdir}/adodb-iterator.inc.php
 %{_appdir}/adodb-lib.inc.php
 %{_appdir}/adodb-pager.inc.php
-%{_appdir}/adodb-perf.inc.php
 %{_appdir}/adodb-time.inc.php
-%{_appdir}/adodb-xmlschema.inc.php
 %{_appdir}/adodb.inc.php
 %{_appdir}/toexport.inc.php
 %{_appdir}/tohtml.inc.php
-%{_appdir}/adodb-active-record.inc.php
-%{_appdir}/adodb-xmlschema03.inc.php
 %{_appdir}/adodb-memcache.lib.inc.php
+%{_appdir}/adodb-active-record.inc.php
 %{_appdir}/adodb-active-recordx.inc.php
 
+%{_appdir}/lang/adodb-en.inc.php
+%lang(ar) %{_appdir}/lang/adodb-ar.inc.php
+%lang(bg) %{_appdir}/lang/adodb-bg.inc.php
+%lang(bg) %{_appdir}/lang/adodb-bgutf8.inc.php
+%lang(ca) %{_appdir}/lang/adodb-ca.inc.php
+%lang(zh_CN) %{_appdir}/lang/adodb-cn.inc.php
+%lang(cs) %{_appdir}/lang/adodb-cz.inc.php
+%lang(da) %{_appdir}/lang/adodb-da.inc.php
+%lang(de) %{_appdir}/lang/adodb-de.inc.php
+%lang(es) %{_appdir}/lang/adodb-es.inc.php
+%lang(eo) %{_appdir}/lang/adodb-esperanto.inc.php
+%lang(fa) %{_appdir}/lang/adodb-fa.inc.php
+%lang(fr) %{_appdir}/lang/adodb-fr.inc.php
+%lang(hu) %{_appdir}/lang/adodb-hu.inc.php
+%lang(it) %{_appdir}/lang/adodb-it.inc.php
+%lang(nl) %{_appdir}/lang/adodb-nl.inc.php
+%lang(pl) %{_appdir}/lang/adodb-pl.inc.php
+%lang(pt_BR) %{_appdir}/lang/adodb-pt-br.inc.php
+%lang(ro) %{_appdir}/lang/adodb-ro.inc.php
+%lang(ru) %{_appdir}/lang/adodb-ru1251.inc.php
+%lang(sv) %{_appdir}/lang/adodb-sv.inc.php
+%lang(uk) %{_appdir}/lang/adodb-uk1251.inc.php
+%lang(th) %{_appdir}/lang/adodb_th.inc.php
+
+# - perf
+%{_appdir}/adodb-perf.inc.php
+%{_appdir}/perf
+
+# - session
+%{_appdir}/session
+
+# - xmlschema, http://adodb-xmlschema.sourceforge.net/docs/index.html
+%{_appdir}/xmlschema.dtd
+%{_appdir}/xmlschema03.dtd
+%{_appdir}/adodb-xmlschema.inc.php
+%{_appdir}/adodb-xmlschema03.inc.php
+%{_appdir}/xsl
+
 %if %{with pear}
 %files tests
 %defattr(644,root,root,755)
@@ -197,6 +231,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.59  2012/01/24 10:33:56  glen
+- identify files for possible subpackages; add lang tags; suggest php-pecl-adodb
+
 Revision 1.58  2012/01/24 09:45:50  glen
 - up to 5.15
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-adodb/php-adodb.spec?r1=1.58&r2=1.59&f=u



More information about the pld-cvs-commit mailing list