From: Elan Ruusamäe Date: Mon, 23 Sep 2013 21:01:03 +0000 (+0300) Subject: new, version 1.0.0 X-Git-Tag: auto/th/php-psr-Log-1.0.0-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=79c00927c2790bb8994c5f286749bf5f2be59c5a;p=packages%2Fphp-psr-Log.git new, version 1.0.0 --- 79c00927c2790bb8994c5f286749bf5f2be59c5a diff --git a/php-psr-Log.spec b/php-psr-Log.spec new file mode 100644 index 0000000..afcd047 --- /dev/null +++ b/php-psr-Log.spec @@ -0,0 +1,50 @@ +%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