packages: phorum/phorum.spec - add phpdoc package, examples to exampledir

glen glen at pld-linux.org
Wed Jan 13 12:32:57 CET 2010


Author: glen                         Date: Wed Jan 13 11:32:57 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add phpdoc package, examples to exampledir

---- Files affected:
packages/phorum:
   phorum.spec (1.32 -> 1.33) 

---- Diffs:

================================================================
Index: packages/phorum/phorum.spec
diff -u packages/phorum/phorum.spec:1.32 packages/phorum/phorum.spec:1.33
--- packages/phorum/phorum.spec:1.32	Tue Jan 12 18:41:33 2010
+++ packages/phorum/phorum.spec	Wed Jan 13 12:32:51 2010
@@ -4,7 +4,7 @@
 Summary(pl.UTF-8):	Phorum - implementacja forum WWW w PHP
 Name:		phorum
 Version:	%{themever}.14
-Release:	0.23
+Release:	0.26
 License:	Apache-like
 Group:		Applications/WWW
 Source0:	http://www.phorum.org/downloads/%{name}-%{version}.tar.bz2
@@ -26,6 +26,7 @@
 %define		_webapp		%{name}
 %define		_sysconfdir	%{_webapps}/%{_webapp}
 %define		_appdir		%{_datadir}/%{_webapp}
+%define		_phpdocdir	%{_docdir}/phpdoc
 
 %description
 Phorum is a web based message board written in PHP who's goal is to be
@@ -58,6 +59,18 @@
 pierwszej instalacji. Potem należy go odinstalować, jako że
 pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
 
+%package phpdoc
+Summary:	Online manual for Phorum
+Summary(pl.UTF-8):	Dokumentacja online do Phorum
+Group:		Documentation
+Requires:	php-dirs
+
+%description phpdoc
+Documentation for Phorum.
+
+%description phpdoc -l pl.UTF-8
+Dokumentacja do Phorum.
+
 %package theme-classic
 Summary:    Classic theme for Phorum
 Group:      Applications/WWW
@@ -89,20 +102,27 @@
 %setup -q
 find '(' -name '*.php' -o -name '*.css' -o -name '*.js' ')' -print0 | xargs -0 %{__sed} -i -e 's,\r$,,'
 
-# php-phpmailer
-rm -rf mods/smtp_mail/phpmailer
+install -d htdocs/admin examples
 
 # htaccess will be provided by apache.conf
 find -name .htaccess | xargs rm -v
 
+# php-phpmailer
+rm -rf mods/smtp_mail/phpmailer
+
 mv include/db/config.php.sample .
-mv include/api/examples docs/api_examples
+mv include/api/examples examples/api
+mv docs/example_mods examples/mods
+mv portable scripts examples
+# so we don't have to package html/pdf/docbook via docs/*
+mv docs/html htmldoc
+mv docs/docbook .
+mv docs/pdf pdfdoc
 
 # kill old files by phorum
 rm post.php
 
 # fixup structure, move public files to htdocs.
-install -d htdocs/admin
 mv *.php images htdocs
 
 # still private files (not for web)
@@ -112,9 +132,6 @@
 # admin css
 mv include/admin/css htdocs/admin
 
-# samples
-mv portable scripts docs
-
 # move themes images to htdocs
 for a in templates/*/images; do
 	d=$(dirname "$a");
@@ -160,6 +177,14 @@
 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
 cp -a config.php.sample $RPM_BUILD_ROOT%{_sysconfdir}/config.php
 
+# apidoc
+install -d $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
+cp -a htmldoc/api/* $RPM_BUILD_ROOT%{_phpdocdir}/%{name}
+
+# examples
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -242,6 +267,8 @@
 
 %dir %attr(770,root,http) /var/cache/phorum
 
+%{_examplesdir}/%{name}-%{version}
+
 %files setup
 %defattr(644,root,root,755)
 %{_appdir}/htdocs/admin
@@ -249,6 +276,10 @@
 %{_appdir}/include/admin
 %{_appdir}/include/db/upgrade
 
+%files phpdoc
+%defattr(644,root,root,755)
+%{_phpdocdir}/%{name}
+
 %files theme-classic
 %defattr(644,root,root,755)
 %{_appdir}/templates/classic
@@ -270,6 +301,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.33  2010/01/13 11:32:51  glen
+- add phpdoc package, examples to exampledir
+
 Revision 1.32  2010/01/12 17:41:33  glen
 - rework htdocs separation: do not use chdir, but path constants as relative
   file inclusion is broken otherwise.
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/phorum/phorum.spec?r1=1.32&r2=1.33&f=u



More information about the pld-cvs-commit mailing list