rpms/php-pear-XML-Beautifier/devel php-pear-XML-Beautifier.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Christopher Stone (xulchris) fedora-extras-commits at redhat.com
Tue Oct 17 03:19:52 UTC 2006


Author: xulchris

Update of /cvs/extras/rpms/php-pear-XML-Beautifier/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21315/devel

Modified Files:
	.cvsignore sources 
Added Files:
	php-pear-XML-Beautifier.spec 
Log Message:
auto-import php-pear-XML-Beautifier-1.1-1 on branch devel from php-pear-XML-Beautifier-1.1-1.src.rpm


--- NEW FILE php-pear-XML-Beautifier.spec ---
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%define pear_name XML_Beautifier

Name:           php-pear-XML-Beautifier
Version:        1.1
Release:        1%{?dist}
Summary:        Class to format XML documents

Group:          Development/Libraries
License:        PHP License
URL:            http://pear.php.net/package/XML_Beautifier
Source0:        http://pear.php.net/get/%{pear_name}-%{version}.tgz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  php-pear >= 1:1.4.9-1.2
Requires:       php-pear(PEAR) php-pear(XML_Util) php-pear(XML_Parser)
Requires(post): %{__pear}
Requires(postun): %{__pear}
Provides:       php-pear(%{pear_name}) = %{version}

%description
XML_Beautifier is a package, that helps you making XML documents easier to
read for human beings.

It is able to add line-breaks, indentation, sorts attributes, convert tag
cases and wraps long comments. It recognizes tags, character data, comments,
XML declarations, processing instructions and external entities and is able
to format these tokens nicely.

The document is split into these tokens using the XML_Beautifier_Tokenizer
class and the expat parser. Then a renderer is used to create the string
representation of the document and formats it using the specified options.

Currently only one renderer is available, but as XML_Beautifier uses a
driver-based architecture, other renderers (like syntax-highlighting)
will follow soon. 


%prep
%setup -q -c
[ -f package2.xml ] || mv package.xml package2.xml
mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml
cd %{pear_name}-%{version}


%build
cd %{pear_name}-%{version}
# Empty build section, most likely nothing required.


%install
cd %{pear_name}-%{version}
rm -rf $RPM_BUILD_ROOT docdir
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml

# Move documentation
mkdir -p docdir
mv $RPM_BUILD_ROOT%{pear_docdir}/* docdir

# Clean up unnecessary files
rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*

# Install XML package description
mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
install -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir}


%clean
rm -rf $RPM_BUILD_ROOT


%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{pear_name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{pear_name} >/dev/null || :
fi


%files
%defattr(-,root,root,-)
%doc %{pear_name}-%{version}/docdir/%{pear_name}/*
%{pear_xmldir}/%{pear_name}.xml
%{pear_phpdir}/XML/Beautifier*


%changelog
* Sat Oct 14 2006 Christoper Stone <chris.stone at gmail.com> 1.1-1
- Initial release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/php-pear-XML-Beautifier/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	17 Oct 2006 03:19:02 -0000	1.1
+++ .cvsignore	17 Oct 2006 03:19:22 -0000	1.2
@@ -0,0 +1 @@
+XML_Beautifier-1.1.tgz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/php-pear-XML-Beautifier/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	17 Oct 2006 03:19:02 -0000	1.1
+++ sources	17 Oct 2006 03:19:22 -0000	1.2
@@ -0,0 +1 @@
+d121758edb840d9107debb26bb5837d7  XML_Beautifier-1.1.tgz




More information about the scm-commits mailing list