diff --git a/.cvsignore b/.cvsignore index e69de29..5807acc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +adodb452.tgz diff --git a/php-adodb.spec b/php-adodb.spec new file mode 100644 index 0000000..aac8fc1 --- /dev/null +++ b/php-adodb.spec @@ -0,0 +1,68 @@ +Name: php-adodb +Summary: Active Data Objects Data Base +Version: 4.52 +Release: 0.fdr.1 +Epoch: 0 +Source0: http://dl.sf.net/adodb/adodb452.tgz +License: BSD +URL: http://adodb.sf.net +Group: Development/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +Requires: php >= 4.0.5 + +%description +PHP is a wonderful language for building dynamic web pages. +Unfortunately, PHP's database access functions are not +standardised. Every database extension uses a different and +incompatibile API. This creates a need for a database class +library to hide the differences between the different databases +(encapsulate the differences) so we can easily switch databases. + +%prep +%setup -q -n adodb + +%build +# fix dir perms +find . -type d | xargs chmod 755 +# fix file perms +find . -type f | xargs chmod 644 + +%install +rm -rf $RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT%{_var}/www/icons +install -d $RPM_BUILD_ROOT%{_datadir}/adodb +cp -pr * $RPM_BUILD_ROOT%{_datadir}/adodb/ + +install -m644 cute_icons_for_site/* $RPM_BUILD_ROOT%{_var}/www/icons/ + +# cleanup +rm -rf $RPM_BUILD_ROOT%{_datadir}/adodb/cute_icons_for_site +rm -rf $RPM_BUILD_ROOT%{_datadir}/adodb/docs +rm -f $RPM_BUILD_ROOT%{_datadir}/*.zip +rm -f $RPM_BUILD_ROOT%{_datadir}/*.txt + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc *.txt docs/* +%{_datadir}/adodb +%{_var}/www/icons/* + +%changelog +* Wed Aug 11 2004 Aurelien Bompard 0:4.52-0.fdr.1 +- update to 4.52 + +* Sat Jul 31 2004 Aurelien Bompard 0:4.51-0.fdr.1 +- update to 4.51 + +* Sat Jul 03 2004 Aurelien Bompard 0:4.23-0.fdr.2 +- move to _datadir instead of _libdir +- use the _var macro + +* Wed Jun 30 2004 Aurelien Bompard 0:4.23-0.fdr.1 +- Initial Fedora package (from Mandrake) + diff --git a/sources b/sources index e69de29..f3d9672 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +875b59c3bb4d459d5ce662f9b262389e adodb452.tgz