php5.spec.in 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. %define version @VERSION@
  2. %define so_version 5
  3. %define release 0
  4. Name: php
  5. Summary: PHP: Hypertext Preprocessor
  6. Group: Development/Languages
  7. Version: %{version}
  8. Release: %{release}
  9. Copyright: The PHP license (see "LICENSE" file included in distribution)
  10. Source: http://www.php.net/get/php-%{version}.tar.gz/from/a/mirror
  11. Icon: php.gif
  12. URL: http://www.php.net/
  13. Packager: PHP Group <group@php.net>
  14. BuildRoot: /var/tmp/php-%{version}
  15. %description
  16. PHP is an HTML-embedded scripting language. Much of its syntax is
  17. borrowed from C, Java and Perl with a couple of unique PHP-specific
  18. features thrown in. The goal of the language is to allow web
  19. developers to write dynamically generated pages quickly.
  20. %prep
  21. %setup
  22. %build
  23. set -x
  24. ./buildconf
  25. ./configure --prefix=/usr --with-apxs \
  26. --disable-debug \
  27. --with-xml=shared \
  28. # figure out configure options options based on what packages are installed
  29. # to override, use the OVERRIDE_OPTIONS environment variable. To add
  30. # extra options, use the OPTIONS environment variable.
  31. #test rpm -q MySQL-devel >&/dev/null && OPTIONS="$OPTIONS --with-mysql=shared"
  32. #test rpm -q solid-devel >&/dev/null && OPTIONS="$OPTIONS --with-solid=shared,/home/solid"
  33. #test rpm -q postgresql-devel >&/dev/null && OPTIONS="$OPTIONS --with-pgsql=shared"
  34. test rpm -q expat >&/dev/null && OPTIONS="$OPTIONS --with-xml=shared"
  35. if test "x$OVERRIDE_OPTIONS" = "x"; then
  36. ./configure --prefix=/usr --with-apxs=$APXS $OPTIONS
  37. else
  38. ./configure $OVERRIDE_OPTIONS
  39. fi