Sophie

Sophie

distrib > Mandriva > 2010.2 > x86_64 > by-pkgid > ed7854ea9208bb0b29d15f4a50b53b6c > files > 2

php-pear-PEAR_PackageFileManager-1.7.0-2mdv2010.1.src.rpm

%define		_class		PEAR
%define		_subclass	PackageFileManager
%define		upstream_name	%{_class}_%{_subclass}

%define		_requires_exceptions pear(PEAR/PackageFile.php)\\|pear(PEAR/PackageFile/Generator/v1.php)

Name:		php-pear-%{upstream_name}
Version:	1.7.0
Release:	%mkrel 2
Summary:	Takes an existing package.xml file and updates it with a new filelist and changelog
License:	New BSD License
Group:		Development/PHP
URL:		http://pear.php.net/package/PEAR_PackageFileManager/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear
BuildRoot:	%{_tmppath}/%{name}-%{version}

%description
This package revolutionizes the maintenance of PEAR packages. With a
few parameters, the entire package.xml is automatically updated with a
listing of all files in a package.

Features include:

- manages the new package.xml 2.0 format in PEAR 1.4.0
- can detect PHP and extension dependencies using PHP_CompatInfo
- reads in an existing package.xml file, and only changes the release/changelog
- a plugin system for retrieving files in a directory. Currently two plugins
  exist, one for standard recursive directory content listing, and one that
  reads the CVS/Entries files and generates a file listing based on the
  contents of a checked out CVS repository
- incredibly flexible options for assigning install roles to files/directories
- ability to ignore any file based on a * ? wildcard-enabled string(s)
- ability to include only files that match a * ? wildcard-enabled string(s)
- ability to manage dependencies
- can output the package.xml in any directory, and read in the package.xml
  file from any directory.
- can specify a different name for the package.xml file
		 
PEAR_PackageFileManager is fully unit tested.
The new PEAR_PackageFileManager2 class is not.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
rm -rf %{buildroot}

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean
rm -rf %{buildroot}

%post
%if %mdkversion < 201000
pear install --nodeps --soft --force --register-only \
    %{_datadir}/pear/packages/%{upstream_name}.xml >/dev/null || :
%endif

%preun
%if %mdkversion < 201000
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only \
        %{pear_name} >/dev/null || :
fi
%endif

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml


%changelog
* Sat Nov 21 2009 Guillaume Rousse <guillomovitch@mandriva.org> 1.7.0-2mdv2010.1
+ Revision: 467948
- spec cleanup
- use pear installer
- don't ship tests, even in documentation
- own all directories
- use rpm filetriggers starting from mandriva 2010.1

* Mon Apr 20 2009 Raphaël Gertz <rapsys@mandriva.org> 1.7.0-1mdv2009.1
+ Revision: 368334
- Update php pear PEAR_PackageFileManager to 1.7.0 version

* Sun Mar 22 2009 Funda Wang <fwang@mandriva.org> 1.6.3-1mdv2009.1
+ Revision: 360149
- New version 1.6.3

* Thu Jan 01 2009 Oden Eriksson <oeriksson@mandriva.com> 1.6.0-1.a4.3mdv2009.1
+ Revision: 322577
- rebuild

* Thu Jul 17 2008 Oden Eriksson <oeriksson@mandriva.com> 1.6.0-1.a4.2mdv2009.0
+ Revision: 237044
- rebuild

  + Thierry Vignaud <tvignaud@mandriva.com>
    - fix description-line-too-long
    - kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot


* Sat Nov 11 2006 Oden Eriksson <oeriksson@mandriva.com> 1.6.0-1.a4.1mdv2007.0
+ Revision: 82505
- Import php-pear-PEAR_PackageFileManager

* Fri Feb 10 2006 Oden Eriksson <oeriksson@mandriva.com> 1.6.0-0.a4.2mdk
- new group (Development/PHP)

* Thu Dec 08 2005 Oden Eriksson <oeriksson@mandriva.com> 1.6.0-0.a4.1mdk
- 1.6.0a4

* Fri Aug 26 2005 Oden Eriksson <oeriksson@mandriva.com> 1.5.2-4mdk
- rebuilt to fix auto deps

* Wed Aug 10 2005 Oden Eriksson <oeriksson@mandriva.com> 1.5.2-3mdk
- rebuilt to use new pear auto deps/reqs from pld

* Sun Jul 31 2005 Oden Eriksson <oeriksson@mandriva.com> 1.5.2-2mdk
- fix deps

* Thu Jul 21 2005 Oden Eriksson <oeriksson@mandriva.com> 1.5.2-1mdk
- 1.5.2

* Thu Jul 21 2005 Oden Eriksson <oeriksson@mandriva.com> 1.5.1-3mdk
- reworked the %%post and %%preun stuff, like in conectiva
- fix deps

* Wed Jul 20 2005 Oden Eriksson <oeriksson@mandriva.com> 1.5.1-2mdk
- fix deps

* Tue Jul 19 2005 Oden Eriksson <oeriksson@mandriva.com> 1.5.1-1mdk
- initial Mandriva package (PLD import)