]> git.pld-linux.org Git - packages/egroupware.git/commitdiff
- added apache config
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 25 Aug 2005 07:28:25 +0000 (07:28 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    egroupware.spec -> 1.5

egroupware.spec

index 57787ab1bb5e6ad55d8ef0a8cd349b028c47eaf9..31568ebaabdd967d0e20d231988836f77d33a602 100644 (file)
@@ -5,16 +5,18 @@ Summary:      eGroupWare - a web-based groupware suite written in PHP
 Summary(pl):   eGroupWAre - oparte na WWW oprogramowanie do pracy grupowej napisane w PHP
 Name:          egroupware
 Version:       1.0.0.009
-Release:       0.1
+Release:       0.4
 Epoch:         0
 License:       GPL
 Group:         Applications/WWW
 Source0:       http://dl.sourceforge.net/egroupware/eGroupWare-%{version}.tar.bz2
 # Source0-md5: 2ed2f3041ab4ff235f56ed23dfa7274b
+Source1:       %{name}.conf
 URL:           http://www.egroupware.org/
 Requires:      php >= 3:4.1.2
 Requires:      php-mysql
 Requires:      php-pgsql
+#Requires:     php(pgsql||mysql) <- that would be neat
 Requires:      php-pcre
 Requires:      php-gd
 Requires:      php-mbstring
@@ -22,6 +24,7 @@ BuildArch:    noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _appdir %{_datadir}/%{name}
+%define                _sysconfdir /etc/%{name}
 
 %description
 eGroupWare is a multi-user, web-based groupware suite developed on a
@@ -50,7 +53,7 @@ rm -rf doc/rpm-build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_appdir}
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}
 
 cp -a *.php $RPM_BUILD_ROOT%{_appdir}
 cp -a addressbook admin backup bookmarks calendar comic developer_tools \
@@ -59,10 +62,26 @@ infolog jinn manual messenger news_admin phpbrain phpgwapi phpldapadmin \
 phpsysinfo polls preferences projects registration setup sitemgr stocks tts \
 wiki $RPM_BUILD_ROOT%{_appdir}
 
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%triggerin -- apache1 >= 1.3.33-2
+%apache_config_install -v 1 -c %{_sysconfdir}/apache.conf
+
+%triggerun -- apache1 >= 1.3.33-2
+%apache_config_uninstall -v 1
+
+%triggerin -- apache >= 2.0.0
+%apache_config_install -v 2 -c %{_sysconfdir}/apache.conf
+
+%triggerun -- apache >= 2.0.0
+%apache_config_uninstall -v 2
+
 %files
 %defattr(644,root,root,755)
+%attr(710,root,http) %dir %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
 %doc doc/*
 %{_appdir}
This page took 0.098109 seconds and 4 git commands to generate.