summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-07-21 08:12:26 +0200
committerRemi Collet <fedora@famillecollet.com>2015-07-21 08:12:26 +0200
commit9c4f6dee959291937707105c0becdef911f9aab1 (patch)
tree4219df37f90135db8ca17c211a568773d208fee0
parente32d0fc3f893b38dde07193861b03dd74bc5d1a9 (diff)
php-Monolog: sync with fedora
-rw-r--r--php-Monolog.spec14
1 files changed, 10 insertions, 4 deletions
diff --git a/php-Monolog.spec b/php-Monolog.spec
index 8bd9624..d93fc2a 100644
--- a/php-Monolog.spec
+++ b/php-Monolog.spec
@@ -39,7 +39,7 @@
Name: php-Monolog
Version: %{github_version}
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Sends your logs to files, sockets, inboxes, databases and various web services
Group: Development/Libraries
@@ -49,6 +49,8 @@ Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_co
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
+# %%{pear_phpdir} macro
+BuildRequires: php-pear
# Tests
%if %{with_tests}
## composer.json
@@ -195,9 +197,6 @@ foreach (array(
require_once $dependencyAutoloader;
}
}
-if (file_exists('%{_datadir}/pear/Swift')) {
- $fedoraClassLoader->addPrefix('Swift_', '%{pear_phpdir}/Swift');
-}
if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Component\ClassLoader\ClassLoader)) {
if (!class_exists('Symfony\\Component\\ClassLoader\\ClassLoader', false)) {
@@ -210,6 +209,10 @@ if (!isset($fedoraClassLoader) || !($fedoraClassLoader instanceof \Symfony\Compo
$fedoraClassLoader->addPrefix('Monolog\\', dirname(__DIR__));
+if (file_exists('%{pear_phpdir}/Swift')) {
+ $fedoraClassLoader->addPrefix('Swift_', '%{pear_phpdir}/Swift');
+}
+
// Not all dependency autoloaders exist or are in every dist yet so fallback
// to using include path for dependencies for now
$fedoraClassLoader->setUseIncludePath(true);
@@ -274,6 +277,9 @@ rm -rf %{buildroot}
%changelog
+* Mon Jul 20 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.15.0-2
+- Fix autoloader
+
* Sun Jul 19 2015 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.15.0-1
- Updated to 1.15.0 (RHBZ #1199105)
- Added autoloader