SPECS: phorum.spec - webapps
glen
glen at pld-linux.org
Wed Mar 8 13:14:54 CET 2006
Author: glen Date: Wed Mar 8 12:14:54 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- webapps
---- Files affected:
SPECS:
phorum.spec (1.11 -> 1.12)
---- Diffs:
================================================================
Index: SPECS/phorum.spec
diff -u SPECS/phorum.spec:1.11 SPECS/phorum.spec:1.12
--- SPECS/phorum.spec:1.11 Tue Dec 13 15:37:23 2005
+++ SPECS/phorum.spec Wed Mar 8 13:14:48 2006
@@ -1,21 +1,23 @@
# $Revision$, $Date$
-# TODO:
-# - move to /usr/share
Summary: Phorum is a web based message board written in PHP
Summary(pl): Phorum - implementacja forum WWW w PHP
Name: phorum
Version: 5.0.10
-Release: 0.1
+Release: 0.2
License: Apache-like
-Group: Applications
+Group: Applications/WWW
Source0: http://phorum.org/downloads/%{name}-%{version}.tar.bz2
# Source0-md5: 52519423489765db680acc1b1d17eba5
URL: http://phorum.org/
-Requires: php >= 4.0.6
-Requires: webserver
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires: php >= 3:4.0.6
+Requires: webapps
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _phorumdir /home/services/httpd/html/phorum
+%define _webapps /etc/webapps
+%define _webapp %{name}
+%define _sysconfdir %{_webapps}/%{_webapp}
+%define _appdir %{_datadir}/%{_webapp}
%description
Phorum is a web based message board written in PHP who's goal is to be
@@ -34,37 +36,73 @@
%prep
%setup -q
+rm {cache,portable,include,mods}/.htaccess
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_phorumdir}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
-cp -a . $RPM_BUILD_ROOT%{_phorumdir}
-rm -rf $RPM_BUILD_ROOT%{_phorumdir}/docs
+cp -a *.php $RPM_BUILD_ROOT%{_appdir}
+cp -a cache images include mods portable smileys templates $RPM_BUILD_ROOT%{_appdir}
+
+> $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+> $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
%clean
rm -rf $RPM_BUILD_ROOT
+%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}
+
%files
-%defattr(644,root,http,755)
-%doc docs/*
-%dir %{_phorumdir}
-%{_phorumdir}/*.php
-%{_phorumdir}/*.css
-%{_phorumdir}/db
-%{_phorumdir}/images
-%{_phorumdir}/include
-%{_phorumdir}/lang
-%{_phorumdir}/plugin
-%{_phorumdir}/scripts
-%{_phorumdir}/smileys
-%dir %{_phorumdir}/admin
-%{_phorumdir}/admin/*.php
-%{_phorumdir}/admin/actions
-%{_phorumdir}/admin/lang
-%{_phorumdir}/admin/pages
-%dir %attr(770,root,http) %{_phorumdir}/admin/settings
-%attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_phorumdir}/admin/settings/forums.php
+%defattr(644,root,root,755)
+%doc docs/* *.txt scripts
+%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
+%{_appdir}/admin.php
+%{_appdir}/attach.php
+%{_appdir}/common.php
+%{_appdir}/control.php
+%{_appdir}/edit.php
+%{_appdir}/file.php
+%{_appdir}/follow.php
+%{_appdir}/images
+%{_appdir}/include/admin
+%{_appdir}/include/*.php
+%{_appdir}/include/controlcenter
+%{_appdir}/include/db/config.php.sample
+%{_appdir}/include/db/mysql.php
+%{_appdir}/include/db/postgresql.php
+%{_appdir}/include/db/upgrade/mysql
+%{_appdir}/include/dhtml_popup.js
+%{_appdir}/include/lang/english.php
+%{_appdir}/index.php
+%{_appdir}/list.php
+%{_appdir}/login.php
+%{_appdir}/moderation.php
+%{_appdir}/mods/bbcode
+%{_appdir}/mods/html
+%{_appdir}/mods/replace
+%{_appdir}/mods/smileys
+%{_appdir}/portable
+%{_appdir}/post.php
+%{_appdir}/profile.php
+%{_appdir}/read.php
+%{_appdir}/register.php
+%{_appdir}/script.php
+%{_appdir}/search.php
+%{_appdir}/smileys
+%{_appdir}/templates
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -72,6 +110,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.12 2006/03/08 12:14:48 glen
+- webapps
+
Revision 1.11 2005/12/13 14:37:23 glen
- adapterized (sorted %verify flags)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/phorum.spec?r1=1.11&r2=1.12&f=u
More information about the pld-cvs-commit
mailing list