--- /dev/null
+%define pearname Log
+%define php_min_version 5.3.3
+%include /usr/lib/rpm/macros.php
+Summary: Common interface for logging libraries
+Name: php-psr-Log
+Version: 1.0.0
+Release: 1
+License: MIT
+Group: Development/Languages/PHP
+Source0: https://github.com/php-fig/log/archive/%{version}/%{pearname}-%{version}.tar.gz
+# Source0-md5: 2499e0aeb6feaabcdd58f335ccdf5b96
+URL: https://github.com/php-fig/log
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+BuildRequires: rpmbuild(macros) >= 1.610
+Requires: php(core) >= %{php_min_version}
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This package contains interfaces/classes/traits related to PSR-3.
+
+Note that this is not a logger of its own. It is merely an interface
+that describes a logger. See the specification for more details.
+
+%prep
+%setup -q -n log-%{version}
+
+mv Psr/Log/Test .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_pear_dir}
+cp -a Psr $RPM_BUILD_ROOT%{php_pear_dir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%dir %{php_pear_dir}/Psr
+%dir %{php_pear_dir}/Psr/Log
+%{php_pear_dir}/Psr/Log/AbstractLogger.php
+%{php_pear_dir}/Psr/Log/InvalidArgumentException.php
+%{php_pear_dir}/Psr/Log/LogLevel.php
+%{php_pear_dir}/Psr/Log/LoggerAwareInterface.php
+%{php_pear_dir}/Psr/Log/LoggerAwareTrait.php
+%{php_pear_dir}/Psr/Log/LoggerInterface.php
+%{php_pear_dir}/Psr/Log/LoggerTrait.php
+%{php_pear_dir}/Psr/Log/NullLogger.php