]> git.pld-linux.org Git - packages/php-pecl-ecasound.git/commitdiff
- renamed package with binary pear class to php-pecl-class
authormisto <misto@pld-linux.org>
Tue, 15 Oct 2002 19:25:15 +0000 (19:25 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pecl-ecasound.spec -> 1.1

php-pecl-ecasound.spec [new file with mode: 0644]

diff --git a/php-pecl-ecasound.spec b/php-pecl-ecasound.spec
new file mode 100644 (file)
index 0000000..676d794
--- /dev/null
@@ -0,0 +1,57 @@
+Summary:       PHP wrapper to the Ecasound Library
+Summary(pl):   PHP-owy wrapper do biblioteki Ecasound
+Name:          php-pecl-ecasound
+Version:       0.1
+Release:       1
+License:       PHP 2.02
+Group:         Development/Languages/PHP
+Source0:       http://pear.php.net/get/Ecasound-%{version}.tgz
+URL:           http://pear.php.net/
+BuildRequires: libecasound-devel
+BuildRequires: php-devel
+Obsoletes:     php-Ecasound
+Requires:      php-common
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _sysconfdir     /etc/php
+%define                extensionsdir   %{_libdir}/php
+
+%description
+PHP wrapper to the Ecasound Library.
+
+%description -l pl
+PHP-owy wrapper do biblioteki Ecasound.
+
+%prep
+%setup -q -c
+
+%build
+cd Ecasound-%{version}
+phpize
+%{__aclocal}
+%configure \
+       --with-ecasound
+
+%{__make} CPPFLAGS="-DHAVE_CONFIG_H -I/usr/X11R6/include/X11/"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{extensionsdir}
+
+install Ecasound-%{version}/modules/ecasound.so $RPM_BUILD_ROOT%{extensionsdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+/usr/sbin/php-module-install install ecasound %{_sysconfdir}/php.ini
+
+%preun
+if [ "$1" = "0" ]; then
+       /usr/sbin/php-module-install remove ecasound %{_sysconfdir}/php.ini
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc Ecasound-%{version}/{CREDITS,EXPERIMENTAL,*.php}
+%attr(755,root,root) %{extensionsdir}/ecasound.so
This page took 0.073282 seconds and 4 git commands to generate.