php.spec 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  1. ##
  2. ## php.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package versions
  24. %define V_php 5.2.6
  25. %define V_php_suhosin_p 5.2.6-0.9.6.2
  26. %define V_php_suhosin_e 0.9.23
  27. %define V_php_kolab 5.2.6
  28. %define V_php_pecl_memcache 2.2.3
  29. # package information
  30. Name: php
  31. Summary: Personal HomePage (PHP)
  32. URL: http://www.php.net/
  33. Vendor: The PHP Project
  34. Packager: OpenPKG Foundation e.V.
  35. Distribution: OpenPKG Community
  36. Class: BASE
  37. Group: Language
  38. License: PHP
  39. Version: %{V_php}
  40. Release: 20080503
  41. # package options
  42. %option with_suhosin no
  43. %option with_bc no
  44. %option with_bdb no
  45. %option with_bzip2 no
  46. %option with_calendar no
  47. %option with_ctype no
  48. %option with_curl no
  49. %option with_debug no
  50. %option with_dom no
  51. %option with_exif no
  52. %option with_fastcgi no
  53. %option with_freetype no
  54. %option with_ftp no
  55. %option with_gd no
  56. %option with_gdbm no
  57. %option with_gettext no
  58. %option with_iconv no
  59. %option with_imap no
  60. %option with_imap_annotate no
  61. %option with_json no
  62. %option with_mbregex no
  63. %option with_mbstring no
  64. %option with_mcrypt no
  65. %option with_mhash no
  66. %option with_mm no
  67. %option with_mysql no
  68. %option with_oci8 no
  69. %option with_odbc no
  70. %option with_openldap no
  71. %option with_openldapsasl no
  72. %option with_pcre no
  73. %option with_pear no
  74. %option with_pgsql no
  75. %option with_posix no
  76. %option with_sendmail no
  77. %option with_session no
  78. %option with_simplexml no
  79. %option with_snmp no
  80. %option with_sqlite no
  81. %option with_ssl no
  82. %option with_tidy no
  83. %option with_versioning no
  84. %option with_wddx no
  85. %option with_xml no
  86. %option with_xslt no
  87. %option with_zlib no
  88. %option with_pecl_memcache no
  89. # fixing implicit extension dependencies and correlations
  90. %if "%{with_mm}" == "yes" || "%{with_pecl_memcache}" == "yes"
  91. %undefine with_session
  92. %define with_session yes
  93. %endif
  94. %if "%{with_pear}" == "yes"
  95. %undefine with_xml
  96. %define with_xml yes
  97. %undefine with_pcre
  98. %define with_pcre yes
  99. %endif
  100. %if "%{with_freetype}" == "yes"
  101. %undefine with_gd
  102. %define with_gd yes
  103. %endif
  104. %if "%{with_imap_annotate}" == "yes"
  105. %undefine with_imap
  106. %define with_imap yes
  107. %endif
  108. %if "%{with_mysql}" == "yes" || "%{with_gd}" == "yes" || "%{with_dom}" == "yes" || "%{with_pecl_memcache}" == "yes"
  109. %undefine with_zlib
  110. %define with_zlib yes
  111. %endif
  112. %if "%{with_pgsql}" == "yes"
  113. %undefine with_ssl
  114. %define with_ssl yes
  115. %endif
  116. # list of sources
  117. Source0: http://static.php.net/www.php.net/distributions/php-%{V_php}.tar.bz2
  118. Source1: http://download.suhosin.org/suhosin-%{V_php_suhosin_e}.tgz
  119. Source2: php.ini
  120. Source3: http://pecl.php.net/get/memcache-%{V_php_pecl_memcache}.tgz
  121. Patch0: http://download.suhosin.org/suhosin-patch-%{V_php_suhosin_p}.patch.gz
  122. Patch1: http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/php-%{V_php_kolab}/KOLAB_Annotations.patch
  123. # build information
  124. Prefix: %{l_prefix}
  125. BuildRoot: %{l_buildroot}
  126. BuildPreReq: OpenPKG, openpkg >= 20050615, gcc, flex, bison
  127. PreReq: OpenPKG, openpkg >= 20050615
  128. %if "%{with_suhosin}" == "yes" || "%{with_pecl_memcache}" == "yes"
  129. BuildPreReq: autoconf
  130. %endif
  131. %if "%{with_sqlite}" == "yes"
  132. BuildPreReq: sqlite
  133. PreReq: sqlite
  134. %endif
  135. %if "%{with_mysql}" == "yes"
  136. BuildPreReq: mysql
  137. PreReq: mysql
  138. %endif
  139. %if "%{with_pgsql}" == "yes"
  140. BuildPreReq: postgresql
  141. PreReq: postgresql
  142. %endif
  143. %if "%{with_gd}" == "yes"
  144. BuildPreReq: gd >= 2.0.20, jpeg, png
  145. PreReq: gd >= 2.0.20, jpeg, png
  146. %endif
  147. %if "%{with_bdb}" == "yes"
  148. BuildPreReq: db
  149. PreReq: db
  150. %endif
  151. %if "%{with_zlib}" == "yes"
  152. BuildPreReq: zlib
  153. PreReq: zlib
  154. %endif
  155. %if "%{with_bzip2}" == "yes"
  156. BuildPreReq: bzip2
  157. PreReq: bzip2
  158. %endif
  159. %if "%{with_ssl}" == "yes"
  160. BuildPreReq: openssl
  161. PreReq: openssl
  162. %endif
  163. %if "%{with_openldap}" == "yes"
  164. BuildPreReq: openldap
  165. PreReq: openldap
  166. %if "%{with_openldapsasl}" == "yes"
  167. BuildPreReq: openldap::with_sasl = yes
  168. PreReq: openldap::with_sasl = yes
  169. %else
  170. BuildPreReq: openldap::with_sasl = no
  171. PreReq: openldap::with_sasl = no
  172. %endif
  173. %endif
  174. %if "%{with_mm}" == "yes"
  175. BuildPreReq: mm
  176. PreReq: mm
  177. %endif
  178. %if "%{with_pcre}" == "yes"
  179. BuildPreReq: pcre
  180. PreReq: pcre
  181. %endif
  182. %if "%{with_freetype}" == "yes"
  183. BuildPreReq: freetype
  184. PreReq: freetype
  185. %endif
  186. %if "%{with_gettext}" == "yes"
  187. BuildPreReq: gettext, libiconv
  188. PreReq: gettext, libiconv
  189. %endif
  190. %if "%{with_iconv}" == "yes"
  191. BuildPreReq: libiconv
  192. PreReq: libiconv
  193. %endif
  194. %if "%{with_imap}" == "yes"
  195. BuildPreReq: imap, openssl
  196. PreReq: imap, openssl
  197. %if "%{with_imap_annotate}" == "yes"
  198. BuildPreReq: imap::with_annotate = yes
  199. PreReq: imap::with_annotate = yes
  200. %endif
  201. %endif
  202. %if "%{with_xml}" == "yes"
  203. BuildPreReq: libxml
  204. PreReq: libxml
  205. %endif
  206. %if "%{with_xslt}" == "yes"
  207. BuildPreReq: libxslt
  208. PreReq: libxslt
  209. %endif
  210. %if "%{with_dom}" == "yes"
  211. BuildPreReq: libxml, libxslt
  212. PreReq: libxml, libxslt
  213. %endif
  214. %if "%{with_curl}" == "yes"
  215. BuildPreReq: curl
  216. PreReq: curl
  217. %endif
  218. %if "%{with_mhash}" == "yes"
  219. BuildPreReq: mhash
  220. PreReq: mhash
  221. %endif
  222. %if "%{with_mcrypt}" == "yes"
  223. BuildPreReq: libmcrypt
  224. PreReq: libmcrypt
  225. %endif
  226. %if "%{with_gdbm}" == "yes"
  227. BuildPreReq: gdbm, gdbm::with_ndbm = yes
  228. PreReq: gdbm, gdbm::with_ndbm = yes
  229. %endif
  230. %if "%{with_oci8}" == "yes"
  231. BuildPreReq: oracle
  232. PreReq: oracle
  233. %endif
  234. %if "%{with_snmp}" == "yes"
  235. BuildPreReq: snmp
  236. PreReq: snmp
  237. %endif
  238. %if "%{with_odbc}" == "yes"
  239. BuildPreReq: unixodbc
  240. PreReq: unixodbc
  241. %endif
  242. %if "%{with_sendmail}" == "yes"
  243. BuildPreReq: MTA
  244. PreReq: MTA
  245. %endif
  246. %if "%{with_simplexml}" == "yes"
  247. BuildPreReq: libxml
  248. PreReq: libxml
  249. %endif
  250. %if "%{with_tidy}" == "yes"
  251. BuildPreReq: tidy
  252. PreReq: tidy
  253. %endif
  254. %if "%{with_pecl_memcache}" == "yes"
  255. BuildPreReq: memcached
  256. PreReq: memcached
  257. %endif
  258. AutoReq: no
  259. AutoReqProv: no
  260. %description
  261. PHP is an HTML-embedded scripting language. Much of its syntax is
  262. borrowed from C, Java and Perl with a couple of unique PHP-specific
  263. features thrown in. The goal of the language is to allow web
  264. developers to write dynamically generated pages quickly.
  265. This is the Command Line Interface (CLI) and Common Gateway
  266. Interface (CGI) version of PHP, intended for use in the "shebang"
  267. line ("#!%{l_prefix}/bin/php") of stand-alone PHP based programs
  268. and for use in the "shebang" line ("#!%{l_prefix}/cgi/php") of
  269. stand-alone webserver-independent CGI scripts.
  270. %track
  271. prog php = {
  272. version = %{V_php}
  273. url = http://www.php.net/downloads.php
  274. regex = php-(5\.\d+\.\d+)\.tar\.(bz2|gz)
  275. }
  276. prog php:suhosin-patch = {
  277. version = %{V_php_suhosin_p}
  278. url = http://www.hardened-php.net/suhosin/download.html
  279. regex = suhosin-patch-(5\.\d+\.\d+-\d+(\.\d+)+)\.patch\.gz
  280. }
  281. prog php:suhosin-ext = {
  282. version = %{V_php_suhosin_e}
  283. url = http://www.hardened-php.net/suhosin/download.html
  284. regex = suhosin-(\d+(\.\d+)+)\.tgz
  285. }
  286. prog php:kolab = {
  287. version = %{V_php_kolab}
  288. url = http://kolab.org/cgi-bin/viewcvs-kolab.cgi/*checkout*/server/patches/php/
  289. regex = php-(\d+(\.\d+)+)/
  290. }
  291. prog php:pecl_memcache = {
  292. version = %{V_php_pecl_memcache}
  293. url = http://pecl.php.net/package/memcache/
  294. regex = memcache-(2(\.\d+)+)\.tgz
  295. }
  296. %prep
  297. %setup -q
  298. %if "%{with_suhosin}" == "yes"
  299. %setup -q -T -D -a 1
  300. %patch -p1
  301. mv suhosin-%{V_php_suhosin_e} ext/suhosin
  302. rm -f package.xml
  303. %endif
  304. %if "%{with_pecl_memcache}" == "yes"
  305. %setup -q -n php-%{V_php} -T -D -a 3
  306. mv memcache-%{V_php_pecl_memcache} ext/memcache
  307. %endif
  308. %if "%{with_suhosin}" == "yes" || "%{with_pecl_memcache}" == "yes"
  309. # in case we add extensions the configure script needs to be newly
  310. # generated
  311. export PHP_AUTOCONF="autoconf-213"
  312. rm -f configure && ./buildconf --copy --force
  313. $PHP_AUTOCONF
  314. %endif
  315. %{l_shtool} subst \
  316. -e 's;\(/include\)/freetype2;\1;' \
  317. configure \
  318. ext/gd/config.m4
  319. %if "%{with_imap_annotate}" == "yes"
  320. sed <%{PATCH1} -e '/php-5.2.1\/ext\/imap\/php_imap.c.orig/,/^[^\+]/d' | %{l_patch} -p1
  321. %endif
  322. %build
  323. # configure package
  324. case "%{l_platform -t}" in
  325. *-sunos5.10 ) cflags="%{l_cflags}" ;;
  326. * ) cflags="%{l_cflags -O}" ;;
  327. esac
  328. cppflags="%{l_cppflags}"
  329. ldflags="%{l_ldflags}"
  330. libs=""
  331. %if "%{with_gdbm}" == "yes"
  332. libs="$libs -lndbm -lgdbm"
  333. %endif
  334. %if "%{with_gd}" == "yes"
  335. libs="$libs -lpng -lz"
  336. %endif
  337. %if "%{with_gettext}" == "yes"
  338. libs="$libs -liconv"
  339. %endif
  340. %if "%{with_openldap}" == "yes" && "%{with_openldapsasl}" == "yes"
  341. libs="$libs -lsasl2"
  342. %endif
  343. %if "%{with_imap}" == "yes"
  344. libs="$libs -lssl -lcrypto"
  345. %endif
  346. %if "%{with_bdb}" == "yes"
  347. libs="$libs -ldb"
  348. %endif
  349. %if "%{with_pgsql}" == "yes"
  350. libs="$libs `pg_config --libs`"
  351. %endif
  352. %if "%{with_oci8}" == "yes"
  353. ORACLE_HOME="`%{l_rc} --query oracle_home`"
  354. export ORACLE_HOME
  355. %endif
  356. CC="%{l_cc}" \
  357. CFLAGS="$cflags" \
  358. CPPFLAGS="$cppflags" \
  359. LDFLAGS="$ldflags" \
  360. LIBS="$libs" \
  361. %if "%{with_sendmail}" == "yes"
  362. PROG_SENDMAIL="%{l_prefix}/sbin/sendmail" \
  363. %else
  364. PROG_SENDMAIL="`%{l_shtool} path false`" \
  365. %endif
  366. ./configure \
  367. --prefix=%{l_prefix} \
  368. --sysconfdir=%{l_prefix}/etc/php \
  369. --with-config-file-path=%{l_prefix}/etc/php \
  370. --libdir=%{l_prefix}/lib/php \
  371. --disable-all \
  372. --enable-pdo \
  373. %if "%{with_suhosin}" == "yes"
  374. --enable-suhosin \
  375. %endif
  376. %if "%{with_calendar}" == "yes"
  377. --enable-calendar \
  378. %endif
  379. --without-sqlite \
  380. %if "%{with_sqlite}" == "yes"
  381. --with-pdo-sqlite=%{l_prefix} \
  382. %else
  383. --without-pdo-sqlite \
  384. %endif
  385. %if "%{with_mysql}" == "yes"
  386. --with-mysql=%{l_prefix} \
  387. --with-pdo-mysql=%{l_prefix} \
  388. %else
  389. --without-mysql \
  390. %endif
  391. %if "%{with_pgsql}" == "yes"
  392. --with-pgsql=%{l_prefix} \
  393. --with-pdo-pgsql=%{l_prefix} \
  394. %else
  395. --without-pgsql \
  396. %endif
  397. %if "%{with_posix}" == "yes"
  398. --enable-posix \
  399. %endif
  400. %if "%{with_gd}" == "yes"
  401. --with-gd=%{l_prefix} \
  402. --with-jpeg-dir=%{l_prefix} \
  403. --with-png-dir=%{l_prefix} \
  404. %endif
  405. %if "%{with_fastcgi}" == "yes"
  406. --enable-fastcgi \
  407. %else
  408. --disable-fastcgi \
  409. %endif
  410. %if "%{with_freetype}" == "yes"
  411. --enable-gd-native-ttf \
  412. --with-freetype-dir=%{l_prefix} \
  413. %endif
  414. %if "%{with_bdb}" == "yes"
  415. --with-db4=%{l_prefix} \
  416. %endif
  417. %if "%{with_debug}" == "yes"
  418. --enable-debug \
  419. %else
  420. --disable-debug \
  421. %endif
  422. %if "%{with_zlib}" == "yes"
  423. --with-zlib=%{l_prefix} \
  424. --with-zlib-dir=%{l_prefix} \
  425. %endif
  426. %if "%{with_bzip2}" == "yes"
  427. --with-bz2=%{l_prefix} \
  428. %endif
  429. %if "%{with_ssl}" == "yes" || "%{with_openldap}" == "yes"
  430. --with-openssl=%{l_prefix} \
  431. %endif
  432. %if "%{with_openldap}" == "yes"
  433. --with-ldap=%{l_prefix} \
  434. %endif
  435. %if "%{with_session}" == "yes"
  436. --enable-session \
  437. %endif
  438. %if "%{with_mm}" == "yes"
  439. --with-mm=%{l_prefix} \
  440. %endif
  441. %if "%{with_pcre}" == "yes"
  442. --with-pcre-regex=%{l_prefix} \
  443. %endif
  444. %if "%{with_ftp}" == "yes"
  445. --enable-ftp \
  446. %endif
  447. %if "%{with_oci8}" == "yes"
  448. --with-oci8 \
  449. %endif
  450. %if "%{with_gettext}" == "yes"
  451. --with-gettext=%{l_prefix} \
  452. %endif
  453. %if "%{with_imap}" == "yes"
  454. --with-imap=%{l_prefix} \
  455. --with-imap-ssl=%{l_prefix} \
  456. %endif
  457. %if "%{with_json}" == "yes"
  458. --enable-json \
  459. %else
  460. --disable-json \
  461. %endif
  462. %if "%{with_xml}" == "yes"
  463. --enable-xml \
  464. --enable-libxml \
  465. --with-libxml-dir=%{l_prefix} \
  466. %else
  467. --disable-xml \
  468. %endif
  469. %if "%{with_xslt}" == "yes"
  470. --with-xsl=%{l_prefix} \
  471. %else
  472. --without-xsl \
  473. %endif
  474. %if "%{with_dom}" == "yes"
  475. --enable-dom \
  476. --with-libxml-dir=%{l_prefix} \
  477. %else
  478. --disable-dom \
  479. %endif
  480. %if "%{with_wddx}" == "yes"
  481. --enable-wddx \
  482. %endif
  483. %if "%{with_bc}" == "yes"
  484. --enable-bcmath \
  485. %endif
  486. %if "%{with_mhash}" == "yes"
  487. --with-mhash=%{l_prefix} \
  488. %endif
  489. %if "%{with_mcrypt}" == "yes"
  490. --with-mcrypt=%{l_prefix} \
  491. %endif
  492. %if "%{with_ctype}" == "yes"
  493. --enable-ctype \
  494. %endif
  495. %if "%{with_curl}" == "yes"
  496. --with-curl=%{l_prefix} \
  497. %endif
  498. %if "%{with_gdbm}" == "yes"
  499. --with-gdbm=%{l_prefix} \
  500. %endif
  501. %if "%{with_versioning}" == "yes"
  502. --enable-versioning \
  503. %endif
  504. %if "%{with_pear}" == "yes"
  505. --with-pear=%{l_prefix}/lib/php \
  506. %else
  507. --without-pear \
  508. %endif
  509. %if "%{with_simplexml}" == "yes"
  510. --enable-simplexml \
  511. --enable-libxml \
  512. --with-libxml-dir=%{l_prefix} \
  513. %else
  514. --disable-simplexml \
  515. %endif
  516. %if "%{with_snmp}" == "yes"
  517. --with-snmp=%{l_prefix} \
  518. --with-openssl-dir=%{l_prefix} \
  519. %endif
  520. %if "%{with_odbc}" == "yes"
  521. --with-unixODBC=%{l_prefix} \
  522. --with-pdo-odbc=unixODBC,%{l_prefix} \
  523. %endif
  524. %if "%{with_mbregex}" == "yes"
  525. --enable-mbregex \
  526. %endif
  527. %if "%{with_mbstring}" == "yes"
  528. --enable-mbstring \
  529. %endif
  530. %if "%{with_exif}" == "yes"
  531. --with-exif \
  532. %endif
  533. %if "%{with_iconv}" == "yes"
  534. --with-iconv=%{l_prefix} \
  535. %endif
  536. %if "%{with_tidy}" == "yes"
  537. --with-tidy=%{l_prefix} \
  538. %else
  539. --without-tidy \
  540. %endif
  541. %if "%{with_pecl_memcache}" == "yes"
  542. --enable-memcache \
  543. %endif
  544. --enable-cli \
  545. --enable-cgi \
  546. --enable-force-cgi-redirect \
  547. --enable-discard-path
  548. # build package
  549. %{l_make} %{l_mflags}
  550. %install
  551. # install package
  552. rm -rf $RPM_BUILD_ROOT
  553. %{l_make} %{l_mflags} install INSTALL_ROOT=$RPM_BUILD_ROOT
  554. # move CGI executale
  555. %{l_shtool} mkdir -f -p -m 755 \
  556. $RPM_BUILD_ROOT%{l_prefix}/cgi
  557. mv $RPM_BUILD_ROOT%{l_prefix}/bin/php-cgi \
  558. $RPM_BUILD_ROOT%{l_prefix}/cgi/php
  559. # install default configuration file
  560. %{l_shtool} mkdir -f -p -m 755 \
  561. $RPM_BUILD_ROOT%{l_prefix}/etc/php
  562. %{l_shtool} install -c -m 644 %{l_value -s -a} \
  563. %{SOURCE php.ini} \
  564. $RPM_BUILD_ROOT%{l_prefix}/etc/php/
  565. # strip down installation
  566. rmdir $RPM_BUILD_ROOT%{l_prefix}/lib/php >/dev/null 2>&1 || true
  567. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  568. # determine installation files
  569. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
  570. '%config %{l_prefix}/etc/php/*'
  571. %files -f files
  572. %clean
  573. rm -rf $RPM_BUILD_ROOT