]> git.pld-linux.org Git - packages/php-pear-PEAR_Command_Packaging.git/blob - php-pear-PEAR_Command_Packaging.spec
- release 6
[packages/php-pear-PEAR_Command_Packaging.git] / php-pear-PEAR_Command_Packaging.spec
1 # TODO
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
6 #   ->
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 # - handle registry subdirs:
11 #  %{php_pear_dir}/.registry/*.reg
12 #  %{php_pear_dir}/.registry/.channel.*/*.reg
13 # - handle php-PKGNAME names (actual non pear packages)
14 # - php-lc(<CHANNEL_ALIAS>)-<PKGNAME>
15 %include        /usr/lib/rpm/macros.php
16 %define         _status         alpha
17 %define         _pearname       PEAR_Command_Packaging
18 Summary:        %{_pearname} - make-rpm-spec command for managing RPM .spec files for PEAR packages
19 Summary(pl.UTF-8):      %{_pearname} - polecenie make-rpm-spec do zarządzania plikami .spec pakietów PEAR-a
20 Name:           php-pear-%{_pearname}
21 Version:        0.2.0
22 Release:        6
23 License:        PHP 3.01
24 Group:          Development/Languages/PHP
25 Source0:        http://pear.php.net/get/%{_pearname}-%{version}.tgz
26 # Source0-md5:  457881b46b8c42ba58cdb698872df2e6
27 Source1:        php-pear-PEAR-template.spec
28 Patch0:         %{name}.patch
29 URL:            http://pear.php.net/package/PEAR_Command_Packaging/
30 BuildRequires:  php-packagexml2cl
31 BuildRequires:  php-pear-PEAR >= 1:1.4.3
32 BuildRequires:  rpm-php-pearprov >= 4.4.2-11
33 BuildRequires:  rpmbuild(macros) >= 1.571
34 Requires:       php-pear
35 Requires:       php-pear-PEAR >= 1:1.4.3
36 BuildArch:      noarch
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 This command is an improved implementation of the standard makerpm
41 command, and contains several enhancements that make it far more
42 flexible. Similar functions for other external packaging mechanisms
43 may be added at a later date.
44
45 Enhanced features over the original PEAR "makerpm" command include:
46 - Ability to define a release on the command line
47 - Allows more advanced customisation of the generated package name
48 - Allows virtual Provides/Requires that differ in format from the
49   package name format
50 - tries to intelligently distinguish between PEAR and PECL when
51   generating packages
52
53 In PEAR status of this package is: %{_status}.
54
55 %description -l pl.UTF-8
56 To polecenie to ulepszona implementacja standardowego polecenia
57 makerpm. Zawiera kilka rozszerzeń czyniących ją dużo bardziej
58 elastycznym. W przyszłości mogą być dodane podobne funkcje dla innych
59 zewnętrznych mechanizmów pakietów.
60
61 Rozszerzone możliwości w stosunku do oryginalnego polecenia PEAR-a
62 "makerpm" obejmują:
63 - możliwość definiowania pola Release z linii poleceń
64 - bardziej zaawansowane dostosowywanie nazwy generowanego pakietu
65 - dodawanie wirtualnych Provides/Requires o innym formacie niż format
66   nazwy pakietu
67 - próbę inteligentnego rozróżnienia między projektami PEAR a PECL przy
68   generowaniu pakietów
69
70 Ta klasa ma w PEAR status: %{_status}.
71
72 %prep
73 %pear_package_setup
74 %patch0 -p1
75
76 rm docs/PEAR_Command_Packaging/LICENSE
77
78 %build
79 packagexml2cl package.xml > ChangeLog
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT%{php_pear_dir}
84 %pear_package_install
85
86 sed -e '/^\$''Log: /,$d' %{SOURCE1} > $RPM_BUILD_ROOT%{php_pear_dir}/data/%{_pearname}/template.spec
87 echo '$''Log: $' >> $RPM_BUILD_ROOT%{php_pear_dir}/data/%{_pearname}/template.spec
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %files
93 %defattr(644,root,root,755)
94 %doc install.log
95 %{php_pear_dir}/.registry/*.reg
96 %{php_pear_dir}/PEAR/Command/Packaging.xml
97 %{php_pear_dir}/PEAR/Command/Packaging.php
98 %{php_pear_dir}/data/PEAR_Command_Packaging
This page took 0.127993 seconds and 4 git commands to generate.