From 53811e4784e7d8fbd6a959d59ab43af296b6f20c Mon Sep 17 00:00:00 2001 From: Konstantin Ryabitsev Date: Jun 11 2007 13:47:49 +0000 Subject: Importing php-pear-PhpDocumentor --- diff --git a/.cvsignore b/.cvsignore index e69de29..eb58b3e 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +PhpDocumentor-1.3.2.tgz diff --git a/php-pear-PhpDocumentor.spec b/php-pear-PhpDocumentor.spec new file mode 100644 index 0000000..dfc3db5 --- /dev/null +++ b/php-pear-PhpDocumentor.spec @@ -0,0 +1,143 @@ +%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} +%define pear_name PhpDocumentor + +Summary: The complete documentation solution for PHP +Name: php-pear-PhpDocumentor +Version: 1.3.2 +Release: 1%{?dist} +License: LGPL +Group: Development/Libraries +URL: http://www.phpdoc.org/ +Source0: http://download.sourceforge.net/phpdocu/%{pear_name}-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: php-pear >= 1:1.4.9 +Requires: php-pear(PEAR), php-common > 5.1.0 +Requires(post): %{__pear} +Requires(postun): %{__pear} +Provides: php-pear(%{pear_name}) = %{version} + +%description +phpDocumentor is the current standard auto-documentation tool for the +php language. phpDocumentor has support for linking between documentation, +incorporating user level documents like tutorials and creation of +highlighted source code with cross referencing to php general +documentation. + +phpDocumentor uses an extensive templating system to change your source +code comments into human readable, and hence useful, formats. This system +allows the creation of easy to read documentation in 15 different +pre-designed HTML versions, PDF format, Windows Helpfile CHM format, and +in Docbook XML. + + +%package -n phpdoc +Summary: Command-line utility for PhpDocumentor +Group: Development/Tools +Requires: php-pear(%{pear_name}) = %{version}-%{release} +Requires: php-cli + +%description -n phpdoc +This package includes a utility to run PhpDocumentor from the command-line +interface. + + +%package docs +Summary: Documentation for PhpDocumentor +Group: Documentation +Requires: %{name} = %{version}-%{release} + +%description docs +This package includes the documentation for PhpDocumentor. + +%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 + + +%install +cd %{pear_name}-%{version} +rm -rf $RPM_BUILD_ROOT +%{__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} + +# Remove scripts out of bindir +rm -rf $RPM_BUILD_ROOT%{_bindir}/scripts + + +%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}/LICENSE +%{pear_phpdir}/%{pear_name} +%{pear_phpdir}/data/%{pear_name} +%{pear_phpdir}/test/%{pear_name} +%{pear_xmldir}/%{pear_name}.xml + +%files -n phpdoc +%defattr(-,root,root,-) +%doc %{pear_name}-%{version}/docdir/%{pear_name}/LICENSE +%doc %{pear_name}-%{version}/scripts/makedoc.sh +%{_bindir}/* + +%files docs +%defattr(-,root,root,-) +%doc %{pear_name}-%{version}/docdir/%{pear_name}/* + + +%changelog +* Sun Jun 10 2007 Konstantin Ryabitsev - 1.3.2-1 +- Upstream 1.3.2 +- Update the spec to the latest php-pear spec standards +- Drop obsoleted patch + +* Wed Jan 17 2007 Konstantin Ryabitsev - 1.3.1-1 +- Upstream 1.3.1 +- Patch for bug with php-5.2 (http://pear.php.net/bugs/bug.php?id=9151) + +* Tue Jan 02 2007 Konstantin Ryabitsev - 1.3.0-1 +- Remove bogus scripts dir in _bindir +- Require version-release instead of just version in phpdoc + +* Mon Aug 28 2006 Konstantin Ryabitsev - 1.3.0-0.3 +- Version 1.3.0 stable +- Drop Source1 +- Move documentation into -docs subpackage +- Use an updated pear template from #198706 + +* Sun Aug 06 2006 Konstantin Ryabitsev - 1.3.0-0.2.RC6 +- Split command-line stuff into a phpdoc package. +- Rename the package to conform to the php-pear naming standard. +- Create a php.ini with limit overrides (builds in mock were failing) + +* Thu Jul 27 2006 Konstantin Ryabitsev - 1.3.0-0.1.RC6 +- Initial packaging (merci, Remi!) diff --git a/sources b/sources index e69de29..56e6b13 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +747e4bd9ddffeb0bfb9375c870a1d17f PhpDocumentor-1.3.2.tgz