packages: php-pear-Net_SmartIRC/php-pear-Net_SmartIRC-fix_includes.patch, p...

glen glen at pld-linux.org
Thu Aug 19 15:19:49 CEST 2010


Author: glen                         Date: Thu Aug 19 13:19:49 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 1.0.1, add phpdoc package

---- Files affected:
packages/php-pear-Net_SmartIRC:
   php-pear-Net_SmartIRC-fix_includes.patch (1.3 -> 1.4) , php-pear-Net_SmartIRC.spec (1.24 -> 1.25) 

---- Diffs:

================================================================
Index: packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC-fix_includes.patch
diff -u packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC-fix_includes.patch:1.3 packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC-fix_includes.patch:1.4
--- packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC-fix_includes.patch:1.3	Thu Sep 29 02:24:49 2005
+++ packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC-fix_includes.patch	Thu Aug 19 15:19:42 2010
@@ -1,15 +1,11 @@
---- ./SmartIRC.php~	2005-09-29 03:21:19.000000000 +0300
-+++ ./SmartIRC.php	2005-09-29 03:22:16.000000000 +0300
-@@ -43,9 +43,9 @@
+--- Net_SmartIRC-1.0.1/usr/share/pear/Net/SmartIRC.php~	2010-08-19 16:07:02.000000000 +0300
++++ Net_SmartIRC-1.0.1/usr/share/pear/Net/SmartIRC.php	2010-08-19 16:09:15.338384660 +0300
+@@ -43,7 +43,7 @@
   *
   */
  // ------- PHP code ----------
--include_once('SmartIRC/defines.php');
--include_once('SmartIRC/irccommands.php');
--include_once('SmartIRC/messagehandler.php');
-+include_once('Net/SmartIRC/defines.php');
-+include_once('Net/SmartIRC/irccommands.php');
-+include_once('Net/SmartIRC/messagehandler.php');
- define('SMARTIRC_VERSION', '1.0.0 ($Revision$)');
+-require_once 'SmartIRC/defines.php';
++require_once 'Net/SmartIRC/defines.php';
+ define('SMARTIRC_VERSION', '1.1.0-dev ($Revision$)');
  define('SMARTIRC_VERSIONSTRING', 'Net_SmartIRC '.SMARTIRC_VERSION);
  

================================================================
Index: packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC.spec
diff -u packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC.spec:1.24 packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC.spec:1.25
--- packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC.spec:1.24	Thu Jan 31 13:16:49 2008
+++ packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC.spec	Thu Aug 19 15:19:42 2010
@@ -4,18 +4,16 @@
 %define		_subclass	SmartIRC
 %define		_status		stable
 %define		_pearname	%{_class}_%{_subclass}
-
 Summary:	%{_pearname} - IRC client class
 Summary(pl.UTF-8):	%{_pearname} - klasa klienta IRC
 Name:		php-pear-%{_pearname}
-Version:	1.0.0
-Release:	3
+Version:	1.0.1
+Release:	1
 License:	LGPL
 Group:		Development/Languages/PHP
 Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
-# Source0-md5:	042935bf413e7021aeea2971dd4d3997
+# Source0-md5:	c8d5543a5c9565e5eed574135ff1a9b5
 Patch0:		%{name}-fix_includes.patch
-Patch1:		%{name}-refs.patch
 URL:		http://pear.php.net/package/Net_SmartIRC/
 BuildRequires:	php-pear-PEAR
 BuildRequires:	rpm-php-pearprov >= 4.4.2-11
@@ -24,6 +22,8 @@
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_phpdocdir		%{_docdir}/phpdoc
+
 %description
 Net_SmartIRC is a PHP class for communication with IRC networks, which
 conforms to the RFC 2812 (IRC protocol). It's an API that handles all
@@ -74,36 +74,67 @@
 
 Ta klasa ma w PEAR status: %{_status}.
 
+%package phpdoc
+Summary:	Online manual for %{name}
+Summary(pl.UTF-8):	Dokumentacja online do %{name}
+Group:		Documentation
+Requires:	php-dirs
+
+%description phpdoc
+Documentation for %{name}.
+
+%description phpdoc -l pl.UTF-8
+Dokumentacja do %{name}.
+
 %prep
 %pear_package_setup
-cd ./%{php_pear_dir}/%{_class}
 %patch0 -p1
-%patch1 -p1
+
+mv docs/%{_pearname}/examples .
+mv docs/%{_pearname}/docs/HTML apidoc
+mv docs/%{_pearname}/docs/* .
+rmdir docs/%{_pearname}/docs
+mv docs/%{_pearname}/* .
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{php_pear_dir}
 %pear_package_install
 
+install -d $RPM_BUILD_ROOT%{_phpdocdir}/%{_pearname}
+cp -a apidoc/* $RPM_BUILD_ROOT%{_phpdocdir}/%{_pearname}
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
 %doc install.log
-%doc docs/%{_pearname}/docs/*
-%doc docs/%{_pearname}/{CHANGELOG,CREDITS,FEATURES,README}
+%doc CHANGELOG CREDITS FEATURES README
+%doc DOCUMENTATION HOWTO
 %dir %{php_pear_dir}/%{_class}/%{_subclass}
 %{php_pear_dir}/.registry/*.reg
 %{php_pear_dir}/%{_class}/*.php
 %{php_pear_dir}/%{_class}/%{_subclass}/*.php
 
+%{_examplesdir}/%{name}-%{version}
+
+%files phpdoc
+%defattr(644,root,root,755)
+%{_phpdocdir}/%{_pearname}
+
 %define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.25  2010/08/19 13:19:42  glen
+- up to 1.0.1, add phpdoc package
+
 Revision 1.24  2008/01/31 12:16:49  glen
 - rel 3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC-fix_includes.patch?r1=1.3&r2=1.4&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/php-pear-Net_SmartIRC/php-pear-Net_SmartIRC.spec?r1=1.24&r2=1.25&f=u



More information about the pld-cvs-commit mailing list