]> git.pld-linux.org Git - packages/activecollab.git/blob - activecollab.spec
07313f139715a60e34a3bf1c42cd31d276230e3b
[packages/activecollab.git] / activecollab.spec
1 Summary:        activeCollab
2 Name:           activecollab
3 Version:        0.7.1
4 Release:        0.7
5 License:        HPL
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
11 Requires:       php-gd
12 Requires:       php-mysql
13 Requires:       php-simplexml
14 Requires:       webapps
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _webapps        /etc/webapps
19 %define         _webapp         %{name}
20 %define         _sysconfdir     %{_webapps}/%{_webapp}
21 %define         _appdir         %{_datadir}/%{_webapp}
22
23 %description
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.
28
29 %prep
30 %setup -q -n activecollab
31
32 cat > apache.conf <<'EOF'
33 Alias /%{name} %{_appdir}
34 <Directory %{_appdir}>
35         Allow from all
36         AddDefaultCharset utf-8
37 </Directory>
38 EOF
39 rm -f .htaccess
40
41 %install
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
46
47 install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
48 install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
49
50 %triggerin -- apache1 < 1.3.37-3, apache1-base
51 %webapp_register apache %{_webapp}
52
53 %triggerun -- apache1 < 1.3.37-3, apache1-base
54 %webapp_unregister apache %{_webapp}
55
56 %triggerin -- apache < 2.2.0, apache-base
57 %webapp_register httpd %{_webapp}
58
59 %triggerun -- apache < 2.2.0, apache-base
60 %webapp_unregister httpd %{_webapp}
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %files
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
71 %{_appdir}
This page took 0.068462 seconds and 3 git commands to generate.