[svn] r4735 - in trunk/rpms: . php-pear-date php-pear-file
php-pecl-session_mysql
packagers at lists.rpmforge.net
packagers at lists.rpmforge.net
Mon Sep 18 19:00:50 CEST 2006
Author: thias
Date: 2006-09-18 19:00:50 +0200 (Mon, 18 Sep 2006)
New Revision: 4735
Added:
trunk/rpms/php-pear-date/
trunk/rpms/php-pear-date/php-pear-date.spec
trunk/rpms/php-pear-file/
trunk/rpms/php-pear-file/php-pear-file.spec
trunk/rpms/php-pecl-session_mysql/
trunk/rpms/php-pecl-session_mysql/php-pecl-session_mysql.spec
Log:
Initial import of php-pear-date, php-pear-file and php-pecl-session_mysql.
Added: trunk/rpms/php-pear-date/php-pear-date.spec
===================================================================
--- trunk/rpms/php-pear-date/php-pear-date.spec (rev 0)
+++ trunk/rpms/php-pear-date/php-pear-date.spec 2006-09-18 17:00:50 UTC (rev 4735)
@@ -0,0 +1,64 @@
+# $Id$
+# Authority: matthias
+
+%define pear_dir %(pear config-get php_dir 2>/dev/null || echo %{_datadir}/pear)
+%define xml_dir %{peardir}/.pkgxml
+
+Summary: PEAR package containing date and time zone classes
+Name: php-pear-date
+Version: 1.4.6
+Release: 1
+License: BSD
+Group: Development/Languages
+URL: http://pear.php.net/package/Date
+Source0: http://pear.php.net/get/Date-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildArch: noarch
+Requires: php-pear
+BuildRequires: php-pear
+
+%description
+This package provides generic classes for representation and manipulation of
+dates, times and time zones without the need of timestamps, which is a huge
+limitation for php programs. Includes time zone data, time zone conversions
+and many date/time conversions.
+
+
+%prep
+
+
+%install
+%{__rm} -rf %{buildroot}
+pear install -R %{buildroot} -n %{SOURCE0}
+# Remove these hidden files, we don't want to include those
+%{__rm} -rf %{buildroot}%{pear_dir}/{.channels,.depdb*,.filemap,.lock,.registry}
+
+%{__mkdir_p} %{buildroot}%{xml_dir}
+%{__tar} -xzvf %{SOURCE0} package.xml
+%{__cp} -a package.xml %{buildroot}%{xml_dir}/Date.xml
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%post
+pear install --nodeps --soft --force --register-only \
+ %{xmldir}/Date.xml &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ]; then
+ pear uninstall --nodeps --ignore-errors --register-only \
+ Date &>/dev/null || :
+fi
+
+
+%files
+%defattr(0644, root, root, 0755)
+%{pear_dir}/*
+
+
+%changelog
+* Tue Jun 27 2006 Matthias Saou <http://freshrpms.net/> 1.4.6-1
+- Initial RPM release.
+
Property changes on: trunk/rpms/php-pear-date/php-pear-date.spec
___________________________________________________________________
Name: svn:keywords
+ Id
Added: trunk/rpms/php-pear-file/php-pear-file.spec
===================================================================
--- trunk/rpms/php-pear-file/php-pear-file.spec (rev 0)
+++ trunk/rpms/php-pear-file/php-pear-file.spec 2006-09-18 17:00:50 UTC (rev 4735)
@@ -0,0 +1,62 @@
+# $Id$
+# Authority: matthias
+
+%define pear_dir %(pear config-get php_dir 2>/dev/null || echo %{_datadir}/pear)
+%define xml_dir %{peardir}/.pkgxml
+
+Summary: PEAR package to read/write files and deal with paths
+Name: php-pear-file
+Version: 1.2.2
+Release: 1
+License: PHP
+Group: Development/Languages
+URL: http://pear.php.net/package/File
+Source0: http://pear.php.net/get/File-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildArch: noarch
+Requires: php-pear
+BuildRequires: php-pear
+
+%description
+This package provides easy access to read/write to files along with some
+common routines to deal with paths. Also provides interface for handling
+CSV files.
+
+
+%prep
+
+
+%install
+%{__rm} -rf %{buildroot}
+pear install -R %{buildroot} -n %{SOURCE0}
+# Remove these hidden files, we don't want to include those
+%{__rm} -rf %{buildroot}%{pear_dir}/{.channels,.depdb*,.filemap,.lock,.registry}
+
+%{__mkdir_p} %{buildroot}%{xml_dir}
+%{__tar} -xzvf %{SOURCE0} package.xml
+%{__cp} -a package.xml %{buildroot}%{xml_dir}/File.xml
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%post
+pear install --nodeps --soft --force --register-only \
+ %{xmldir}/File.xml &>/dev/null
+
+%postun
+if [ $1 -eq 0 ]; then
+ pear uninstall --nodeps --ignore-errors --register-only File &>/dev/null
+fi
+
+
+%files
+%defattr(0644, root, root, 0755)
+%{pear_dir}/*
+
+
+%changelog
+* Tue Jun 27 2006 Matthias Saou <http://freshrpms.net/> 1.2.2-1
+- Initial RPM release.
+
Property changes on: trunk/rpms/php-pear-file/php-pear-file.spec
___________________________________________________________________
Name: svn:keywords
+ Id
Added: trunk/rpms/php-pecl-session_mysql/php-pecl-session_mysql.spec
===================================================================
--- trunk/rpms/php-pecl-session_mysql/php-pecl-session_mysql.spec (rev 0)
+++ trunk/rpms/php-pecl-session_mysql/php-pecl-session_mysql.spec 2006-09-18 17:00:50 UTC (rev 4735)
@@ -0,0 +1,111 @@
+# $Id$
+# Authority: matthias
+
+%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4)
+
+Summary: PECL package to save sessions to a MySQL database
+Name: php-pecl-session_mysql
+Version: 1.8
+Release: 1
+License: MIT/Beerware
+Group: Development/Languages
+URL: http://websupport.sk/~stanojr/projects/session_mysql/
+Source: http://websupport.sk/~stanojr/projects/session_mysql/session_mysql-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Requires: php, php-mysql
+BuildRequires: php, php-devel, mysql-devel
+# Required by phpize
+BuildRequires: autoconf, automake, libtool, gcc-c++
+
+%description
+MySQL session save handler for php.
+
+
+%prep
+%setup -n session_mysql-%{version}
+
+
+%build
+# Workaround for broken old phpize on 64 bits
+%{__cat} %{_bindir}/phpize | sed 's|/lib/|/%{_lib}/|g' > phpize && sh phpize
+# Workaround... strange issue seen on RHEL4 i386 at least
+%{__perl} -pi -e 's|PHP_SESSIONMYSQL|PHP_SESSION_MYSQL|g' configure
+%configure --with-mysql=%{_prefix}
+%{__make} %{?_smp_mflags}
+
+
+%install
+%{__rm} -rf %{buildroot}
+%{__make} install INSTALL_ROOT=%{buildroot}
+
+# Drop in the bit of configuration
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
+%{__cat} > %{buildroot}%{_sysconfdir}/php.d/session_mysql.ini << 'EOF'
+; Enable MySQL session extension module
+; To actually make use of it, you will need to edit the main php.ini :
+; session.save_handler = mysql
+extension=session_mysql.so
+
+; Database details
+; sock=
+; host=localhost
+; port=
+; db=phpsession
+; user=phpsession
+; pass=phpsession
+session_mysql.db = "host=localhost db=phpsession user=phpsession pass=phpsession"
+
+; When inserting, retreiving and deleting session from database, add a check
+; for $_SERVER['SERVER_NAME']
+; This disables potential security problem (when used in mass virtualhosting),
+; because users cannot read and edit session for other domains.
+; $_SERVER['SERVER_NAME'] is copied to local variable before script is executed
+; so when users change $_SERVER['SERVER_NAME'] variable, it does not hurt.
+session_mysql.hostcheck = 1
+
+; Remove "www." if exist from $_SERVER['SERVER_NAME'], so the same session will
+; work on www.example.com and example.com.
+session_mysql.hostcheck_removewww = 1
+
+; Use persistent connection to MySQL (every httpd process will use one).
+session_mysql.persistent = 1
+
+; Remove sessions older than x seconds when GC (garbage collector) is woken up
+session_mysql.gc_maxlifetime = 21600
+
+; Locking support via GET_LOCK()/RELEASE_LOCK().
+session_mysql.locking = 1
+
+; Lock timeout, defaults to 5 seconds
+session_mysql.lock_timeout = 5
+
+; When set to 1, return always SUCCESSFUL
+session_mysql.quiet = 0
+
+; OTHER USEFUL OPTIONS (to change in the main php.ini!)
+; session.save_handler - must be set to "mysql"
+; session.gc_probability = 1
+; session.gc_divisor = 100
+; Define the probability that the 'garbage collection' process is started
+; on every session initialization.
+; The probability is calculated by using gc_probability/gc_divisor,
+; e.g. 1/100 means there is a 1% chance that the GC process starts
+; on each request.
+EOF
+
+
+%clean
+%{__rm} -rf %{buildroot}
+
+
+%files
+%defattr(-, root, root, 0755)
+%doc LICENCE README
+%config(noreplace) %{_sysconfdir}/php.d/session_mysql.ini
+%{php_extdir}/session_mysql.so
+
+
+%changelog
+* Thu May 4 2006 Matthias Saou <http://freshrpms.net/> 1.8-1
+- Initial RPM release.
+
Property changes on: trunk/rpms/php-pecl-session_mysql/php-pecl-session_mysql.spec
___________________________________________________________________
Name: svn:keywords
+ Id
More information about the svn-commits
mailing list