rpms/php-pear-MDB2-Driver-mysqli/F-7 php-pear-MDB2-Driver-mysqli.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Johan Cwiklinski (trasher) fedora-extras-commits at redhat.com
Tue Sep 25 04:40:22 UTC 2007


Author: trasher

Update of /cvs/extras/rpms/php-pear-MDB2-Driver-mysqli/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20072/F-7

Modified Files:
	.cvsignore sources 
Added Files:
	php-pear-MDB2-Driver-mysqli.spec 
Log Message:
Initial import



--- NEW FILE php-pear-MDB2-Driver-mysqli.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name MDB2_Driver_mysqli

Name:           php-pear-MDB2-Driver-mysqli
Version:        1.4.1
Release:        2%{?dist}
Summary:        MySQL Improved MDB2 driver

Group:          Development/Libraries
License:        BSD
URL:            http://pear.php.net/package/MDB2_Driver_mysqli
Source0:        http://pear.php.net/get/%{pear_name}-%{version}.tgz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  php-pear >= 1:1.4.9-1.2
Requires:       php-pear(PEAR)
Requires:       php-pear(MDB2) >= 2.4.1
Requires(post): %{__pear}
Requires(postun): %{__pear}
Provides:       php-pear(%{pear_name}) = %{version}

%description
This is the MySQL Improved MDB2 driver.


%prep
%setup -qc
[ -f package2.xml ] || mv package.xml package2.xml
mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml
cd %{pear_name}-%{version}


%build
cd %{pear_name}-%{version}
# Empty build section, most likely nothing required.


%install
cd %{pear_name}-%{version}
rm -rf $RPM_BUILD_ROOT docdir
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml

# Clean up unnecessary files
rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*

# Install XML package description
install -d $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir}


%clean
rm -rf $RPM_BUILD_ROOT


%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{pear_name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{pear_name} >/dev/null || :
fi


%files
%defattr(-,root,root,-)
%{pear_xmldir}/%{pear_name}.xml
%{pear_datadir}/%{pear_name}
%{pear_testdir}/%{pear_name}
%{pear_phpdir}/MDB2/Driver/*/mysqli.php
%{pear_phpdir}/MDB2/Driver/mysqli.php


%changelog
* Sat Sep 22 2007 Johan Cwiklinski <johan AT x-tnd DOT be> 1.4.1-2
- Requires MDB2 2.4.1 or newer
* Sun Sep 02 2007 Johan Cwiklinski <johan AT x-tnd DOT be> 1.4.1-1
- Initial Release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/php-pear-MDB2-Driver-mysqli/F-7/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	25 Sep 2007 01:12:17 -0000	1.1
+++ .cvsignore	25 Sep 2007 04:39:50 -0000	1.2
@@ -0,0 +1 @@
+MDB2_Driver_mysqli-1.4.1.tgz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pear-MDB2-Driver-mysqli/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	25 Sep 2007 01:12:17 -0000	1.1
+++ sources	25 Sep 2007 04:39:50 -0000	1.2
@@ -0,0 +1 @@
+eb93eb4687da1a1018c832622da42f6f  MDB2_Driver_mysqli-1.4.1.tgz




More information about the fedora-extras-commits mailing list