Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37754959
en ru br
Репозитории ALT
S:0.6-alt2
5.1: 0.4-alt2
4.1: 0.3-alt1
4.0:
+backports:0.4-alt0.M40.1
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: rpm-build-pear

 Главная   Изменения   Спек   Патчи   Исходники   Загрузить   Gear   Bugs and FR  Repocop 

rpm-build-pear-0.4/000075500000000000000000000000001103243127600141725ustar00rootroot00000000000000rpm-build-pear-0.4/CVS/000075500000000000000000000000001103243127600146255ustar00rootroot00000000000000rpm-build-pear-0.4/CVS/Entries000064400000000000000000000004241103243127600161610ustar00rootroot00000000000000/release.sh/1.1.1.1/Thu Jan  3 23:20:09 2008//
/xml2changelog/1.1/Sun Sep 17 15:19:58 2006//
/PHP-LICENSE-3.01/1.1/Mon Jul 3 20:55:16 2006//
/README/1.2/Wed Jan 9 09:40:36 2008//
/rpm-build-pear.spec/1.13/Wed Jan 9 10:13:10 2008//
/macros/1.28/Wed Jan 9 10:16:05 2008//
D
rpm-build-pear-0.4/CVS/Repository000064400000000000000000000000171103243127600167250ustar00rootroot00000000000000rpm-build-pear
rpm-build-pear-0.4/CVS/Root000064400000000000000000000000401103243127600154650ustar00rootroot00000000000000:ext:office:/var/local/cvsroot/
rpm-build-pear-0.4/PHP-LICENSE-3.01000064400000000000000000000062221103243127600162050ustar00rootroot00000000000000--------------------------------------------------------------------
The PHP License, version 3.01
Copyright (c) 1999 - 2006 The PHP Group. All rights reserved.
--------------------------------------------------------------------

Redistribution and use in source and binary forms, with or without
modification, is permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.

3. The name "PHP" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact group@php.net.

4. Products derived from this software may not be called "PHP", nor
may "PHP" appear in their name, without prior written permission
from group@php.net. You may indicate that your software works in
conjunction with PHP by saying "Foo for PHP" instead of calling
it "PHP Foo" or "phpfoo"

5. The PHP Group may publish revised and/or new versions of the
license from time to time. Each version will be given a
distinguishing version number.
Once covered code has been published under a particular version
of the license, you may always continue to use it under the terms
of that version. You may also choose to use such covered code
under the terms of any subsequent version of the license
published by the PHP Group. No one other than the PHP Group has
the right to modify the terms applicable to covered code created
under this License.

6. Redistributions of any form whatsoever must retain the following
acknowledgment:
"This product includes PHP software, freely available from
<http://www.php.net/software/>".

THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.

--------------------------------------------------------------------

This software consists of voluntary contributions made by many
individuals on behalf of the PHP Group.

The PHP Group can be contacted via Email at group@php.net.

For more information on the PHP Group and the PHP project,
please see <http://www.php.net>.

PHP includes the Zend Engine, freely available at
<http://www.zend.com>.
rpm-build-pear-0.4/README000064400000000000000000000035061103243127600150560ustar00rootroot00000000000000The rpm-build-pear package contains helper macroses for
PEAR module packaging.
Firstly, define pear_name with PEAR package name.
Use %pear_build in build section, %pear_install_std in install section.
%register_pear_module and %unregister_pear_module in post and preun sections respectively.
In files section use %pear_dir, %pear_xmldir, %pear_testdir, %pear_docdir macroses
for pear modules dir.

You can build PEAR rpm package with
pear make-rpm-spec <package> command from pear-PEAR_Command_Packaging package.

See http://www.freesource.info/wiki/Altlinux/Policy/Pear for detailed
ALT Linux PEAR packaging policy.

09.01.2008 Vitaly Lipatov

==== NEWS ====
=====New macroses in 0.3 version======

%register_pear_module/%unregister_pear_module instead %pear_install/%pear_uninstall
%pear_build instead %pear_prepare_module
%pear_install_std instead %pear_install_module


===== Spec example =====
%define pear_name File
Name: pear-%pear_name
Version: 1.3.0
Release: alt1

Summary: Common file and directory routines, also CSV handling
License: PHP
Group: Development/Other
Url: http://pear.php.net/package/%pear_name

Packager: Vitaly Lipatov <lav@altlinux.ru>

Source: http://pear.php.net/get/%pear_name-%version.tar.bz2

BuildArch: noarch
Requires: pear-core
BuildRequires: pear-core rpm-build-pear

%description
Provides easy access to read/write to files along with
some common routines to deal with paths.

Also provides interface for handling CSV files.

%prep
%setup -c -n %pear_name-%version
%pear_prepare_module

%install
cd %pear_name-%version
%pear_install_module

%post
%pear_install

%preun
%pear_uninstall

%files
%doc LICENSE CHANGELOG
%pear_dir/%pear_name.php
%pear_dir/%pear_name/
%pear_xmldir/%pear_name.xml
%pear_testdir/%pear_name/

%changelog
* Fri Jan 04 2008 Vitaly Lipatov <lav@altlinux.ru> 1.3.0-alt1
- Initial build for ALT Linux

rpm-build-pear-0.4/macros000064400000000000000000000042601103243127600154030ustar00rootroot00000000000000# Helper macroses for pear packages in ALT Linux.
# According to ALT Linux PEAR policy: http://www.freesource.info/wiki/Altlinux/Policy/Pear

# Assure pear_name contains name of PEAR package

# Possible runtime method (from RH):
#pear_datadir %(%{__pear} config-get data_dir 2> /dev/null || echo undefined)

#%_peardir %_datadir/php/pear
%pear_dir %php5_peardir
%pear_datadir %pear_dir/data
%pear_docdir %pear_dir/docs
%pear_testdir %pear_dir/tests
# RH compatible path
%pear_xmldir %pear_dir/.pkgxml


# FIXME --soft makes "Undefined offset: 5 in /usr/share/php/pear/Console/Getopt.php on line 227"
# for use in %%post section
%register_pear_module() \
pear install --nodeps -s --force --register-only %pear_xmldir/%{pear_name}.xml >/dev/null || : \
%nil

# FIXME --register-only makes "Undefined offset: 5 in /usr/share/php/pear/Console/Getopt.php on line 227"
# for use in %%preun section
%unregister_pear_module() \
if [ "$1" = "0" ]; then \
pear uninstall --nodeps --ignore-errors -r %{pear_name} > dev/null || : \
fi \
%nil

# FIXME: altbug # https://bugzilla.altlinux.org/show_bug.cgi?id=13866
# Prepare XML description, LICENSE and CHANGELOG
%pear_build() \
[ -f package2.xml ] || mv package.xml package2.xml \
%_bindir/php -d safe_mode=0 %pear_dir/xml2changelog package2.xml >CHANGELOG || echo "xml2changelog is failed" >CHANGELOG \
[ -d %{pear_name}-%{version} ] && mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml || mv package2.xml %{pear_name}.xml \
install -m 644 -c %pear_dir/PHP-LICENSE-3.01 LICENSE \
%nil

# Install XML package description
%pear_install_xml() \
install -D -m 644 %{pear_name}.xml %buildroot%pear_xmldir/%{pear_name}.xml \
%nil

# TODO: use just pear_install in future?
# Install module and clean up unnecessary files
%pear_install_std() \
# cd to module dir if not jet \
[ -d %{pear_name}-%{version} ] && cd %{pear_name}-%{version} \
pear install --nodeps --offline --packagingroot=%buildroot ./%pear_name.xml \
rm -rf %buildroot%pear_dir/.??* \
%pear_install_xml \
%nil

# compatibility:
%pear_prepare_module %pear_build
%pear_install_module %pear_install_std

%pear_install %register_pear_module
%pear_uninstall %unregister_pear_module

#%pear_install_std %pear_install
rpm-build-pear-0.4/xml2changelog000064400000000000000000000020711103243127600166470ustar00rootroot00000000000000<?php
$prog=array_shift($_SERVER['argv']);
if ($_SERVER['argc']<2) die ("usage : " . $prog . " path_to_package.xml [ --debug ]\n");
$file=array_shift($_SERVER['argv']);

($xml=simplexml_load_file($file)) || die ($file . " not found !\n");
if (in_array("--debug", $_SERVER['argv'])) print_r($xml);

if ($xml['version'] >= "2"){ // Package.xml V 2.0
printf("* Version %s (%s) - API %s (%s) - %s\n\n%s\n\n",
$xml->version->release, $xml->stability->release,
$xml->version->api, $xml->stability->api,
$xml->date, $xml->notes);

foreach($xml->changelog->release as $rel)
printf("* Version %s (%s) - API %s (%s) - %s\n\n%s\n\n",
$rel->version->release, $rel->stability->release,
$rel->version->api, $rel->stability->api,
$rel->date, $rel->notes);
} else { // Package.xml V 1.0
printf("* Version %s (%s) - %s\n\n%s\n\n",
$xml->release->version, $xml->release->state, $xml->release->date, $xml->release->notes);

foreach($xml->changelog->release as $rel)
printf("* Version %s (%s) - %s\n\n%s\n\n",
$rel->version, $rel->state, $rel->date, $rel->notes);
}
?>
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin