]> git.pld-linux.org Git - packages/activecollab.git/blob - activecollab.spec
- pl
[packages/activecollab.git] / activecollab.spec
1 Summary:        activeCollab - collaboration and project management tool
2 Summary(pl.UTF-8):      activeCollab - narzędzie do współpracy i zarządzania projektami
3 Name:           activecollab
4 Version:        0.7.1
5 Release:        0.7
6 License:        HPL
7 Group:          Applications/WWW
8 Source0:        http://www.activecollab.com/files/%{version}/activeCollab.tar.gz
9 # Source0-md5:  7cf254743083243202e9d1152240ea1a
10 URL:            http://www.activecollab.com/
11 BuildRequires:  rpmbuild(macros) >= 1.268
12 Requires:       php-gd
13 Requires:       php-mysql
14 Requires:       php-simplexml
15 Requires:       webapps
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _webapps        /etc/webapps
20 %define         _webapp         %{name}
21 %define         _sysconfdir     %{_webapps}/%{_webapp}
22 %define         _appdir         %{_datadir}/%{_webapp}
23
24 %description
25 activeCollab is an easy to use, web based, open source collaboration
26 and project management tool. Set up an environment where you, your
27 team and your clients can collaborate on active projects using a set
28 of simple, functional tools.
29
30 %description
31 activeCollab to łatwe w użyciu, oparte o WWW, mające otwarte źródła
32 narzędzie do współpracy i zarządzania projektami. Wystarczy uruchomić
33 środowisko w miejscu gdzie zespół i klienci mogą współpracować nad
34 aktywnymi projektami przy użyciu prostych, funkcjonalnych narzędzi.
35
36 %prep
37 %setup -q -n activecollab
38
39 cat > apache.conf <<'EOF'
40 Alias /%{name} %{_appdir}
41 <Directory %{_appdir}>
42         Allow from all
43         AddDefaultCharset utf-8
44 </Directory>
45 EOF
46 rm -f .htaccess
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
51 cp -a . $RPM_BUILD_ROOT%{_appdir}
52 rm -f $RPM_BUILD_ROOT%{_appdir}/apache.conf
53
54 install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
55 install apache.conf $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
56
57 %clean
58 rm -rf $RPM_BUILD_ROOT
59
60 %triggerin -- apache1 < 1.3.37-3, apache1-base
61 %webapp_register apache %{_webapp}
62
63 %triggerun -- apache1 < 1.3.37-3, apache1-base
64 %webapp_unregister apache %{_webapp}
65
66 %triggerin -- apache < 2.2.0, apache-base
67 %webapp_register httpd %{_webapp}
68
69 %triggerun -- apache < 2.2.0, apache-base
70 %webapp_unregister httpd %{_webapp}
71
72 %files
73 %defattr(644,root,root,755)
74 %doc license.txt readme.txt
75 %dir %attr(750,root,http) %{_sysconfdir}
76 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
77 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
78 %{_appdir}
This page took 0.116889 seconds and 3 git commands to generate.