2 %define _pearname PEAR_PackageFileManager2
3 %include /usr/lib/rpm/macros.php
4 Summary: PEAR Package FileManager
5 Name: php-pear-%{_pearname}
8 License: New BSD License
9 Group: Development/Languages/PHP
10 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
11 # Source0-md5: 08a02527733f956f45f16bf9a1a52460
12 URL: http://pear.php.net/package/PEAR_PackageFileManager2/
13 BuildRequires: php-pear-PEAR >= 1:1.8.0
14 BuildRequires: rpm-php-pearprov >= 4.4.2-11
15 BuildRequires: rpmbuild(macros) >= 1.571
17 Requires: php-pear-PEAR >= 1.8.0-0.alpha1
18 Requires: php-pear-PEAR_PackageFileManager_Plugins
19 Suggests: php-pear-PHP_CompatInfo
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 # exclude optional dependencies
24 %define _noautoreq pear(PHP/CompatInfo.*)
27 This package revolutionizes the maintenance of PEAR packages. With a
28 few parameters, the entire package.xml is automatically updated with a
29 listing of all files in a package. Features include
30 - manages the new package.xml 2.0 format in PEAR 1.4.0
31 - can detect PHP and extension dependencies using PHP_CompatInfo
32 - reads in an existing package.xml file, and only changes the
34 - a plugin system for retrieving files in a directory. Currently four
35 plugins exist, one for standard recursive directory content listing,
36 one that reads the CVS/Entries files and generates a file listing
37 based on the contents of a checked out CVS repository, one that reads
38 Subversion entries files, and one that queries a Perforce repository.
39 - incredibly flexible options for assigning install roles to
41 - ability to ignore any file based on a * ? wildcard-enabled string(s)
42 - ability to include only files that match a * ? wildcard-enabled
44 - ability to manage dependencies
45 - can output the package.xml in any directory, and read in the
46 package.xml file from any directory.
47 - can specify a different name for the package.xml file
49 In PEAR status of this package is: %{_status}.
54 mv docs/PEAR_PackageFileManager2/examples .
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{php_pear_dir}
61 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
62 cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
65 rm -rf $RPM_BUILD_ROOT
68 %pear_package_print_optionalpackages
71 %defattr(644,root,root,755)
73 %doc optional-packages.txt
74 %{php_pear_dir}/.registry/*.reg
75 %{php_pear_dir}/PEAR/PackageFileManager2.php
77 %{_examplesdir}/%{name}-%{version}