[packages/php-pear-Log] package examples, docs

glen glen at pld-linux.org
Thu Jun 19 12:02:29 CEST 2014

commit 1b7a37228a7975c5d6b4cadf53720f1d4f005e70
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jun 19 13:00:33 2014 +0300

    package examples, docs

 php-pear-Log.spec | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)
diff --git a/php-pear-Log.spec b/php-pear-Log.spec
index 8b07182..e4ec7aa 100644
--- a/php-pear-Log.spec
+++ b/php-pear-Log.spec
@@ -1,11 +1,11 @@
-%define		_status		stable
+%define		status		stable
 %define		pearname	Log
 %include	/usr/lib/rpm/macros.php
 Summary:	%{pearname} - PHP PEAR logging utilities
 Summary(pl.UTF-8):	%{pearname} - klasa z narzędziami logującymi
 Name:		php-pear-%{pearname}
 Version:	1.12.7
-Release:	2
+Release:	3
 License:	MIT
 Group:		Development/Languages/PHP
 Source0:	http://pear.php.net/get/%{pearname}-%{version}.tgz
@@ -32,37 +32,42 @@ The Log framework provides an abstracted logging system. It supports
 logging to console, file, syslog, SQL, mail and mcal targets. It also
 provides a subject - observer mechanism.
-In PEAR status of this package is: %{_status}.
+In PEAR status of this package is: %{status}.
 %description -l pl.UTF-8
 Klasa Log daje abstrakcyjny system logowania. Obsługuje logowanie do
 pliku, na konsolę, do sysloga, bazy SQL, pocztą oraz celów mcal.
 Dostarcza także mechanizm subject - observer.
-Ta klasa ma w PEAR status: %{_status}.
+Ta klasa ma w PEAR status: %{status}.
+mv docs/Log/examples .
+mv docs/Log/docs/* .
+mv .%{php_pear_dir}/data/Log/misc/log.sql .
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
-if [ -f %{_docdir}/%{name}-%{version}/optional-packages.txt ]; then
-	cat %{_docdir}/%{name}-%{version}/optional-packages.txt
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+%post -p <lua>
+%doc guide.txt log.sql
 %doc install.log optional-packages.txt
-%doc docs/%{pearname}/docs/*
 %dir %{php_pear_dir}/%{pearname}

---- gitweb:


More information about the pld-cvs-commit mailing list