rpms/php-pear-MDB2/devel php-pear-MDB2.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Christopher Stone (xulchris)
fedora-extras-commits at redhat.com
Wed Sep 6 22:02:56 UTC 2006
Author: xulchris
Update of /cvs/extras/rpms/php-pear-MDB2/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32017/devel
Modified Files:
.cvsignore sources
Added Files:
php-pear-MDB2.spec
Log Message:
auto-import php-pear-MDB2-2.2.2-1 on branch devel from php-pear-MDB2-2.2.2-1.src.rpm
--- NEW FILE php-pear-MDB2.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
Name: php-pear-MDB2
Version: 2.2.2
Release: 1%{?dist}
Summary: Database Abstraction Layer
Group: Development/Libraries
License: BSD
URL: http://pear.php.net/package/MDB2
Source0: http://pear.php.net/get/MDB2-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: php-pear >= 1:1.4.9-1.2
Requires: php php-pear(PEAR) >= 1.3.6
Requires(post): %{__pear}
Requires(postun): %{__pear}
Provides: php-pear(MDB2) = %{version}
%description
PEAR::MDB2 is a merge of the PEAR::DB and Metabase php database abstraction
layers.
It provides a common API for all supported RDBMS. The main difference to most
other DB abstraction packages is that MDB2 goes much further to ensure
portability.
%prep
%setup -q -c
[ -f package2.xml ] || mv package.xml package2.xml
mv package2.xml MDB2-%{version}/MDB2.xml
%build
cd MDB2-%{version}
# Empty build section, most likely nothing required.
%install
cd MDB2-%{version}
rm -rf $RPM_BUILD_ROOT docdir
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT MDB2.xml
# Move documentation
mkdir -p docdir
mv $RPM_BUILD_ROOT%{pear_docdir}/* docdir
# Clean up unnecessary files
rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
# Install XML package description
mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 MDB2.xml $RPM_BUILD_ROOT%{pear_xmldir}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%{__pear} install --nodeps --soft --force --register-only \
%{pear_xmldir}/MDB2.xml >/dev/null ||:
%postun
if [ "$1" -eq "0" ]; then
%{__pear} uninstall --nodeps --ignore-errors --register-only \
MDB2 >/dev/null ||:
fi
%files
%defattr(-,root,root,-)
%doc MDB2-%{version}/docdir/MDB2/docs/*
%{pear_xmldir}/MDB2.xml
%{pear_testdir}/MDB2
%{pear_phpdir}/MDB2
%{pear_phpdir}/MDB2.php
%changelog
* Wed Sep 06 2006 Christopher Stone <chris.stone at gmail.com> 2.2.2-1
- Upstream sync
- Update spec to latest template
* Sun Sep 03 2006 Christopher Stone <chris.stone at gmail.com> 2.1.0-4
- Update to latest template
* Thu Jun 29 2006 Christopher Stone <chris.stone at gmail.com> 2.1.0-3
- Remove some hacks, clean up spec file
* Wed Jun 28 2006 Christopher Stone <chris.stone at gmail.com> 2.1.0-2
- Remove %%build section since it is not used
* Mon Jun 26 2006 Christopher Stone <chris.stone at gmail.com> 2.1.0-1
- Initial Release
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/php-pear-MDB2/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 6 Sep 2006 22:01:54 -0000 1.1
+++ .cvsignore 6 Sep 2006 22:02:55 -0000 1.2
@@ -0,0 +1 @@
+MDB2-2.2.2.tgz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pear-MDB2/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 6 Sep 2006 22:01:54 -0000 1.1
+++ sources 6 Sep 2006 22:02:55 -0000 1.2
@@ -0,0 +1 @@
+aef4a12a1c07b80118545cc43637ab43 MDB2-2.2.2.tgz
More information about the scm-commits
mailing list