[php-horde-Horde-Exception] Initial commit

Nick Bebout nb at fedoraproject.org
Mon Feb 20 02:46:03 UTC 2012


commit 963bdc803f0c0645a876fa10114d9c8b9b5e2330
Author: Nick Bebout <nb at fedoraproject.org>
Date:   Sun Feb 19 20:45:56 2012 -0600

    Initial commit

 .gitignore                     |    1 +
 php-horde-Horde-Exception.spec |   88 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 3 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d82a59f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Horde_Exception-1.0.8.tgz
diff --git a/php-horde-Horde-Exception.spec b/php-horde-Horde-Exception.spec
new file mode 100644
index 0000000..64b10a5
--- /dev/null
+++ b/php-horde-Horde-Exception.spec
@@ -0,0 +1,88 @@
+%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%global pear_name Horde_Exception
+
+Name:           php-horde-Horde-Exception
+Version:        1.0.8
+Release:        1%{?dist}
+Summary:        Horde Exception Handler
+
+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(PEAR) >= 1.7.0
+Requires:       php-common >= 5.2.0
+Requires(post): %{__pear}
+Requires(postun): %{__pear}
+Requires:       php-pear(pear.horde.org/Horde_Translation) < 2.0.0
+Requires:       php-pear(pear.horde.org/Horde_Translation) >= 1.0.0
+Requires:       php-pear(PEAR) >= 1.7.0
+Provides:       php-pear(pear.horde.org/Horde_Exception) = %{version}
+BuildRequires:  php-channel(pear.horde.org) gettext
+Requires:       php-channel(pear.horde.org)
+
+%description
+This class provides the default exception handlers for the Horde
+Application Framework.
+
+%prep
+%setup -q -c
+cd %{pear_name}-%{version}
+
+# Don't install .po and .pot files
+# Remove checksum for .mo, as we regenerate them
+sed -e '/%{pear_name}.po/d' \
+    -e '/%{pear_name}.mo/s/md5sum=.*name=/name=/' \
+    ../package.xml >%{name}.xml
+
+%build
+cd %{pear_name}-%{version}
+# Empty build section, most likely nothing required.
+
+# Regenerate the locales
+for po in $(find locale -name \*.po)
+do
+   msgfmt $po -o $(dirname $po)/$(basename $po .po).mo
+done
+
+%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}
+%find_lang %{pear_name}
+
+%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 -f %{pear_name}-%{version}/%{pear_name}.lang
+%doc %{pear_docdir}/%{pear_name}
+%{pear_xmldir}/%{name}.xml
+%{pear_phpdir}/Horde/Exception
+%{pear_phpdir}/Horde/Exception.php
+# own locales (non standard) directories, .mo own by find_lang
+%dir %{pear_datadir}/Horde_Exception
+%dir %{pear_datadir}/Horde_Exception/locale
+%dir %{pear_datadir}/Horde_Exception/locale/*
+%dir %{pear_datadir}/Horde_Exception/locale/*/LC_MESSAGES
+%{pear_testdir}/Horde_Exception
+
+%changelog
+* Sat Jan 28 2012 Nick Bebout <nb at fedoraproject.org> - 1.0.8-1
+- Initial package
diff --git a/sources b/sources
index e69de29..e8e0fa6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9043a51d6868faf8673e24b5161f8c8f  Horde_Exception-1.0.8.tgz


More information about the scm-commits mailing list