From 86bb9b362f74f5f3c0302815aae721f129b04a21 Mon Sep 17 00:00:00 2001 From: scheiter Date: Thu, 26 May 2005 09:08:38 +0000 Subject: [PATCH] On the road for updated RPM packages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@460 594d385d-05f5-0310-b6e9-bd551577e9d8 --- contrib/gosa.spec | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/contrib/gosa.spec b/contrib/gosa.spec index 6e0752175..11052d7e4 100644 --- a/contrib/gosa.spec +++ b/contrib/gosa.spec @@ -11,7 +11,7 @@ # Summary: Web Based LDAP Administration Program Name: gosa -Version: 2.3 +Version: 2.4 Release: 1 License: GPL Source: ftp://oss.GONICUS.de/pub/gosa/beta/%{sourcename}.tar.bz2 @@ -31,10 +31,12 @@ BuildArch: noarch %define confdir /etc/%{name} %if %{suse} + %{echo:Building SuSE rpm} %define apacheuser wwwrun %define apachegroup root %define webconf /etc/apache2/conf.d/ %else + %{echo:Building other rpm} %define apacheuser apache %define apachegroup apache %define webconf /etc/httpd/conf.d/ @@ -60,12 +62,14 @@ Obsoletes: gosa-ldap %description schema Contains the Schema definition files for the GOSA admin package. + %prep %setup -q -n %{sourcename} find . -depth -name CVS -type d | xargs rm -rf %build + %install # Create buildroot mkdir -p %{buildroot}/usr/share/gosa @@ -95,27 +99,46 @@ EOF mkdir -p %{buildroot}/etc/openldap/schema/gosa mv contrib/openldap/*.schema %{buildroot}/etc/openldap/schema/gosa +sed 's%"CONFIG_TEMPLATE_DIR", "../contrib/"%"CONFIG_TEMPLATE_DIR", "/usr/share/doc/gosa-%{version}/"%g' %{buildroot}/usr/share/gosa/include/functions.inc > %{buildroot}/usr/share/gosa/include/functions.inc.new +mv -f %{buildroot}/usr/share/gosa/include/functions.inc.new %{buildroot}/usr/share/gosa/include/functions.inc +mv -f doc manual +mkdir -p %{buildroot}/etc/gosa/vacation +mv plugins/personal/mail/sieve-*.txt %{buildroot}/etc/gosa +mkdir -p %{buildroot}/usr/share/doc/gosa-%{version} +rm -rf %{buildroot}/usr/share/gosa/contrib +rm -rf %{buildroot}/usr/share/gosa/doc #rmdir contrib/openldap %clean rm -rf %{buildroot} +%post +# Add shells file to /etc/gosa +/bin/cp /etc/shells /etc/gosa + %files %defattr(-,%{apacheuser},%{apachegroup}) -%doc %attr(-,root,root) AUTHORS TODO README Changelog COPYING INSTALL FAQ -%doc %attr(-,root,root) contrib/gosa.conf contrib/scripts contrib/patches -%doc %attr(-,root,root) contrib/fix_config.sh contrib/vacation_example.txt +%doc %attr(-,root,root) AUTHORS TODO README README.openxchange README.safemode Changelog COPYING INSTALL FAQ +%doc %attr(-,root,root) manual +%doc %attr(-,root,root) contrib/altlinux contrib/fix_config.sh contrib/gosa.conf contrib/mysql contrib/opensides +%doc %attr(-,root,root) contrib/patches contrib/postgresql contrib/scripts contrib/vacation_example.txt -%config(noreplace) %attr(0640,%{apacheuser},%{apachegroup}) %{webconf}/gosa_include.conf -%dir %attr(0750, %{apacheuser}, %{apachegroup}) /var/spool/gosa -%attr(-, %{apacheuser}, %{apachegroup}) /usr/share/gosa +%config(noreplace) %attr(0600,%{apacheuser},%{apachegroup}) %{webconf}/gosa_include.conf +%config(noreplace) %attr(0700,%{apacheuser},%{apachegroup}) /etc/gosa +%dir %attr(0700, %{apacheuser}, %{apachegroup}) /var/spool/gosa +%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa %files schema %defattr(-,root,root) -%doc COPYING AUTHORS README contrib/iplanet contrib/demo.ldif contrib/openldap/slapd.conf +%doc COPYING AUTHORS README contrib/iplanet contrib/demo.ldif contrib/openldap /etc/openldap/schema/gosa %changelog +* Mon May 24 2005 Lars Scheiter 2.4 +- New upstream version +- Added gosa.conf to contrib dir +- Rearranged documentation stuff + * Mon Feb 21 2005 Lars Scheiter 2.3 - Update version to 2.3 (upstream) -- 2.30.2