SPECS: flixengine.spec - so perms - complete php extension integra...
glen
glen at pld-linux.org
Wed Dec 13 19:02:32 CET 2006
Author: glen Date: Wed Dec 13 18:02:32 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- so perms
- complete php extension integration
- install pldized initscript
---- Files affected:
SPECS:
flixengine.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SPECS/flixengine.spec
diff -u SPECS/flixengine.spec:1.4 SPECS/flixengine.spec:1.5
--- SPECS/flixengine.spec:1.4 Wed Dec 13 18:56:04 2006
+++ SPECS/flixengine.spec Wed Dec 13 19:02:27 2006
@@ -8,13 +8,14 @@
Summary: On2 Flix Engine
Name: flixengine
Version: 8.0.7.0
-Release: 0.5
+Release: 0.8
License: not distributable
Group: Applications
# download demo from http://flix.on2.com/demos/
Source0: %{name}linuxdemo.tar.gz
# Source0-md5: ea7d3a0efaf08611aad9374259015d71
NoSource: 0
+Source1: %{name}.init
URL: http://www.on2.com/developer/flix-engine-sdk
%if %{with autodeps}
BuildRequires: ffmpeg-libs
@@ -82,7 +83,9 @@
%package -n php-flixengine
Summary: PHP bindings for On2 Flix Engine
+%{?requires_php_extension}
Group: Libraries
+Requires: %{_sysconfdir}/conf.d
Requires: %{name}-libs = %{version}-%{release}
%description -n php-flixengine
@@ -178,7 +181,6 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
./install.sh \
--prefix=$RPM_BUILD_ROOT%{_prefix} \
@@ -194,6 +196,8 @@
--no-init \
--noprereqlibs
+install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/flixengine
+
# install bindings
cd .flix-engine-installation-files
# PHP
@@ -201,6 +205,11 @@
install \
PHPINST=$RPM_BUILD_ROOT%{extensionsdir} \
-f target.mk
+install -d $RPM_BUILD_ROOT/etc/php/conf.d
+cat <<'EOF' > $RPM_BUILD_ROOT/etc/php/conf.d/flixengine.ini
+; Enable flixengine extension module
+extension=flixengine2.so
+EOF
# Perl
cd flixperl
@@ -244,6 +253,16 @@
%{_sbindir}/on2_host_info > /var/lib/on2/hostinfo
fi
+%post -n php-flixengine
+[ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
+[ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+
+%postun -n php-flixengine
+if [ "$1" = 0 ]; then
+ [ ! -f /etc/apache/conf.d/??_mod_php.conf ] || %service -q apache restart
+ [ ! -f /etc/httpd/httpd.conf/??_mod_php.conf ] || %service -q httpd restart
+fi
+
%files
%defattr(644,root,root,755)
%doc %{_docdir}/on2
@@ -276,7 +295,7 @@
%files -n java-flixengine
%defattr(644,root,root,755)
-%{_libdir}/libflixengine2_jni.so
+%attr(755,root,root) %{_libdir}/libflixengine2_jni.so
%{_javadir}/flixengine2.jar
%files -n perl-flixengine
@@ -290,12 +309,13 @@
%files -n php-flixengine
%defattr(644,root,root,755)
-%{extensionsdir}/flixengine2.so
+%config(noreplace) %verify(not md5 mtime size) /etc/php/conf.d/flixengine.ini
+%attr(755,root,root) %{extensionsdir}/flixengine2.so
%{_libdir}/flixengine2.php
%files -n python-flixengine
%defattr(644,root,root,755)
-%{py_sitedir}/_flixengine2.so
+%attr(755,root,root) %{py_sitedir}/_flixengine2.so
%{py_sitedir}/flixengine2.pyc
%{py_sitedir}/flixengine2.pyo
@@ -305,6 +325,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.5 2006/12/13 18:02:27 glen
+- so perms
+- complete php extension integration
+- install pldized initscript
+
Revision 1.4 2006/12/13 17:56:04 glen
- create packages for bindings
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/flixengine.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list