diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-06-16 06:52:26 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-06-16 06:52:26 +0200 |
commit | c38402e7ccc9db4c2a3c7d62775760bb6e3a0c68 (patch) | |
tree | 726e2a1e29c1822cb0af08ec81a77cc365bfecd4 |
php-horde-Horde-Autoloader: import from rawhide
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | php-horde-Horde-Autoloader.spec | 69 |
2 files changed, 73 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-horde-Horde-Autoloader.spec b/php-horde-Horde-Autoloader.spec new file mode 100644 index 0000000..9a89070 --- /dev/null +++ b/php-horde-Horde-Autoloader.spec @@ -0,0 +1,69 @@ +%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} +%global pear_name Horde_Autoloader + +Name: php-horde-Horde-Autoloader +Version: 1.0.1 +Release: 1%{?dist} +Summary: Horde Autoloader + +Group: Development/Libraries +License: LGPLv2 +URL: http://pear.horde.org +Source0: http://pear.horde.org/get/%{pear_name}-%{version}.tgz + +BuildArch: noarch +BuildRequires: php-pear >= 1:1.4.9-1.2 +Requires(post): %{__pear} +Requires(postun): %{__pear} +Provides: php-pear(pear.horde.org/Horde_Autoloader) = %{version} +BuildRequires: php-channel(pear.horde.org) +Requires: php-channel(pear.horde.org) + +%description +Autoload implementation and class loading manager for Horde. + +%prep +%setup -q -c +[ -f package2.xml ] || mv package.xml package2.xml +mv package2.xml %{pear_name}-%{version}/%{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 +%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml + +# 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 %{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 \ + pear.horde.org/%{pear_name} >/dev/null || : +fi + +%files +%doc %{pear_docdir}/%{pear_name} +%{pear_xmldir}/%{name}.xml +%{pear_phpdir}/Horde/Autoloader +%{pear_phpdir}/Horde/Autoloader.php +%{pear_testdir}/Horde_Autoloader + +%changelog +* Sat Jan 28 2012 Nick Bebout <nb@fedoraproject.org> - 1.0.1-1 +- Initial package |