File php.spec of Package PHP

#
# spec file for package [spectemplate]
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild

Name:           php
Version:        5.3.3
Release:        1
Summary:        A widely-used general-purpose scripting language

Group:          Development/Languages/Other
License:        PHP
URL:            http://pl2.php.net/
Source0:        http://pl.php.net/distributions/%{name}-%{version}.tar.bz2
# Source0:        php-5.3.3-pre.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildRequires:  libxml2-devel fdupes
# Requires:       
# BuildArch:      noarch

%description
PHP is a widely-used general-purpose scripting language 
that is especially suited for Web development and can be embedded into HTML. 

%package devel
Summary:        Development headers and build environment for PHP

%description devel
Development headers and libraries for PHP.  
Install when you plan to develop PHP extensions.

%package pear
Version: 1.9.1
Requires: php
Summary:        PHP Extension and Application Repository
URL:       http://pear.php.net/

%description pear
PEAR is a framework and distribution system for reusable PHP components.

%prep
%setup -q
# sh 'configure' '--help'
# false

%build
%configure
make %{?_smp_mflags}


%install
make install INSTALL_ROOT=%{buildroot}
chmod +x '%{buildroot}%{_libdir}/build/run-tests.php'
%fdupes '%{buildroot}'
rm '-rf' \
 '%{buildroot}/.channels' '%{buildroot}/.depdb' '%{buildroot}/.depdblock' '%{buildroot}/.filemap' '%{buildroot}/.lock' \
 '%{buildroot}%{_libdir}/php/.depdblock' '%{buildroot}%{_libdir}/php/.lock' '%{buildroot}%{_libdir}/php/.filemap' \
 '%{buildroot}%{_libdir}/php/.depdb'




%check
make test

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
   %{_bindir}/phar
   %{_bindir}/phar.phar
   %{_bindir}/php
   %{_bindir}/php-cgi
   %{_bindir}/php-config
   %{_bindir}/phpize

%doc %{_mandir}/man1/php-config.1.gz
%doc   %{_mandir}/man1/php.1.gz
%doc   %{_mandir}/man1/phpize.1.gz

%files pear
%defattr(-,root,root,-)
   %{_bindir}/pear
   %{_bindir}/peardev
   %{_bindir}/pecl
   %{_libdir}/php/.channels/.alias/pear.txt
   %{_libdir}/php/.channels/.alias/pecl.txt
   %{_libdir}/php/.channels/.alias/phpdocs.txt
   %{_libdir}/php/.channels/__uri.reg
   %{_libdir}/php/.channels/doc.php.net.reg
   %{_libdir}/php/.channels/pear.php.net.reg
   %{_libdir}/php/.channels/pecl.php.net.reg
   %{_libdir}/php/.registry/archive_tar.reg
   %{_libdir}/php/.registry/console_getopt.reg
   %{_libdir}/php/.registry/pear.reg
   %{_libdir}/php/.registry/structures_graph.reg
   %{_libdir}/php/.registry/xml_util.reg
   %{_libdir}/php/Archive/Tar.php
   %{_libdir}/php/Console/Getopt.php
   %{_libdir}/php/OS/Guess.php
   %{_libdir}/php/PEAR.php
   %{_libdir}/php/PEAR
   %{_libdir}/php/PEAR5.php
   %{_libdir}/php/Structures/Graph.php
   %{_libdir}/php/Structures/Graph/Manipulator/AcyclicTest.php
   %{_libdir}/php/Structures/Graph/Manipulator/TopologicalSorter.php
   %{_libdir}/php/Structures/Graph/Node.php
   %{_libdir}/php/System.php
   %{_libdir}/php/XML/Util.php
   %{_libdir}/php/data/PEAR/package.dtd
   %{_libdir}/php/data/PEAR/template.spec
   %{_libdir}/php/data/Structures_Graph/LICENSE
   %{_libdir}/php/pearcmd.php
   %{_libdir}/php/peclcmd.php
   %{_libdir}/php/test

%doc   %{_libdir}/php/doc

%config /etc/pear.conf

%files devel
%defattr(-,root,root,-)
   %{_includedir}/php/TSRM/TSRM.h
   %{_includedir}/php/TSRM/acconfig.h
   %{_includedir}/php/TSRM/readdir.h
   %{_includedir}/php/TSRM/tsrm_config.h
   %{_includedir}/php/TSRM/tsrm_config.w32.h
   %{_includedir}/php/TSRM/tsrm_config_common.h
   %{_includedir}/php/TSRM/tsrm_nw.h
   %{_includedir}/php/TSRM/tsrm_strtok_r.h
   %{_includedir}/php/TSRM/tsrm_virtual_cwd.h
   %{_includedir}/php/TSRM/tsrm_win32.h
   %{_includedir}/php/Zend/acconfig.h
   %{_includedir}/php/Zend/zend.h
   %{_includedir}/php/Zend/zend_API.h
   %{_includedir}/php/Zend/zend_alloc.h
   %{_includedir}/php/Zend/zend_build.h
   %{_includedir}/php/Zend/zend_builtin_functions.h
   %{_includedir}/php/Zend/zend_closures.h
   %{_includedir}/php/Zend/zend_compile.h
   %{_includedir}/php/Zend/zend_config.h
   %{_includedir}/php/Zend/zend_config.nw.h
   %{_includedir}/php/Zend/zend_config.w32.h
   %{_includedir}/php/Zend/zend_constants.h
   %{_includedir}/php/Zend/zend_dynamic_array.h
   %{_includedir}/php/Zend/zend_errors.h
   %{_includedir}/php/Zend/zend_exceptions.h
   %{_includedir}/php/Zend/zend_execute.h
   %{_includedir}/php/Zend/zend_extensions.h
   %{_includedir}/php/Zend/zend_fast_cache.h
   %{_includedir}/php/Zend/zend_float.h
   %{_includedir}/php/Zend/zend_gc.h
   %{_includedir}/php/Zend/zend_globals.h
   %{_includedir}/php/Zend/zend_globals_macros.h
   %{_includedir}/php/Zend/zend_hash.h
   %{_includedir}/php/Zend/zend_highlight.h
   %{_includedir}/php/Zend/zend_indent.h
   %{_includedir}/php/Zend/zend_ini.h
   %{_includedir}/php/Zend/zend_ini_parser.h
   %{_includedir}/php/Zend/zend_ini_scanner.h
   %{_includedir}/php/Zend/zend_ini_scanner_defs.h
   %{_includedir}/php/Zend/zend_interfaces.h
   %{_includedir}/php/Zend/zend_istdiostream.h
   %{_includedir}/php/Zend/zend_iterators.h
   %{_includedir}/php/Zend/zend_language_parser.h
   %{_includedir}/php/Zend/zend_language_scanner.h
   %{_includedir}/php/Zend/zend_language_scanner_defs.h
   %{_includedir}/php/Zend/zend_list.h
   %{_includedir}/php/Zend/zend_llist.h
   %{_includedir}/php/Zend/zend_modules.h
   %{_includedir}/php/Zend/zend_multibyte.h
   %{_includedir}/php/Zend/zend_multiply.h
   %{_includedir}/php/Zend/zend_object_handlers.h
   %{_includedir}/php/Zend/zend_objects.h
   %{_includedir}/php/Zend/zend_objects_API.h
   %{_includedir}/php/Zend/zend_operators.h
   %{_includedir}/php/Zend/zend_ptr_stack.h
   %{_includedir}/php/Zend/zend_qsort.h
   %{_includedir}/php/Zend/zend_stack.h
   %{_includedir}/php/Zend/zend_static_allocator.h
   %{_includedir}/php/Zend/zend_stream.h
   %{_includedir}/php/Zend/zend_strtod.h
   %{_includedir}/php/Zend/zend_ts_hash.h
   %{_includedir}/php/Zend/zend_types.h
   %{_includedir}/php/Zend/zend_variables.h
   %{_includedir}/php/Zend/zend_vm.h
   %{_includedir}/php/Zend/zend_vm_def.h
   %{_includedir}/php/Zend/zend_vm_execute.h
   %{_includedir}/php/Zend/zend_vm_opcodes.h
   %{_includedir}/php/ext/date/lib/timelib.h
   %{_includedir}/php/ext/date/lib/timelib_config.h
   %{_includedir}/php/ext/date/lib/timelib_structs.h
   %{_includedir}/php/ext/date/php_date.h
   %{_includedir}/php/ext/dom/xml_common.h
   %{_includedir}/php/ext/ereg/php_ereg.h
   %{_includedir}/php/ext/ereg/php_regex.h
   %{_includedir}/php/ext/ereg/regex/cclass.h
   %{_includedir}/php/ext/ereg/regex/cname.h
   %{_includedir}/php/ext/ereg/regex/regex.h
   %{_includedir}/php/ext/ereg/regex/regex2.h
   %{_includedir}/php/ext/ereg/regex/utils.h
   %{_includedir}/php/ext/filter/php_filter.h
   %{_includedir}/php/ext/hash/php_hash.h
   %{_includedir}/php/ext/hash/php_hash_adler32.h
   %{_includedir}/php/ext/hash/php_hash_crc32.h
   %{_includedir}/php/ext/hash/php_hash_gost.h
   %{_includedir}/php/ext/hash/php_hash_haval.h
   %{_includedir}/php/ext/hash/php_hash_md.h
   %{_includedir}/php/ext/hash/php_hash_ripemd.h
   %{_includedir}/php/ext/hash/php_hash_salsa.h
   %{_includedir}/php/ext/hash/php_hash_sha.h
   %{_includedir}/php/ext/hash/php_hash_snefru.h
   %{_includedir}/php/ext/hash/php_hash_tiger.h
   %{_includedir}/php/ext/hash/php_hash_types.h
   %{_includedir}/php/ext/hash/php_hash_whirlpool.h
   %{_includedir}/php/ext/iconv/php_have_bsd_iconv.h
   %{_includedir}/php/ext/iconv/php_have_glibc_iconv.h
   %{_includedir}/php/ext/iconv/php_have_ibm_iconv.h
   %{_includedir}/php/ext/iconv/php_have_iconv.h
   %{_includedir}/php/ext/iconv/php_have_libiconv.h
   %{_includedir}/php/ext/iconv/php_iconv.h
   %{_includedir}/php/ext/iconv/php_iconv_aliased_libiconv.h
   %{_includedir}/php/ext/iconv/php_iconv_supports_errno.h
   %{_includedir}/php/ext/iconv/php_php_iconv_h_path.h
   %{_includedir}/php/ext/iconv/php_php_iconv_impl.h
   %{_includedir}/php/ext/json/php_json.h
   %{_includedir}/php/ext/libxml/php_libxml.h
   %{_includedir}/php/ext/pcre/pcrelib/config.h
   %{_includedir}/php/ext/pcre/pcrelib/pcre.h
   %{_includedir}/php/ext/pcre/pcrelib/pcre_internal.h
   %{_includedir}/php/ext/pcre/pcrelib/pcreposix.h
   %{_includedir}/php/ext/pcre/pcrelib/ucp.h
   %{_includedir}/php/ext/pcre/php_pcre.h
   %{_includedir}/php/ext/pdo/php_pdo.h
   %{_includedir}/php/ext/pdo/php_pdo_driver.h
   %{_includedir}/php/ext/session/mod_files.h
   %{_includedir}/php/ext/session/mod_user.h
   %{_includedir}/php/ext/session/php_session.h
   %{_includedir}/php/ext/spl/php_spl.h
   %{_includedir}/php/ext/spl/spl_array.h
   %{_includedir}/php/ext/spl/spl_directory.h
   %{_includedir}/php/ext/spl/spl_dllist.h
   %{_includedir}/php/ext/spl/spl_engine.h
   %{_includedir}/php/ext/spl/spl_exceptions.h
   %{_includedir}/php/ext/spl/spl_fixedarray.h
   %{_includedir}/php/ext/spl/spl_functions.h
   %{_includedir}/php/ext/spl/spl_heap.h
   %{_includedir}/php/ext/spl/spl_iterators.h
   %{_includedir}/php/ext/spl/spl_observer.h
   %{_includedir}/php/ext/sqlite/libsqlite/src/sqlite.h
   %{_includedir}/php/ext/sqlite3/libsqlite/sqlite3.h
   %{_includedir}/php/ext/standard/base64.h
   %{_includedir}/php/ext/standard/basic_functions.h
   %{_includedir}/php/ext/standard/crc32.h
   %{_includedir}/php/ext/standard/credits.h
   %{_includedir}/php/ext/standard/credits_ext.h
   %{_includedir}/php/ext/standard/credits_sapi.h
   %{_includedir}/php/ext/standard/crypt_freesec.h
   %{_includedir}/php/ext/standard/css.h
   %{_includedir}/php/ext/standard/cyr_convert.h
   %{_includedir}/php/ext/standard/datetime.h
   %{_includedir}/php/ext/standard/dl.h
   %{_includedir}/php/ext/standard/exec.h
   %{_includedir}/php/ext/standard/file.h
   %{_includedir}/php/ext/standard/flock_compat.h
   %{_includedir}/php/ext/standard/fsock.h
   %{_includedir}/php/ext/standard/head.h
   %{_includedir}/php/ext/standard/html.h
   %{_includedir}/php/ext/standard/info.h
   %{_includedir}/php/ext/standard/md5.h
   %{_includedir}/php/ext/standard/microtime.h
   %{_includedir}/php/ext/standard/pack.h
   %{_includedir}/php/ext/standard/pageinfo.h
   %{_includedir}/php/ext/standard/php_array.h
   %{_includedir}/php/ext/standard/php_assert.h
   %{_includedir}/php/ext/standard/php_browscap.h
   %{_includedir}/php/ext/standard/php_crypt.h
   %{_includedir}/php/ext/standard/php_crypt_r.h
   %{_includedir}/php/ext/standard/php_dir.h
   %{_includedir}/php/ext/standard/php_dns.h
   %{_includedir}/php/ext/standard/php_ext_syslog.h
   %{_includedir}/php/ext/standard/php_filestat.h
   %{_includedir}/php/ext/standard/php_fopen_wrappers.h
   %{_includedir}/php/ext/standard/php_ftok.h
   %{_includedir}/php/ext/standard/php_http.h
   %{_includedir}/php/ext/standard/php_image.h
   %{_includedir}/php/ext/standard/php_incomplete_class.h
   %{_includedir}/php/ext/standard/php_iptc.h
   %{_includedir}/php/ext/standard/php_lcg.h
   %{_includedir}/php/ext/standard/php_link.h
   %{_includedir}/php/ext/standard/php_mail.h
   %{_includedir}/php/ext/standard/php_math.h
   %{_includedir}/php/ext/standard/php_metaphone.h
   %{_includedir}/php/ext/standard/php_rand.h
   %{_includedir}/php/ext/standard/php_smart_str.h
   %{_includedir}/php/ext/standard/php_smart_str_public.h
   %{_includedir}/php/ext/standard/php_standard.h
   %{_includedir}/php/ext/standard/php_string.h
   %{_includedir}/php/ext/standard/php_type.h
   %{_includedir}/php/ext/standard/php_uuencode.h
   %{_includedir}/php/ext/standard/php_var.h
   %{_includedir}/php/ext/standard/php_versioning.h
   %{_includedir}/php/ext/standard/proc_open.h
   %{_includedir}/php/ext/standard/quot_print.h
   %{_includedir}/php/ext/standard/scanf.h
   %{_includedir}/php/ext/standard/sha1.h
   %{_includedir}/php/ext/standard/streamsfuncs.h
   %{_includedir}/php/ext/standard/uniqid.h
   %{_includedir}/php/ext/standard/url.h
   %{_includedir}/php/ext/standard/url_scanner_ex.h
   %{_includedir}/php/ext/standard/winver.h
   %{_includedir}/php/ext/xml/expat_compat.h
   %{_includedir}/php/ext/xml/php_xml.h
   %{_includedir}/php/main/SAPI.h
   %{_includedir}/php/main/build-defs.h
   %{_includedir}/php/main/fopen_wrappers.h
   %{_includedir}/php/main/logos.h
   %{_includedir}/php/main/php.h
   %{_includedir}/php/main/php3_compat.h
   %{_includedir}/php/main/php_compat.h
   %{_includedir}/php/main/php_config.h
   %{_includedir}/php/main/php_content_types.h
   %{_includedir}/php/main/php_getopt.h
   %{_includedir}/php/main/php_globals.h
   %{_includedir}/php/main/php_ini.h
   %{_includedir}/php/main/php_logos.h
   %{_includedir}/php/main/php_main.h
   %{_includedir}/php/main/php_memory_streams.h
   %{_includedir}/php/main/php_network.h
   %{_includedir}/php/main/php_open_temporary_file.h
   %{_includedir}/php/main/php_output.h
   %{_includedir}/php/main/php_reentrancy.h
   %{_includedir}/php/main/php_scandir.h
   %{_includedir}/php/main/php_streams.h
   %{_includedir}/php/main/php_syslog.h
   %{_includedir}/php/main/php_ticks.h
   %{_includedir}/php/main/php_variables.h
   %{_includedir}/php/main/php_version.h
   %{_includedir}/php/main/rfc1867.h
   %{_includedir}/php/main/safe_mode.h
   %{_includedir}/php/main/snprintf.h
   %{_includedir}/php/main/spprintf.h
   %{_includedir}/php/main/streams/php_stream_context.h
   %{_includedir}/php/main/streams/php_stream_filter_api.h
   %{_includedir}/php/main/streams/php_stream_glob_wrapper.h
   %{_includedir}/php/main/streams/php_stream_mmap.h
   %{_includedir}/php/main/streams/php_stream_plain_wrapper.h
   %{_includedir}/php/main/streams/php_stream_transport.h
   %{_includedir}/php/main/streams/php_stream_userspace.h
   %{_includedir}/php/main/streams/php_streams_int.h
   %{_includedir}/php/main/win32_internal_function_disabled.h
   %{_includedir}/php/main/win95nt.h
   %{_libdir}/build/Makefile.global
   %{_libdir}/build/acinclude.m4
   %{_libdir}/build/config.guess
   %{_libdir}/build/config.sub
   %{_libdir}/build/libtool.m4
   %{_libdir}/build/ltmain.sh
   %{_libdir}/build/mkdep.awk
   %{_libdir}/build/phpize.m4
   %{_libdir}/build/run-tests.php
   %{_libdir}/build/scan_makefile_in.awk
   %{_libdir}/build/shtool

%changelog