%define fforge_admin fforgeadmin
-%define FORGE_DIR %{_datadir}/gforge
+%define FORGE_DIR %{_datadir}/gforge/src
%define FORGE_CONF_DIR %{_sysconfdir}/gforge
%define FORGE_LANG_DIR %{_datadir}/locale
%define FORGE_VAR_LIB %{_var}/lib/gforge
%define reloadhttpd() /etc/init.d/httpd httpd reload >/dev/null 2>&1
+# Disable debug binary detection & generation to speed up process.
+%global debug_package %{nil}
+
# RPM spec preamble
Summary: FusionForge Collaborative Development Environment
Name: fusionforge
Version: @@VERSION@@
-Release: 2%{?dist}
+Release: 1%{?dist}
BuildArch: noarch
License: GPL
Group: Development/Tools
Packager: Alain Peyrat <aljeux@free.fr>
Requires: httpd, mod_dav_svn, mod_ssl, php, php-pgsql, php-gd, php-mbstring, mailman
-Requires: postgresql, postgresql-libs, postgresql-server, postgresql-contrib
+Requires: postgresql >= 8.3 or postgresql84, postgresql-libs, postgresql-server, postgresql-contrib
Requires: postfix, openssh, inetd, which
Requires: /bin/sh, /bin/bash
# %description plugin-authopenid
# External OpenID authentication plugin for FusionForge.
+%package plugin-ckeditor
+Summary: CKEditor plugin for FusionForge
+Group: Development/Tools
+Requires: %{name} >= %{version}, php, ckeditor
+%description plugin-ckeditor
+CKEditor is a WYSIWYG text editor that displays within a web browser.
+
%package plugin-cvssyncmail
Summary: Provides email notifications of changes to CVS repositories
Group: Development/Tools
This plugin adds the capability to notify users of changes to CVS repositories
in FusionForge.
+%package plugin-compactpreview
+Summary: Provides a preview mecanism
+Group: Development/Tools
+Requires: %{name} >= %{version}, php
+%description plugin-compactpreview
+This plugin adds support for user and project compact-preview
+(popups) compatible with the OSLC specifications.
+
%package plugin-cvstracker
Summary: Links CVS log messages to trackers and tasks.
Group: Development/Tools
which have indexed it. You can define search engines you want to use in
the configuration file.
+%package plugin-extsubproj
+Summary: external sub project plugin for FusionForge
+Group: Development/Tools
+Requires: %{name} >= %{version}, php
+%description plugin-extsubproj
+Manages links to external subprojects on remote forges.
+
# %package plugin-forumml
# Summary: Mailman to forums plugin for FusionForge
# Group: Development/Tools
%description plugin-mediawiki
This is a plugin to integrate MediaWiki within FusionForge.
+%package plugin-moinmoin
+Summary: MoinMoinWiki plugin for FusionForge
+Group: Development/Tools
+Requires: %{name} >= %{version}, php, postgresql
+%description plugin-moinmoin
+This is a plugin to integrate MediaWiki within FusionForge.
+
%package plugin-message
Summary: Global Information Message plugin for FusionForge
Group: Development/Tools
This package provides an OSLC-CM V2 compatible plugin for FusionForge
tracker system.
-# %package plugin-projectimport
-# Summary: Project Import plugin for FusionForge
-# Group: Development/Tools
-# Requires: %{name} >= %{version}, php
-# %description plugin-projectimport
-# Project import plugin for FusionForge
-# This plugin allows the import of a project data previously exported
-# with ForgePlucker, or a compatible tool.
+%package plugin-projectimport
+Summary: Project Import plugin for FusionForge
+Group: Development/Tools
+Requires: %{name} >= %{version}, php
+%description plugin-projectimport
+Project import plugin for FusionForge
+This plugin allows the import of a project data previously exported
+with ForgePlucker, or a compatible tool.
# %package plugin-projects-hierarchy
# Summary: projects-hierarchy plugin for FusionForge
%{__rm} -fr $RPM_BUILD_ROOT/%{FORGE_DIR}/plugins/foafprofiles
### Plugin setup ###
+for i in $(utils/list-enabled-plugins.sh --disabled) ; do
+ %{__rm} -rf $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/$i
+done
+
%{__cp} $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/*/etc/*.ini $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/config.ini.d/
%{__cp} $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/*/etc/cron.d/* $RPM_BUILD_ROOT%{_sysconfdir}/cron.d/
%{__cp} $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/*/etc/httpd.d/* $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.d/
# plugin: authopenid
# %{__ln_s} ../../plugins/authopenid/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/authopenid
+# plugin: compactpreview
+%{__ln_s} ../../plugins/compactpreview/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/compactpreview
+
# plugin: cvssyncmail
# plugin: cvstracker
# plugin: externalsearch
+# plugin: extsubproj
+%{__ln_s} ../../plugins/extsubproj/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/extsubproj
+
# plugin: fckeditor
%{__ln_s} ../../plugins/fckeditor/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/fckeditor
# insert our own README file
%{__cp} -f %{SOURCE1} $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/mediawiki/README.jlbond
+# plugin: moinmoin
+%{__ln_s} ../../plugins/moinmoin/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/moinmoin
+
# plugin: message
%{__ln_s} ../../plugins/message/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/message
%{__ln_s} ../../plugins/oslc/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/oslc
# plugin : projectimport
-# %{__ln_s} ../../plugins/projectimport/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/projectimport
+%{__ln_s} ../../plugins/projectimport/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/projectimport
# plugin: projectlabels
%{__ln_s} ../../plugins/projectlabels/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/projectlabels
# plugin: oauthprovider
#%{__ln_s} ../../plugins/oauthprovider/www $RPM_BUILD_ROOT%{FORGE_DIR}/www/plugins/oauthprovider
-for i in $(utils/list-enabled-plugins.sh --disabled) ; do
- %{__rm} -rf $RPM_BUILD_ROOT%{FORGE_DIR}/plugins/$i
- %{__rm} -f $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/config.ini.d/$i.ini
- %{__rm} -f $RPM_BUILD_ROOT%{FORGE_CONF_DIR}/httpd.d/[0-9][0-9]$i
-done
### END OF PLUGIN SETUP ###
FFORGE_ADMIN_PASSWORD=$(/bin/dd if=/dev/urandom bs=32 count=1 2>/dev/null | /usr/bin/sha1sum | cut -c1-8)
fi
export FFORGE_DB FFORGE_USER FFORGE_ADMIN_USER FFORGE_ADMIN_PASSWORD
- /usr/bin/php %{FORGE_DIR}/fusionforge-install-3-db.php >>/var/log/%{name}-install.log 2>&1
+ /bin/sh %{FORGE_DIR}/install-ng --database >>/var/log/%{name}-install.log 2>&1
else
echo "Database %{dbname} already exists. Will not proceed with database setup." >>/var/log/%{name}-install.log 2>&1
- echo "Please see %{FORGE_DIR}/fusionforge-install-3-db.php and run it manually" >>/var/log/%{name}-install.log 2>&1
+ echo "Please see %{FORGE_DIR}/install-ng --database and run it manually" >>/var/log/%{name}-install.log 2>&1
echo "if deemed necessary." >>/var/log/%{name}-install.log 2>&1
fi
[ -d %{FORGE_VAR_LIB}/etc ] || mkdir %{FORGE_VAR_LIB}/etc
touch %{FORGE_VAR_LIB}/etc/httpd.vhosts
- /usr/bin/php %{FORGE_DIR}/fusionforge-install-4-config.php >>/var/log/%{name}-install.log 2>&1
+ /bin/sh %{FORGE_DIR}/install-ng --config >>/var/log/%{name}-install.log 2>&1
/etc/init.d/httpd restart >/dev/null 2>&1
%{FORGE_DIR}/NEWS
%{FORGE_DIR}/README*
%{FORGE_DIR}/fusionforge.spec
-%{FORGE_DIR}/fusionforge-install*
-%{FORGE_DIR}/gforge-restricted.sh
-%{FORGE_DIR}/install.sh
-%{FORGE_DIR}/install-common.inc
%{FORGE_DIR}/install-ng
# Directories under %{FORGE_DIR}
%{FORGE_DIR}/backend
%{FORGE_DIR}/www/softwaremap
%{FORGE_DIR}/www/squal
%{FORGE_DIR}/www/stats
+%{FORGE_DIR}/www/support
%{FORGE_DIR}/www/survey
%{FORGE_DIR}/www/tabber
%{FORGE_DIR}/www/themes
# %config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/authopenid.ini
# %{FORGE_DIR}/plugins/authopenid
+%files plugin-ckeditor
+%{FORGE_DIR}/plugins/ckeditor
+
%files plugin-cvssyncmail
%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/cvssyncmail.ini
%{FORGE_DIR}/plugins/cvssyncmail
%{FORGE_DIR}/www/plugins/cvstracker
%attr(-,%{httpduser},%{httpdgroup}) %{FORGE_CONF_DIR}/plugins/cvstracker
+%files plugin-compactpreview
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/compactpreview.ini
+%{FORGE_DIR}/plugins/compactpreview
+
+%files plugin-cvstracker
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/cvstracker.ini
+%{FORGE_DIR}/plugins/cvstracker
+%{FORGE_DIR}/www/plugins/cvstracker
+%attr(-,%{httpduser},%{httpdgroup}) %{FORGE_CONF_DIR}/plugins/cvstracker
+
%files plugin-doaprdf
%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/doaprdf.ini
%{FORGE_DIR}/plugins/doaprdf
%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/externalsearch.ini
%{FORGE_DIR}/plugins/externalsearch
+%files plugin-extsubproj
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/extsubproj.ini
+%{FORGE_DIR}/plugins/extsubproj
+
%files plugin-fckeditor
%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/fckeditor.ini
%{FORGE_DIR}/plugins/fckeditor
/usr/share/mediawiki/skins/GForge.deps.php
/usr/share/mediawiki/skins/GForge.php
+%files plugin-moinmoin
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/moinmoin.ini
+%{FORGE_DIR}/plugins/moinmoin/
+%{FORGE_DIR}/www/plugins/moinmoin
+
%files plugin-message
%{FORGE_DIR}/plugins/message
%{FORGE_DIR}/www/plugins/message
%{FORGE_DIR}/plugins/oslc
%{FORGE_DIR}/www/plugins/oslc
-# %files plugin-projectimport
-# %config(noreplace) %{FORGE_CONF_DIR}/plugins/projectimport/
-# %config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/projectimport.ini
-# %{FORGE_DIR}/plugins/projectimport
-# %{FORGE_DIR}/www/plugins/projectimport
+%files plugin-projectimport
+%config(noreplace) %{FORGE_CONF_DIR}/plugins/projectimport/
+%config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/projectimport.ini
+%{FORGE_DIR}/plugins/projectimport
+%{FORGE_DIR}/www/plugins/projectimport
# %files plugin-projects-hierarchy
# %config(noreplace) %{FORGE_CONF_DIR}/config.ini.d/projects-hierarchy.ini