From 2bc2ac3c46bbf1d2a71972f1280852101254b12c Mon Sep 17 00:00:00 2001
From: Remi Collet <fedora@famillecollet.com>
Date: Sat, 7 Jun 2014 06:52:43 +0200
Subject: php-PsrLog: backport rawhide changes

---
 php-PsrLog.spec | 35 ++++++++++++++++++++++++-----------
 1 file changed, 24 insertions(+), 11 deletions(-)

diff --git a/php-PsrLog.spec b/php-PsrLog.spec
index 7d0017b..7fa5d11 100644
--- a/php-PsrLog.spec
+++ b/php-PsrLog.spec
@@ -1,26 +1,31 @@
-%global github_owner   php-fig
-%global github_name    log
-%global github_version 1.0.0
-%global github_commit  fe0936ee26643249e916849d48e3a51d5f5e278b
+%global github_owner     php-fig
+%global github_name      log
+%global github_version   1.0.0
+%global github_commit    fe0936ee26643249e916849d48e3a51d5f5e278b
+
+%global composer_vendor  psr
+%global composer_project log
 
 Name:      php-PsrLog
 Version:   %{github_version}
-Release:   2%{?dist}
+Release:   5%{?dist}
 Summary:   Common interface for logging libraries
 
 Group:     Development/Libraries
 License:   MIT
-URL:       http://www.php-fig.org
+URL:       http://www.php-fig.org/psr/psr-3/
 Source0:   https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch
 
-Requires:  php-common >= 5.3.0
-# phpci requires
+Requires:  php(language) >= 5.3.0
+# phpcompatinfo requires (computed from version 1.0.0)
 Requires:  php-date
 Requires:  php-spl
 
+Provides:  php-composer(%{composer_vendor}/%{composer_project}) = %{version}
+
 %description
 This package holds all interfaces/classes/traits related to PSR-3
 (https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md).
@@ -30,7 +35,7 @@ describes a logger. See the specification for more details.
 
 
 %prep
-%setup -q -n %{github_name}-%{github_commit}
+%setup -qn %{github_name}-%{github_commit}
 
 
 %build
@@ -38,8 +43,8 @@ describes a logger. See the specification for more details.
 
 
 %install
-mkdir -p -m 755 %{buildroot}%{_datadir}/php/Psr
-cp -rp Psr/Log %{buildroot}%{_datadir}/php/Psr/
+mkdir -pm 0755 %{buildroot}%{_datadir}/php
+cp -rp Psr %{buildroot}%{_datadir}/php/
 
 
 %files
@@ -50,6 +55,14 @@ cp -rp Psr/Log %{buildroot}%{_datadir}/php/Psr/
 
 
 %changelog
+* Sat Jun  7 2014 Remi Collet <remi@fedoraproject.org> 1.0.0-5
+- backport rawhide changes.
+
+* Fri Jun 06 2014 Shawn Iwinski <shawn.iwinski@gmail.com> - 1.0.0-5
+- Updated URL
+- Requires php-common => php(language)
+- Added php-composer(%%{composer_vendor}/%%{composer_project}) virtual provide
+
 * Wed Jan 23 2013 Remi Collet <remi@fedoraproject.org> 1.0.0-2
 - backport 1.0.0 for remi repo.
 
-- 
cgit