SPECS: phpwiki.spec (NEW) - new

glen glen at pld-linux.org
Mon May 15 01:14:00 CEST 2006


Author: glen                         Date: Sun May 14 23:14:00 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   phpwiki.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/phpwiki.spec
diff -u /dev/null SPECS/phpwiki.spec:1.1
--- /dev/null	Mon May 15 01:14:00 2006
+++ SPECS/phpwiki.spec	Mon May 15 01:13:54 2006
@@ -0,0 +1,97 @@
+# $Revision$, $Date$
+Summary:	PHP-based Wiki webapplication
+Name:		phpwiki
+Version:	1.3.12p2
+Release:	0.5
+License:	GPL
+Group:		Applications/WWW
+Source0:	http://dl.sourceforge.net/phpwiki/%{name}-%{version}.tar.gz
+# Source0-md5:	e405f9a86f3e341e971250d540971410
+Patch0:		%{name}-pear.patch
+Patch1:		%{name}-webapps.patch
+URL:		http://phpwiki.sourceforge.net/
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires:	php >= 3:4.0.6
+Requires:	php-pcre
+Requires:	php-pear-Cache
+Requires:	php-pear-DB
+Requires:	php-pear-DB_Pager
+Requires:	php-pear-File_Passwd
+Requires:	php-pear-PEAR-core
+Requires:	webapps
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_webapps	/etc/webapps
+%define		_webapp		%{name}
+%define		_sysconfdir	%{_webapps}/%{_webapp}
+%define		_appdir		%{_datadir}/%{_webapp}
+
+%description
+PhpWiki is a WikiWikiWeb clone in PHP. A WikiWikiWeb is a site where
+anyone can edit the pages through an HTML form. Multiple storage
+backends, dynamic hyperlinking, themeable, scriptable by plugins, full
+authentication, ACL's.
+
+%prep
+%setup -q
+mv config/config{-dist,}.ini
+mv config/phpwiki.spec .
+mv config/make-dbhelper.pl .
+rm -rf lib/pear
+%patch0 -p1
+%patch1 -p1
+
+cat > apache.conf <<EOF
+Alias /%{name} %{_appdir}
+<Directory /%{name}>
+	Allow from all
+</Directory>
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir},/var/lib/%{name}}
+
+cp -a *.php *.ico *.wsdl wiki $RPM_BUILD_ROOT%{_appdir}
+cp -a lib locale pgsrc themes uploads $RPM_BUILD_ROOT%{_appdir}
+cp -a config/* $RPM_BUILD_ROOT%{_sysconfdir}
+install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+
+%triggerin -- apache1
+%webapp_register apache %{_webapp}
+
+%triggerun -- apache1
+%webapp_unregister apache %{_webapp}
+
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc doc/* schemas INSTALL README TODO UPGRADING
+%dir %attr(750,root,http) %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.ini
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/two-level-tlds
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whitelist
+%{_appdir}
+%dir %attr(770,root,http) /var/lib/%{name}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/05/14 23:13:54  glen
+- new
+
================================================================


More information about the pld-cvs-commit mailing list