1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
%define pear_name PEAR_Command_Packaging %define oversion 0.1.2 Name: pear-PEAR_Command_Packaging Version: %{oversion}a Release: alt2 Summary: make-rpm-spec command for managing RPM .spec files for PEAR packages License: PHP Group: Development/Other Url: http://pear.php.net/package/%pear_name Packager: Vitaly Lipatov <lav@altlinux.ru> Source: http://download.pear.php.net/package/%pear_name-%version.tar.bz2 BuildArch: noarch Requires: pear-core BuildRequires: pear-core rpm-build-pear %description This command is an improved implementation of the standard makerpm command, and contains several enhancements that make it far more flexible. Similar functions for other external packaging mechanisms may be added at a later date. Enhanced features over the original PEAR "makerpm" command include: - Ability to define a release on the command line - Allows more advanced customisation of the generated package name - Allows virtual Provides/Requires that differ in format from the package name format - tries to intelligently distinguish between PEAR and PECL when generating packages This command patched for ALT Policy spec generated (see rpm-build-pear package). %prep %setup -c -n %pear_name-%version # fix version mv %pear_name-%oversion %pear_name-%version %build %pear_build %install %pear_install_std %post %register_pear_module %preun %unregister_pear_module %files %pear_dir/PEAR/Command/Packaging.php %pear_dir/PEAR/Command/Packaging.xml %pear_xmldir/%pear_name.xml %pear_datadir/%pear_name/ %changelog * Wed Jan 09 2008 Vitaly Lipatov <lav@altlinux.ru> 0.1.2a-alt2 - fix php package name - do no require base pear package as pear-PEAR - update according to rpm-build-pear 0.3 * Tue Jan 08 2008 Vitaly Lipatov <lav@altlinux.ru> 0.1.2a-alt1 - patched for ALT Linux spec policy * Fri Jan 04 2008 Vitaly Lipatov <lav@altlinux.ru> 0.1.2-alt1 - initial build for ALT Linux Sisyphus