Author: glen                         Date: Tue Mar 23 21:41:01 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 1.0.10
- add tests bcond (needs sr_SR locale)
- php autodeps

---- Files affected:
packages/php-gettext-pure:
   php-gettext-pure.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/php-gettext-pure/php-gettext-pure.spec
diff -u packages/php-gettext-pure/php-gettext-pure.spec:1.7 
packages/php-gettext-pure/php-gettext-pure.spec:1.8
--- packages/php-gettext-pure/php-gettext-pure.spec:1.7 Tue Dec  1 19:01:07 2009
+++ packages/php-gettext-pure/php-gettext-pure.spec     Tue Mar 23 22:40:55 2010
@@ -1,19 +1,41 @@
 # $Revision$, $Date$
-Summary:       Pure PHP Implementation if gettext
+#
+# Conditional build:
+%bcond_with            tests   # do not perform "make test"
+
+%include       /usr/lib/rpm/macros.php
+%define                php_min_version 5.0.0
+Summary:       Pure PHP Implementation of gettext
 Summary(pl.UTF-8):     Implementacja gettexta w czystym PHP
 Name:          php-gettext-pure
-Version:       1.0.9
+Version:       1.0.10
 Release:       1
 License:       GPL v2
 Group:         Development/Languages/PHP
 Source0:       
http://launchpad.net/php-gettext/trunk/%{version}/+download/php-gettext-%{version}.tar.gz
-# Source0-md5: cdbe7222d0ec1bd05d691e7d10f230b2
+# Source0-md5: dbae5ad3f7eab5cd4530768000f9b6be
 URL:           https://launchpad.net/php-gettext
-Requires:      php(mbstring)
-Requires:      php-common
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+BuildRequires: rpmbuild(macros) >= 1.461
+%if %{with tests}
+%if %(locale -a | grep -q '^sr_RS$'; echo $?)
+# Not provided in PLD Linux by a package
+BuildRequires: locale(sr_SR)
+%endif
+BuildRequires: php-PHPUnit
+%endif
+Requires:      php-common >= 4:%{php_min_version}
+Requires:      php-mbstring
+Requires:      php-pcre
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# exclude optional php dependencies
+%define                _noautophp      php-gettext
+
+# put it together for rpmbuild
+%define                _noautoreq      %{?_noautophp} %{?_noautopear}
+
 %description
 Provides a simple gettext replacement that works independently from
 the system's gettext abilities. It can read MO files and use them for
@@ -40,6 +62,9 @@
 %prep
 %setup -q -n php-gettext-%{version}
 
+%build
+%{?with_tests:%{__make} check}
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_datadir}/php,%{_examplesdir}/%{name}-%{version}}
@@ -63,6 +88,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2010/03/23 21:40:55  glen
+- up to 1.0.10
+- add tests bcond (needs sr_SR locale)
+- php autodeps
+
 Revision 1.7  2009/12/01 18:01:07  glen
 - up to 1.0.9
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-gettext-pure/php-gettext-pure.spec?r1=1.7&r2=1.8&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to