6 Group: Applications/WWW
7 Source0: http://www.activecollab.com/files/0.7.1/activeCollab.tar.gz
8 # Source0-md5: 7cf254743083243202e9d1152240ea1a
9 URL: http://www.activecollab.com/
10 BuildRequires: rpmbuild(macros) >= 1.268
13 Requires: php-simplexml
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _webapps /etc/webapps
19 %define _webapp %{name}
20 %define _sysconfdir %{_webapps}/%{_webapp}
21 %define _appdir %{_datadir}/%{_webapp}
24 ctiveCollab is an easy to use, web based, open source collaboration
25 and project management tool. Set up an environment where you, your
26 team and your clients can collaborate on active projects using a set
27 of simple, functional tools.
30 %setup -q -n activecollab
32 cat > apache.conf <<'EOF'
33 Alias /%{name} %{_appdir}
34 <Directory %{_appdir}>
36 AddDefaultCharset utf-8
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
44 cp -a . $RPM_BUILD_ROOT%{_appdir}
45 rm -f $RPM_BUILD_ROOT%{_appdir}/apache.conf
47 install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
48 install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
50 %triggerin -- apache1 < 1.3.37-3, apache1-base
51 %webapp_register apache %{_webapp}
53 %triggerun -- apache1 < 1.3.37-3, apache1-base
54 %webapp_unregister apache %{_webapp}
56 %triggerin -- apache < 2.2.0, apache-base
57 %webapp_register httpd %{_webapp}
59 %triggerun -- apache < 2.2.0, apache-base
60 %webapp_unregister httpd %{_webapp}
63 rm -rf $RPM_BUILD_ROOT
66 %defattr(644,root,root,755)
67 %doc license.txt readme.txt
68 %dir %attr(750,root,http) %{_sysconfdir}
69 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
70 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf