rpms/php-shout/devel php-shout.spec,1.10,1.11
Remi Collet
remi at fedoraproject.org
Thu Jan 7 18:01:46 UTC 2010
- Previous message (by thread): rpms/gnome-bluetooth/F-12 0001-Remove-hard-coded-use-of-nautilus.patch, NONE, 1.1 gnome-bluetooth.spec, 1.100, 1.101
- Next message (by thread): rpms/gnome-applet-jalali-calendar/F-11 Calverter.py, NONE, 1.1 jalali-calendar-1.6.8-algfix.patch, NONE, 1.1 gnome-applet-jalali-calendar.spec, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: remi
Update of /cvs/pkgs/rpms/php-shout/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv17829
Modified Files:
php-shout.spec
Log Message:
fix Source URL (Sources file audit - 2010-01-05) + requires PHP ABI
Index: php-shout.spec
===================================================================
RCS file: /cvs/pkgs/rpms/php-shout/devel/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 7 Jan 2010 18:01:45 -0000 1.11
@@ -6,7 +6,7 @@ Version: 0.9.2
Release: 5%{?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
- Previous message (by thread): rpms/gnome-bluetooth/F-12 0001-Remove-hard-coded-use-of-nautilus.patch, NONE, 1.1 gnome-bluetooth.spec, 1.100, 1.101
- Next message (by thread): rpms/gnome-applet-jalali-calendar/F-11 Calverter.py, NONE, 1.1 jalali-calendar-1.6.8-algfix.patch, NONE, 1.1 gnome-applet-jalali-calendar.spec, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list