2 # - finish ../SOURCES/php-pear-PEAR-rpmvars.patch merge
3 # - merge conflict + upper to ">": (Mail_mimeDecode)
4 # Requires: php-pear-Mail_Mime >= 1.4.0
5 # Conflicts: php-pear-Mail_Mime = 1.4.0
7 # Requires: php-pear-Mail_Mime > 1.4.0
8 # - add minimum php version used (so that the epoch does not go to nonsense for
9 # older php's, yet think that could blow up php4 only pkgs)
10 %include /usr/lib/rpm/macros.php
12 %define _pearname PEAR_Command_Packaging
13 Summary: %{_pearname} - make-rpm-spec command for managing RPM .spec files for PEAR packages
14 Summary(pl.UTF-8): %{_pearname} - polecenie make-rpm-spec do zarządzania plikami .spec pakietów PEAR-a
15 Name: php-pear-%{_pearname}
19 Group: Development/Languages/PHP
20 Source0: http://pear.php.net/get/%{_pearname}-%{version}.tgz
21 # Source0-md5: 457881b46b8c42ba58cdb698872df2e6
22 Source1: php-pear-PEAR-template.spec
24 URL: http://pear.php.net/package/PEAR_Command_Packaging/
25 BuildRequires: php-packagexml2cl
26 BuildRequires: php-pear-PEAR >= 1:1.4.3
27 BuildRequires: rpm-php-pearprov >= 4.4.2-11
28 BuildRequires: rpmbuild(macros) >= 1.571
30 Requires: php-pear-PEAR >= 1:1.4.3
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 This command is an improved implementation of the standard makerpm
36 command, and contains several enhancements that make it far more
37 flexible. Similar functions for other external packaging mechanisms
38 may be added at a later date.
40 Enhanced features over the original PEAR "makerpm" command include:
41 - Ability to define a release on the command line
42 - Allows more advanced customisation of the generated package name
43 - Allows virtual Provides/Requires that differ in format from the
45 - tries to intelligently distinguish between PEAR and PECL when
48 In PEAR status of this package is: %{_status}.
50 %description -l pl.UTF-8
51 To polecenie to ulepszona implementacja standardowego polecenia
52 makerpm. Zawiera kilka rozszerzeń czyniących ją dużo bardziej
53 elastycznym. W przyszłości mogą być dodane podobne funkcje dla innych
54 zewnętrznych mechanizmów pakietów.
56 Rozszerzone możliwości w stosunku do oryginalnego polecenia PEAR-a
58 - możliwość definiowania pola Release z linii poleceń
59 - bardziej zaawansowane dostosowywanie nazwy generowanego pakietu
60 - dodawanie wirtualnych Provides/Requires o innym formacie niż format
62 - próbę inteligentnego rozróżnienia między projektami PEAR a PECL przy
65 Ta klasa ma w PEAR status: %{_status}.
71 rm docs/PEAR_Command_Packaging/LICENSE
74 packagexml2cl package.xml > ChangeLog
77 rm -rf $RPM_BUILD_ROOT
78 install -d $RPM_BUILD_ROOT%{php_pear_dir}
81 sed -e '/^\$''Log: /,$d' %{SOURCE1} > $RPM_BUILD_ROOT%{php_pear_dir}/data/%{_pearname}/template.spec
82 echo '$''Log: $' >> $RPM_BUILD_ROOT%{php_pear_dir}/data/%{_pearname}/template.spec
85 rm -rf $RPM_BUILD_ROOT
88 %defattr(644,root,root,755)
90 %{php_pear_dir}/.registry/*.reg
91 %{php_pear_dir}/PEAR/Command/Packaging.xml
92 %{php_pear_dir}/PEAR/Command/Packaging.php
93 %{php_pear_dir}/data/PEAR_Command_Packaging