SPECS (PHP): goddamnit.spec - try this

glen glen at pld-linux.org
Tue Sep 20 09:09:17 CEST 2005


Author: glen                         Date: Tue Sep 20 07:09:17 2005 GMT
Module: SPECS                         Tag: PHP
---- Log message:
- try this

---- Files affected:
SPECS:
   goddamnit.spec (1.44 -> 1.44.2.1) 

---- Diffs:

================================================================
Index: SPECS/goddamnit.spec
diff -u SPECS/goddamnit.spec:1.44 SPECS/goddamnit.spec:1.44.2.1
--- SPECS/goddamnit.spec:1.44	Thu May 26 08:03:52 2005
+++ SPECS/goddamnit.spec	Tue Sep 20 09:09:11 2005
@@ -1,33 +1,111 @@
 # $Revision$, $Date$
-Summary:	Shit - it doesn't build
-Name:		goddamnit
-Version:	6.6.6
-Release:	78
-License:	Public Domain
-Group:		Base
+%include	/usr/lib/rpm/macros.php
+%define		_class		PEAR
+%define		_status		stable
+%define		_pearname	%{_class}
+%define		_noautoreq	'pear(PEAR/FTP.php)'
+
+Summary:	%{_pearname} - main PHP PEAR class
+Summary(pl):	%{_pearname} - podstawowa klasa dla PHP PEAR
+Name:		php-pear-%{_pearname}
+Version:	1.4.0
+Release:	1
+Epoch:		1
+License:	PHP 3.0
+Group:		Development/Languages/PHP
+Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
+# Source0-md5:	8a1cf99a637d5420b7749a1c3dfaceb5
+Source1:	%{name}-template.spec
+Patch0:		%{name}-memory.patch
+Patch1:		%{name}-sysconfdir.patch
+Patch2:		%{name}-rpmpkgname.patch
+Patch3:		%{name}-rpmvars.patch
+URL:		http://pear.php.net/package/PEAR
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+BuildRequires:	php-pear >= 4:1.0-6
+Requires:	php-pear >= 4:1.0-5.5
+Requires:	php-cli
+Requires:	php-pcre
+Obsoletes:	php-pear-PEAR-Command
+Obsoletes:	php-pear-PEAR-Frontend-CLI
+Obsoletes:	php-pear-PEAR-OS
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This spec is used to 'debug' builders from the builder infrastructure's
-point of view (you commit anything you want in here and send a request
-for this spec to build somewhere).
+The PEAR package contains:
+- the PEAR installer, for creating, distributing and installing
+  packages
+- the alpha-quality PEAR_Exception PHP5 error handling mechanism
+- the beta-quality PEAR_ErrorStack advanced error handling mechanism
+- the PEAR_Error error handling mechanism
+- the OS_Guess class for retrieving info about the OS where PHP is
+  running on
+- the System class for quick handling of common operations with files
+  and directories
+- the PEAR base class packages
+
+In PEAR status of this package is: %{_status}.
+
+%description -l pl
+Pakiet PEAR zawiara:
+- PEAR installer do tworzenia, dystrybucji i instalowania pakietów,
+- mechanizm PEAR_Exception (w fazie alpha) do obsługi błędów PHP5,
+- zaawansowany mechanizm PEAR_ErrorStack (w fazie beta) do obsługi
+  błędów,
+- mechanizm obsługi błędów PEAR_Error,
+- klasę OS_Guess do pozyskiwania informacji na temat systemu
+  operacyjnego,
+- klasę System do szybkiej obsługi typowych operacji na plikach i
+  katalogach,
+- podstawową klasy PEAR.
 
-%description -l pl_PL.UTF-8
-ęóÄ
śłşźćń
+Ta klasa ma w PEAR status: %{_status}.
 
 %prep
-%setup -q -c -T
+rpm -q php
+phm -m
+pear
+php -r 'echo 1+1;'
+%pear_package_setup
+%patch0 -p2
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+
+find '(' -name '*~' -o -name '*.orig' ')' | xargs -r rm -v
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{php_pear_dir},%{_bindir}}
 
-%build
-touch foo
+D=$(pwd)
+pearcmd() {
+	php -d output_buffering=1 -d include_path=".:${D}%{php_pear_dir}" ${D}%{php_pear_dir}/pearcmd.php -c ${D}/pearrc "$@"
+}
+pearcmd config-set doc_dir %{_docdir} || exit
+pearcmd config-set data_dir %{php_pear_dir}/data || exit
+pearcmd config-set php_dir %{php_pear_dir} || exit
+pearcmd config-set test_dir %{php_pear_dir}/tests || exit
+pearcmd config-set sig_bin %{_bindir}/gpg || exit
+cp $D/pearrc $RPM_BUILD_ROOT%{_sysconfdir}/pear.conf
 
-%postun
-%update_desktop_database_postun
+%pear_package_install
+cp -a ./%{_bindir}/* $RPM_BUILD_ROOT%{_bindir}
+
+install %{SOURCE1} $RPM_BUILD_ROOT%{php_pear_dir}/data/%{_class}/template.spec
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-#%{_bindir}/*
+%doc install.log
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/pear.conf
+%attr(755,root,root) %{_bindir}/*
+%{php_pear_dir}/.registry/*.reg
+%{php_pear_dir}/*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -35,6 +113,296 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.44  2005/05/26 06:03:52  glen
-- voice me dammit
+Revision 1.44.2.1  2005/09/20 07:09:11  glen
+- try this
+
+Revision 1.69  2005/09/19 23:42:42  glen
+- R: pcre extension; rel 1
+
+Revision 1.68  2005/09/19 21:43:40  glen
+- integer BR
+
+Revision 1.67  2005/09/19 21:40:08  glen
+- need php-pear with PEAR lockfiles to build
+
+Revision 1.66  2005/09/19 18:57:25  glen
+- merged from DEVEL: use new pear packaging system
+
+Revision 1.65.2.17  2005/09/19 17:08:55  glen
+- new macros moved to rpm.spec
+
+Revision 1.65.2.16  2005/09/19 08:00:26  glen
+- don't care what the builddir is
+
+Revision 1.65.2.15  2005/09/19 07:09:34  glen
+- avoid packaging backup files
+
+Revision 1.65.2.14  2005/09/18 19:48:39  glen
+- 1.4.0 release
+
+Revision 1.65.2.13  2005/09/18 14:07:28  glen
+- updated, added rpmvars patch
+
+Revision 1.65.2.12  2005/09/18 13:38:52  glen
+- updated to 1.4.0RC2 (beta)
+
+Revision 1.65.2.11  2005/09/18 13:34:25  glen
+- use PLD-ized template for rpm packages
+- add patch for PLD package naming schema
+
+Revision 1.65.2.10  2005/09/18 12:40:53  glen
+- unify
+
+Revision 1.65.2.9  2005/09/18 11:52:23  glen
+- use %post message from pear install
+
+Revision 1.65.2.8  2005/09/18 11:00:35  glen
+- use php-pear-build
+
+Revision 1.65.2.7  2005/09/18 10:09:20  glen
+- such package method requires php-zlib
+
+Revision 1.65.2.6  2005/09/18 10:07:38  glen
+- optional pear/PEAR_Delegator available
+
+Revision 1.65.2.5  2005/09/18 08:44:10  glen
+- minimum BR php-pear-PEAR
+
+Revision 1.65.2.4  2005/09/18 08:39:26  glen
+- updated
+
+Revision 1.65.2.3  2005/09/18 08:19:21  glen
+- create pear.conf
+
+Revision 1.65.2.2  2005/09/17 23:40:30  glen
+- remove builddir hack
+
+Revision 1.65.2.1  2005/09/17 23:12:43  glen
+- using pear to install files. package filelist differs a little.
+  see urpmdiff: http://glen.pastebin.com/366706
+
+Revision 1.65  2005/09/05 06:01:15  adamg
+- noautoreq for pear(PEAR/FTP.php)
+- release 3
+
+Revision 1.64  2005/09/02 07:03:13  adamg
+- release 2 (due to forgotten commit of -memory.patch)
+
+Revision 1.63  2005/09/02 06:56:29  adamg
+- updated to 1.4.0b1
+
+Revision 1.62  2005/06/19 14:23:29  glen
+- add bigger memory limit patch
+- R: php-cli for /usr/bin/pear
+- adapterized
+
+Revision 1.61  2005/06/17 21:43:00  undefine
+- +x for binaries
+
+Revision 1.60  2005/05/04 20:08:41  adamg
+- updated to 1.4.0a11
+
+Revision 1.59  2005/04/06 08:51:47  adamg
+- updated to 1.4.0a10
+
+Revision 1.58  2005/03/27 18:57:22  havner
+- rel 2
+
+Revision 1.57  2005/03/26 20:02:30  adamg
+- updated to 1.4.0a9 (alpha)
+- better pl/en description
+- removed subpackages, because:
+  - PEAR required PEAR-Command, PEAR-Command required PEAR-OS and PEAR-OS
+    required PEAR;
+  - there was no sense in separating PEAR-Fronted-CLI, since it was only
+    one tiny file (whole package was 16 KB big)
+- dropped noautoreqdep (no longer needed)
+
+Revision 1.56  2005/02/19 18:00:21  adamg
+- updated to 1.3.5
+
+Revision 1.55  2005/01/25 15:33:48  glen
+- add pear_dir/PEAR to the package
+
+Revision 1.54  2005/01/02 12:32:47  adamg
+- updated to 1.3.4
+
+Revision 1.53  2004/12/05 13:26:21  adamg
+- removed _noautoreqdep for pear(/usr/src/readhat/RPMS/i386/PEAR)
+- added _noautoreqdep for pear(../PEAR/RunTest.php)
+- release 3
+
+Revision 1.52  2004/12/04 14:09:09  adamg
+- rebuild with new PEAR provides/requires scripts
+- release 2
+
+Revision 1.51  2004/11/12 13:46:17  paladine
+- updated to 1.3.3.1
+
+Revision 1.50  2004/10/30 07:07:26  paladine
+- unifications
+
+Revision 1.49  2004/10/30 06:57:24  adamg
+- updated to 1.3.3
+
+Revision 1.48  2004/10/24 18:59:15  ankry
+- pl fix
+
+Revision 1.47  2004/10/24 18:53:07  paladine
+- spelling fixes, uppercases, etc.
+
+Revision 1.46  2004/08/09 13:21:42  blues
+- release 2 for AC
+
+Revision 1.45  2004/05/30 13:13:52  adamg
+- fixed english information about status of the package
+
+Revision 1.44  2004/04/07 10:13:48  adamg
+- updated to 1.3.1
+
+Revision 1.43  2004/02/22 16:52:51  adamg
+- php-pear-Frontend_CLI (/usr/bin/pear) requires php-pear-Archive_Tar and
+  php-pear-Console_Getopt
+
+Revision 1.42  2004/02/22 16:48:17  adamg
+- %build section unneeded?
+
+Revision 1.41  2004/02/22 16:25:10  adamg
+- updated to 1.3
+- status changed to stable
+
+Revision 1.40  2004/02/01 21:45:29  adamg
+- updated to 1.3b6
+
+Revision 1.39  2003/12/23 11:16:53  adamg
+- updated to 1.3b5
+
+Revision 1.38  2003/10/21 08:06:32  adamg
+- updated to 1.3b3
+
+Revision 1.37  2003/10/07 20:56:03  adamg
+- do not use macros in URL
+
+Revision 1.36  2003/10/02 12:20:45  adamg
+- updated to 1.3b2
+
+Revision 1.35  2003/09/29 14:42:50  adamg
+- updated 1.3b1
+
+Revision 1.34  2003/08/31 20:49:11  adamg
+- more specific URL
+
+Revision 1.33  2003/08/15 15:06:37  adamg
+- updated to 1.2.1
+
+Revision 1.32  2003/08/14 08:56:46  adamg
+- updated to 1.2
+
+Revision 1.31  2003/08/06 06:25:55  adamg
+- updated to 1.2b5
+
+Revision 1.30  2003/08/05 06:15:19  adamg
+- updated to 1.2b4
+
+Revision 1.29  2003/08/03 20:33:25  adamg
+- updated to 1.2b3
+- license change from php 2.02 to php 3.0
+
+Revision 1.28  2003/06/23 13:51:03  adamg
+- updated to 1.2b2
+
+Revision 1.27  2003/06/22 21:52:47  adamg
+- fixed %build and %install (hopefully right). Builds...
+
+Revision 1.26  2003/06/14 09:21:46  adamg
+- cosmetics
+
+Revision 1.25  2003/06/03 20:43:57  adamg
+- adapterized
+
+Revision 1.24  2003/05/28 10:50:29  adamg
+- massive manual attack: pear packages update
+
+Revision 1.23  2003/05/28 08:58:47  adamg
+- massive attack: added source0-md5
+
+Revision 1.22  2003/05/25 06:25:22  misi3k
+- massive attack s/pld.org.pl/pld-linux.org/
+
+Revision 1.21  2003/01/19 18:18:38  blues
+- applied changes from RA-branch
+
+Revision 1.20  2003/01/11 22:23:11  blues
+- 1.0.1
+
+Revision 1.19  2003/01/07 17:34:16  blues
+- prepared for removing pear from php
+
+Revision 1.18  2003/01/02 00:26:24  blues
+- 1.0 - first stable release
+
+Revision 1.17  2002/11/15 10:56:15  misto
+- reverting reverted (and not needed in HEAD) changes
+- working Ra version branched in RA-branch
+- DON'T MOVE STABLE on HEAD!!!
+- release 2
+
+Revision 1.16  2002/11/12 11:26:00  marcus
+- readded Provides erased by mistio to satisfy missing deps
+  (thanks to blues and PlusGSM)
+- rel.2.
+
+Revision 1.15  2002/11/07 17:15:37  blues
+- 1.0b1 - noautoreq added
+
+Revision 1.14  2002/10/14 23:50:29  misto
+- new rpm-php-requires/provides scripts
+- release 6
+
+Revision 1.13  2002/10/14 20:06:54  misto
+- merged with branch NEW_PEAR_REQUIRES (new rpm pear req/prov scripts)
+- release 6
+
+Revision 1.12.2.1  2002/10/11 19:32:55  misto
+- modified provides/requires for new pear-prov/req rpm scripts
+
+Revision 1.12  2002/09/07 06:20:47  blues
+- release 5 - fix in macros, added Provides - STBR
+
+Revision 1.11  2002/07/30 22:43:04  blues
+- release 4
+- added pear command to package (removed from php-pear-devel)
+- STBR
+
+Revision 1.10  2002/07/12 22:20:47  blues
+- release 3 (rebuild with new rpm)
+- gtk frontend removed to external package
+- command-line frontend in separate package
+- new provides (one not exactly right)
+
+Revision 1.9  2002/07/12 16:00:26  blues
+- added provides(stdClass) - temporary empty class
+
+Revision 1.8  2002/07/03 23:55:14  kloczek
+- release 2.
+
+Revision 1.7  2002/07/02 10:19:16  blues
+- Req: php-pear
+
+Revision 1.6  2002/06/30 22:20:59  blues
+- small fix
+
+Revision 1.5  2002/06/30 19:43:12  kloczek
+- simplifications in %install.
+
+Revision 1.4  2002/06/29 14:46:02  blues
+- more macros, fixes in dirs
+
+Revision 1.3  2002/06/24 14:07:22  blues
+- separate into 3 subpackages
+
+Revision 1.2  2002/06/24 13:34:16  blues
+- there is no docs...
 
+Revision 1.1  2002/06/24 13:30:40  blues
+- main PEAR class. Should be split into subpackages.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/goddamnit.spec?r1=1.44&r2=1.44.2.1&f=u




More information about the pld-cvs-commit mailing list