Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
server:php:applications
php-pear-php_beautifier
php-pear-php_beautifier.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php-pear-php_beautifier.spec of Package php-pear-php_beautifier
#norootforbuild %define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear) %define xmldir /var/lib/pear Summary: Beautifier for Php Name: php-pear-php_beautifier Version: 0.1.15 Release: 1 License: PHP License Group: Development/Libraries Source0: http://pear.php.net/get/PHP_Beautifier-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-build URL: http://pear.php.net/package/PHP_Beautifier BuildArchitectures: noarch BuildRequires: php5-pear PreReq: php5-pear Requires: php5-pear-log php5-tokenizer php5-bz2 php-pear %description This program reformat and beautify PHP 4 and PHP 5 source code files automatically. The program is Open Source and distributed under the terms of PHP Licence. It is written in PHP 5 and has a command line tool. %prep %setup -c -T # XXX Source files location is missing here in pear cmd pear -v -c pearrc \ -d php_dir=%{peardir} \ -d doc_dir=/docs \ -d bin_dir=%{_bindir} \ -d data_dir=%{peardir}/data \ -d test_dir=%{peardir}/tests \ -d ext_dir=%{_libdir}/php5/extensions \ -s %build %install pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0} # Clean up unnecessary files rm pearrc %{__rm} -rf %{buildroot}%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock} mv %{buildroot}/docs . # Install XML package description mkdir -p %{buildroot}%{xmldir} tar -xzf %{SOURCE0} package.xml cp -p package.xml %{buildroot}%{xmldir}/PHP_Beautifier.xml %clean rm -rf %{buildroot} %post pear install --nodeps --soft --force --register-only %{xmldir}/PHP_Beautifier.xml %postun if [ "$1" -eq "0" ]; then pear uninstall --nodeps --ignore-errors --register-only PHP_Beautifier fi %files %defattr(-,root,root) %doc docs/PHP_Beautifier/{examples/example_array.php,examples/example_comments.php,examples/example_html.php,examples/example_lowercase.php,examples/example_main.php,examples/example_pear.php,examples/run_me.php} %{peardir}/* %{xmldir}/PHP_Beautifier.xml %{_bindir}/php_beautifier %exclude %{_bindir}/php_beautifier.bat
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor