|
|
4d8d55d |
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
|
|
xulchris |
49ce9c4 |
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
|
|
2546f9c |
%global pear_name MDB2
|
|
|
9c5ae35 |
%global prever b5
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
Name: php-pear-MDB2
|
|
|
2546f9c |
Version: 2.5.0
|
|
|
2546f9c |
%if 0%{?prever:1}
|
|
|
3796e2f |
Release: 0.13.%{?prever}%{?dist}
|
|
|
2546f9c |
%else
|
|
|
3796e2f |
Release: 9%{?dist}
|
|
|
2546f9c |
%endif
|
|
xulchris |
49ce9c4 |
Summary: Database Abstraction Layer
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
Group: Development/Libraries
|
|
xulchris |
49ce9c4 |
License: BSD
|
|
xulchris |
49ce9c4 |
URL: http://pear.php.net/package/MDB2
|
|
|
2546f9c |
Source0: http://pear.php.net/get/%{pear_name}-%{version}%{?prever}.tgz
|
|
xulchris |
49ce9c4 |
|
|
|
2546f9c |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
xulchris |
49ce9c4 |
BuildArch: noarch
|
|
|
2546f9c |
BuildRequires: php-pear(PEAR) >= 1.9.1
|
|
|
2546f9c |
|
|
|
4d8d55d |
Requires: php-common >= 5.2.0
|
|
|
4d8d55d |
Requires: php-pear(PEAR) >= 1.9.1
|
|
|
4d8d55d |
# phpci detected required extension
|
|
|
9c5ae35 |
Requires: php-date
|
|
|
9c5ae35 |
Requires: php-pcre
|
|
|
9c5ae35 |
Requires: php-spl
|
|
xulchris |
49ce9c4 |
Requires(post): %{__pear}
|
|
xulchris |
49ce9c4 |
Requires(postun): %{__pear}
|
|
|
4d8d55d |
|
|
|
2546f9c |
Provides: php-pear(%{pear_name}) = %{version}%{?prever}
|
|
xulchris |
49ce9c4 |
|
|
|
4d8d55d |
|
|
xulchris |
49ce9c4 |
%description
|
|
xulchris |
49ce9c4 |
PEAR::MDB2 is a merge of the PEAR::DB and Metabase php database abstraction
|
|
xulchris |
49ce9c4 |
layers.
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
It provides a common API for all supported RDBMS. The main difference to most
|
|
xulchris |
49ce9c4 |
other DB abstraction packages is that MDB2 goes much further to ensure
|
|
xulchris |
49ce9c4 |
portability.
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
%prep
|
|
xulchris |
4ea8bab |
%setup -qc
|
|
|
2546f9c |
cd %{pear_name}-%{version}%{?prever}
|
|
|
2546f9c |
# package.xml is V2
|
|
|
e2bb8e8 |
sed -e '/LICENSE/s/role="data"/role="doc"/' <../package.xml >%{name}.xml
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
%build
|
|
|
2546f9c |
cd %{pear_name}-%{version}%{?prever}
|
|
xulchris |
49ce9c4 |
# Empty build section, most likely nothing required.
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
%install
|
|
|
e2bb8e8 |
rm -rf $RPM_BUILD_ROOT
|
|
|
2546f9c |
cd %{pear_name}-%{version}%{?prever}
|
|
|
9c5ae35 |
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
# Clean up unnecessary files
|
|
|
4d8d55d |
rm -rf $RPM_BUILD_ROOT%{pear_metadir}/.??*
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
# Install XML package description
|
|
xulchris |
4ea8bab |
install -d $RPM_BUILD_ROOT%{pear_xmldir}
|
|
|
2546f9c |
install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
|
|
xulchris |
119d4da |
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
%clean
|
|
xulchris |
49ce9c4 |
rm -rf $RPM_BUILD_ROOT
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
%post
|
|
xulchris |
49ce9c4 |
%{__pear} install --nodeps --soft --force --register-only \
|
|
|
2546f9c |
%{pear_xmldir}/%{name}.xml >/dev/null ||:
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
%postun
|
|
xulchris |
49ce9c4 |
if [ "$1" -eq "0" ]; then
|
|
xulchris |
49ce9c4 |
%{__pear} uninstall --nodeps --ignore-errors --register-only \
|
|
|
2546f9c |
%{pear_name} >/dev/null ||:
|
|
xulchris |
49ce9c4 |
fi
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
%files
|
|
xulchris |
49ce9c4 |
%defattr(-,root,root,-)
|
|
|
e2bb8e8 |
%doc %{pear_docdir}/%{pear_name}
|
|
|
2546f9c |
%{pear_xmldir}/%{name}.xml
|
|
|
2546f9c |
%{pear_testdir}/%{pear_name}
|
|
|
2546f9c |
%{pear_phpdir}/%{pear_name}
|
|
xulchris |
49ce9c4 |
%{pear_phpdir}/MDB2.php
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
%changelog
|
|
|
3796e2f |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.0-0.13.b5
|
|
|
3796e2f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
3796e2f |
|
|
|
77a51b8 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-0.12.b5
|
|
|
77a51b8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
77a51b8 |
|
|
|
afce53f |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-0.11.b5
|
|
|
afce53f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
afce53f |
|
|
|
8aa2248 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-0.10.b5
|
|
|
8aa2248 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
8aa2248 |
|
|
|
7c8cae3 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-0.9.b5
|
|
|
7c8cae3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
7c8cae3 |
|
|
|
9c5ae35 |
* Mon Oct 29 2012 Remi Collet <remi@fedoraproject.org> - 2.5.0-0.8.b5
|
|
|
9c5ae35 |
- update to 2.5.0b5
|
|
|
9c5ae35 |
|
|
|
9c5ae35 |
* Wed Oct 24 2012 Remi Collet <remi@fedoraproject.org> - 2.5.0-0.7.b4
|
|
|
4d8d55d |
- update to 2.5.0b4
|
|
|
4d8d55d |
|
|
|
f0282fe |
* Tue Aug 14 2012 Remi Collet <remi@fedoraproject.org> - 2.5.0-0.6.b3
|
|
|
f0282fe |
- rebuilt for new pear_testdir
|
|
|
f0282fe |
|
|
|
d79b679 |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-0.5.b3
|
|
|
d79b679 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
d79b679 |
|
|
|
61d91e7 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-0.4.b3
|
|
|
61d91e7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
61d91e7 |
|
|
|
e2bb8e8 |
* Sun Apr 17 2011 Remi Collet <Fedora@FamilleCollet.com> 2.5.0-0.3.b3
|
|
|
e2bb8e8 |
- doc in /usr/share/doc/pear
|
|
|
e2bb8e8 |
|
|
|
c55e345 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-0.2.b3
|
|
|
c55e345 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
c55e345 |
|
|
|
2546f9c |
* Fri Dec 31 2010 Remi Collet <Fedora@FamilleCollet.com> - 2.5.0-0.1.b3
|
|
|
2546f9c |
- update to 2.5.0b3
|
|
|
2546f9c |
- move MDB2.xml to php-pear-MDB2.xml
|
|
|
2546f9c |
|
|
|
f5163f4 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-4
|
|
|
f5163f4 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
f5163f4 |
|
|
|
baf2058 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-3
|
|
|
baf2058 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
baf2058 |
|
|
xulchris |
119d4da |
* Tue Nov 13 2007 Christopher Stone <chris.stone@gmail.com> 2.4.1-2
|
|
xulchris |
119d4da |
- Add LOB security patch (bz #379081)
|
|
xulchris |
119d4da |
|
|
xulchris |
934f002 |
* Sat May 05 2007 Christopher Stone <chris.stone@gmail.com> 2.4.1-1
|
|
xulchris |
934f002 |
- Upstream sync
|
|
xulchris |
934f002 |
|
|
xulchris |
4ea8bab |
* Tue Mar 13 2007 Christopher Stone <chris.stone@gmail.com> 2.4.0-1
|
|
xulchris |
4ea8bab |
- Upstream sync
|
|
xulchris |
4ea8bab |
|
|
xulchris |
d0683a0 |
* Tue Nov 21 2006 Christopher Stone <chris.stone@gmail.com> 2.3.0-1
|
|
xulchris |
d0683a0 |
- Upstream sync
|
|
xulchris |
d0683a0 |
- Move LICENSE file from %%{pear_datadir} to %%doc
|
|
xulchris |
d0683a0 |
|
|
xulchris |
061b29e |
* Thu Sep 07 2006 Christopher Stone <chris.stone@gmail.com> 2.2.2-2
|
|
xulchris |
061b29e |
- Sync up with latest pear template
|
|
xulchris |
061b29e |
|
|
xulchris |
49ce9c4 |
* Wed Sep 06 2006 Christopher Stone <chris.stone@gmail.com> 2.2.2-1
|
|
xulchris |
49ce9c4 |
- Upstream sync
|
|
xulchris |
49ce9c4 |
- Update spec to latest template
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
* Sun Sep 03 2006 Christopher Stone <chris.stone@gmail.com> 2.1.0-4
|
|
xulchris |
49ce9c4 |
- Update to latest template
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
* Thu Jun 29 2006 Christopher Stone <chris.stone@gmail.com> 2.1.0-3
|
|
xulchris |
49ce9c4 |
- Remove some hacks, clean up spec file
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
* Wed Jun 28 2006 Christopher Stone <chris.stone@gmail.com> 2.1.0-2
|
|
xulchris |
49ce9c4 |
- Remove %%build section since it is not used
|
|
xulchris |
49ce9c4 |
|
|
xulchris |
49ce9c4 |
* Mon Jun 26 2006 Christopher Stone <chris.stone@gmail.com> 2.1.0-1
|
|
xulchris |
49ce9c4 |
- Initial Release
|