]>
Commit | Line | Data |
---|---|---|
757d1263 | 1 | # TODO |
53e13939 | 2 | # - subpackages for tasks with external dependencies, or rather suggests? |
f2e177ea ER |
3 | %define pkgname phing |
4 | %define pearname %{pkgname} | |
f9e7bc28 ER |
5 | %define php_min_version 5.2.2 |
6 | %include /usr/lib/rpm/macros.php | |
58d68c26 | 7 | Summary: PHP project build system based on Apache Ant |
b40afee8 | 8 | Summary(pl.UTF-8): System budowania projektów w PHP oparty na narzędziu Apache Ant |
7ba85a25 | 9 | Name: php-%{pkgname} |
10b25319 | 10 | Version: 2.13.0 |
923fe090 | 11 | Release: 1 |
cdbf6c1c | 12 | License: LGPL v3 |
58d68c26 | 13 | Group: Development/Languages/PHP |
2701b696 | 14 | Source0: http://pear.phing.info/get/phing-%{version}.tgz |
10b25319 | 15 | # Source0-md5: e190b2778b221263860b3ed7e9d8fa92 |
7ba85a25 | 16 | Source1: %{pkgname}.sh |
86c883cf | 17 | Patch0: composer-path.patch |
cb8fa04c | 18 | URL: http://www.phing.info/ |
2701b696 | 19 | BuildRequires: php-channel(pear.phing.info) |
ead8f162 | 20 | BuildRequires: php-pear >= 4:1.3.8 |
87f1523d | 21 | BuildRequires: php-pear-PEAR >= 1:1.8.0 |
2701b696 | 22 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
82800126 | 23 | BuildRequires: rpmbuild(macros) >= 1.654 |
ce973d4f | 24 | BuildRequires: sed >= 4.0 |
931dba31 | 25 | Requires: /usr/bin/php |
5f63436f | 26 | Requires: php(core) >= %{php_min_version} |
f9e7bc28 | 27 | Requires: php(date) |
fab72ba6 | 28 | Requires: php(dom) |
f9e7bc28 | 29 | Requires: php(spl) |
fab72ba6 | 30 | Requires: php(xml) |
f2e177ea | 31 | Requires: php-channel(pear.phing.info) |
53e13939 | 32 | Suggests: jsl |
f9e7bc28 ER |
33 | Suggests: php(ctype) |
34 | Suggests: php(ftp) | |
35 | Suggests: php(gettext) | |
36 | Suggests: php(hash) | |
37 | Suggests: php(mbstring) | |
38 | Suggests: php(openssl) | |
39 | Suggests: php(pcre) | |
40 | Suggests: php(simplexml) | |
2c1e0fc9 | 41 | Suggests: php(xdebug) |
f9e7bc28 | 42 | Suggests: php(xsl) |
ead8f162 ER |
43 | Suggests: php-docblox-DocBlox |
44 | Suggests: php-pdepend-PHP_Depend | |
977df353 ER |
45 | Suggests: php-pear-Archive_Tar |
46 | Suggests: php-pear-HTTP_Request2 | |
72bad3e6 | 47 | Suggests: php-pear-Net_Growl |
977df353 | 48 | Suggests: php-pear-PEAR_PackageFileManager |
f2e177ea | 49 | Suggests: php-pear-PHP_CodeSniffer |
977df353 ER |
50 | Suggests: php-pear-PhpDocumentor |
51 | Suggests: php-pear-Services_Amazon_S3 | |
52 | Suggests: php-pear-VersionControl_Git | |
53 | Suggests: php-pear-VersionControl_SVN | |
f2e177ea | 54 | Suggests: php-phing-phingdocs |
ead8f162 | 55 | Suggests: php-phpmd-PHP_PMD |
6385bbdc | 56 | Suggests: php-phpunit-PHP_CodeCoverage |
f2e177ea | 57 | Suggests: php-phpunit-phpcpd |
f9e7bc28 | 58 | Suggests: php-phpunit-phploc |
f44ee5c3 | 59 | Suggests: phpunit >= 3.6 |
ced74b58 | 60 | Provides: phing = %{version} |
fc6007f0 | 61 | Obsoletes: phing < 2.4.1 |
4a77e8be | 62 | Conflicts: php-phpunit-PHPUnit < 3.6 |
58d68c26 ER |
63 | BuildArch: noarch |
64 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
65 | ||
7ba85a25 ER |
66 | %define _appdir %{php_data_dir}/%{pkgname} |
67 | ||
977df353 | 68 | # exclude optional dependencies |
923fe090 | 69 | %define _noautoreq_pear phing/.* Archive/Tar.* HTTP/Request2.* Log.php Mail.php Mail/mime.php Net/FTP.php Net/Growl.* PEAR.php PEAR/.* PEAR/PackageFileManager.* PHP/CodeCoverage/.* PHP/CodeSniffer.* PHP/Depend/.* PHP/PMD.* PHPMD/.* phpunit/.* vendor/.* PHPLOC/.* PHPUnit/.* Services/Amazon/S3.* Smarty.class.php SmartyBC.class.php System.php VersionControl/.* creole/Creole.php [Pp]hpDocumentor/.* simpletest/.* PHPCPD/Autoload.php SebastianBergmann/PHPCPD/autoload.php Ssh2MethodConnectionParam.php Ssh2MethodParam.php IniFileConfig.php IniFileRemove.php IniFileSet.php Symfony/Component/Stopwatch/autoload.php |
f9e7bc28 ER |
70 | |
71 | # exclude optional php dependencies | |
72 | %define _noautophp php-ctype php-ftp php-gettext php-hash php-mbstring php-openssl php-pcre php-simplexml php-xsl | |
73 | ||
74 | # put it together for rpmbuild | |
75 | %define _noautoreq %{?_noautophp} | |
58d68c26 ER |
76 | |
77 | %description | |
78 | PHing Is Not GNU make; it's a project build system based on Apache | |
79 | Ant. You can do anything with it that you could do with a traditional | |
80 | build system like GNU make, and its use of simple XML build files and | |
81 | extensible PHP "task" classes make it an easy-to-use and highly | |
82 | flexible build framework. Features include file transformations (e.g. | |
83 | token replacement, XSLT transformation, Smarty template | |
84 | transformations), file system operations, interactive build support, | |
85 | SQL execution, CVS operations, tools for creating PEAR packages, and | |
86 | much more. | |
87 | ||
b40afee8 JB |
88 | %description -l pl.UTF-8 |
89 | PHing Is Not GNU make (phing to nie GNU make) to system budowania | |
90 | projektów oparty na narzędziu Apache Ant. Pozwala robić wszystko to, | |
91 | co da się zrobić przy użyciu tradycyjnego systemu budowania takiego | |
92 | jak GNU make i wykorzystuje proste pliki reguł XML oraz rozszerzalne | |
93 | klasy PHP "zadań", co czyni z niego łatwe w użyciu i elastyczne | |
94 | środowisko. Możliwości obejmują przekształcenia (np. podstawienia | |
95 | tokenów, przekształcenia XSLT, przekształcenia szablonów Smarty), | |
96 | operacje na systemie plików, obsługę interaktywnego budowania, | |
cb8fa04c ER |
97 | wywoływanie SQL-a, operacje na CVS-ie, narzędzia do tworzenia pakietów |
98 | PEAR i wiele więcej. | |
b40afee8 | 99 | |
58d68c26 | 100 | %prep |
ced74b58 | 101 | %pear_package_setup -d data_dir=%{_appdir}/data |
86c883cf | 102 | %patch0 -p1 |
58d68c26 | 103 | |
fc6007f0 ER |
104 | # 2.4.4 release tarball contains .rej and .orig files junk |
105 | find '(' -name '*~' -o -name '*.orig' -o -name '*.rej' ')' -print0 | xargs -0 -r -l512 rm -f | |
106 | ||
58d68c26 ER |
107 | %install |
108 | rm -rf $RPM_BUILD_ROOT | |
90100218 | 109 | install -d $RPM_BUILD_ROOT{%{_bindir},%{php_pear_dir},%{_appdir}} |
2701b696 ER |
110 | %pear_package_install |
111 | ||
112 | install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/phing | |
113 | ||
114 | # cleanup the mess pear install made | |
115 | mv $RPM_BUILD_ROOT{%{php_pear_dir}/%{pkgname}/*,%{_appdir}} | |
2701b696 | 116 | mv $RPM_BUILD_ROOT{%{php_pear_dir}/phing.php,%{php_data_dir}/phing.php} |
90100218 | 117 | cp -a ./%{php_data_dir}/* $RPM_BUILD_ROOT%{php_data_dir} |
58d68c26 | 118 | |
2701b696 ER |
119 | #install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
120 | #cp -a docs/example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
9474ebe5 | 121 | |
58d68c26 ER |
122 | %clean |
123 | rm -rf $RPM_BUILD_ROOT | |
124 | ||
977df353 ER |
125 | %post -p <lua> |
126 | %pear_package_print_optionalpackages | |
127 | ||
58d68c26 ER |
128 | %files |
129 | %defattr(644,root,root,755) | |
2701b696 | 130 | %doc optional-packages.txt |
58d68c26 | 131 | %attr(755,root,root) %{_bindir}/phing |
2701b696 | 132 | %{php_pear_dir}/.registry/.channel.*/phing.reg |
931dba31 | 133 | %{php_data_dir}/phing.php |
90100218 ER |
134 | %dir %{_appdir} |
135 | %{_appdir}/*.php | |
5bcc7332 | 136 | %{_appdir}/contrib |
90100218 ER |
137 | %{_appdir}/filters |
138 | %{_appdir}/input | |
139 | %{_appdir}/listener | |
140 | %{_appdir}/mappers | |
141 | %{_appdir}/parser | |
142 | %{_appdir}/system | |
143 | %{_appdir}/tasks | |
144 | %{_appdir}/types | |
145 | %{_appdir}/util | |
146 | ||
147 | %dir %{_appdir}/lib | |
148 | %{_appdir}/lib/Capsule.php | |
149 | ||
150 | %{_appdir}/data | |
151 | ||
2701b696 | 152 | #%{_examplesdir}/%{name}-%{version} |