diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | php-pear-MDB2-Schema.spec | 118 |
2 files changed, 122 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..13af741 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../../common/Makefile + diff --git a/php-pear-MDB2-Schema.spec b/php-pear-MDB2-Schema.spec new file mode 100644 index 0000000..103541e --- /dev/null +++ b/php-pear-MDB2-Schema.spec @@ -0,0 +1,118 @@ +%{!?pear_metadir: %global pear_metadir %{pear_phpdir}} +%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} +%global ClassName MDB2_Schema + +Name: php-pear-MDB2-Schema +Version: 0.8.5 +Release: 8%{?dist} +Summary: Database Abstraction Layer + +Group: Development/Libraries +License: BSD +URL: http://pear.php.net/package/MDB2_Schema +Source0: http://pear.php.net/get/%{ClassName}-%{version}.tgz + +# Remove files we don't need to ship +Patch0: %{ClassName}-install.patch + +BuildArch: noarch +BuildRequires: php-pear-MDB2 + +Requires(post): %{__pear} +Requires(postun): %{__pear} +# from package.xml, mandatory +Requires: php-pear(MDB2) >= 2.5.0 +Requires: php-pear(XML_Parser) >= 1.2.8 +# from package.xml, optional +Requires: php-pear(XML_Serializer) >= 0.18.0 +# not available php-pear(XML_DTD) >= 0.5.1 +# from phpcompatinfo +Requires: php-pcre +Requires: php-xml +Requires: php-pear(PEAR) + +Provides: php-pear(%{ClassName}) = %{version} + + +%description +XML based database schema manager + +%prep +%setup -qc +%patch0 -p0 -b .install + +cd %{ClassName}-%{version} +mv ../package.xml %{name}.xml + + +%build +cd %{ClassName}-%{version} +# Empty build section, most likely nothing required. + + +%install +cd %{ClassName}-%{version} +%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml + +# Clean up unnecessary files +rm -rf $RPM_BUILD_ROOT%{pear_metadir}/.??* + +# Install XML package description +install -d $RPM_BUILD_ROOT%{pear_xmldir} +install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir} + + +%post +%{__pear} install --nodeps --soft --force --register-only \ + %{pear_xmldir}/%{name}.xml >/dev/null ||: + +%postun +if [ "$1" -eq "0" ]; then + %{__pear} uninstall --nodeps --ignore-errors --register-only \ + %{ClassName} >/dev/null ||: +fi + + +%files +%doc %{pear_docdir}/%{ClassName} +%{pear_xmldir}/%{name}.xml +%{pear_testdir}/%{ClassName} +%{pear_phpdir}/MDB2/Schema.php +%dir %{pear_phpdir}/MDB2/Schema +%{pear_phpdir}/MDB2/Schema/* + + +%changelog +* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Wed Aug 7 2013 Remi Collet <remi@fedoraproject.org> - 0.8.5-6 +- define metadir, fix FTBFS #914363 +- rename MDB2_Schema to php-pear-MDB2-Schema.xml +- remove not packaged files from package.xml +- keep doc in /usr/share/doc/pear +- add explicit dependencies + +* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Aug 14 2012 Remi Collet <remi@fedoraproject.org> - 0.8.5-4 +- rebuilt for new pear_testdir + +* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Thu Feb 24 2011 Nick Bebout <nb@fedoraproject.org> 0.8.5-1 +- Update to latest release + +* Thu Jul 22 2010 Chris Adams <cmadams@hiwaay.net> 0.8.0-1 +- initial build |