rpms/php-shout/EL-6 php-shout.spec,1.10,1.11
Remi Collet
remi at fedoraproject.org
Fri Jul 9 18:18:16 UTC 2010
Author: remi
Update of /cvs/pkgs/rpms/php-shout/EL-6
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv17071
Modified Files:
php-shout.spec
Log Message:
latest improvment from F-13
Index: php-shout.spec
===================================================================
RCS file: /cvs/pkgs/rpms/php-shout/EL-6/php-shout.spec,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -p -r1.10 -r1.11
--- php-shout.spec 26 Jul 2009 18:37:21 -0000 1.10
+++ php-shout.spec 9 Jul 2010 18:18:16 -0000 1.11
@@ -3,10 +3,10 @@
Name: php-shout
Version: 0.9.2
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: PHP module for communicating with Icecast servers
-Source0: http://dl.sf.net/phpshout/phpShout-%{version}.tar.gz
+Source0: http://downloads.sourceforge.net/phpshout/phpShout-%{version}.tar.gz
Group: Development/Languages
License: LGPLv2+
URL: http://phpshout.sourceforge.net/
@@ -16,7 +16,13 @@ BuildRequires: php-devel
# Will hopefully go away once libogg-devel and/or libshout-devel specify this BR:
BuildRequires: pkgconfig
BuildRequires: libshout-devel >= 2.1
+%if %{?php_zend_api}0
+Requires: php(zend-abi) = %{php_zend_api}
+Requires: php(api) = %{php_core_api}
+%else
Requires: php-api = %{php_apiver}
+%endif
+
%description
The php-shout package is an extension to the PHP Hypertext Preprocessor.
@@ -30,48 +36,51 @@ PHP developer can write PHP scripts that
and focus on other robust features, without worrying about the
details of the server communication.
+
%prep
%setup -q -n phpShout-%{version}
chmod a-x *.[ch] TODO README INSTALL LICENSE
+
%build
phpize --clean
phpize
%configure
make %{?_smp_mflags}
+
%install
rm -rf %{buildroot}
install -D -p -m 0755 modules/shout.so %{buildroot}%{php_extdir}/shout.so
install -D -p -m 0644 shout.ini %{buildroot}%{_sysconfdir}/php.d/shout.ini
+
%check
# Make sure module loads correctly
-cat > test.ini << EOF
-open_basedir=
-safe_mode=0
-output_buffering=0
-extension_dir=./modules
-extension=shout.so
-EOF
-php -m -c test.ini 2> /dev/null | grep -q shout || {
+php -m -d extension_dir=modules -d extension=shout.so 2>/dev/null | grep shout || {
echo "Shout extension not loadable!"
exit 1
}
-rm test.ini
# Disable PHP's tests since they require an icecast server running on localhost
#make test
+
%clean
rm -rf %{buildroot}
+
%files
%defattr(-,root,root,-)
%doc LICENSE README TODO
%config(noreplace) %{_sysconfdir}/php.d/shout.ini
%{php_extdir}/shout.so
+
%changelog
+* Thu Jan 07 2010 Remi Collet <Fedora at FamilleCollet.com> - 0.9.2-6
+- fix Source URL
+- fix requires for PHP abi.
+
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.9.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
More information about the scm-commits
mailing list