X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=contrib%2Fgosa.spec;h=f3c69c21b5be0b176fc6af108ec923b9d70075fe;hb=e9debc7eb2039d153ade7b0b2b5f50ba51610631;hp=6e075217505afd162e0b950bf0386a5438197e8d;hpb=e299f0ca47a924516f2afbe4e922f2418b75315c;p=gosa.git diff --git a/contrib/gosa.spec b/contrib/gosa.spec index 6e0752175..f3c69c21b 100644 --- a/contrib/gosa.spec +++ b/contrib/gosa.spec @@ -1,4 +1,4 @@ -# Some sort auf "detection" of suse +# Some sort of "detection" of suse %{?suse_version:%define suse 1} %{!?suse_version:%define suse 0} @@ -11,19 +11,19 @@ # Summary: Web Based LDAP Administration Program Name: gosa -Version: 2.3 +Version: 2.5.99cvs Release: 1 License: GPL -Source: ftp://oss.GONICUS.de/pub/gosa/beta/%{sourcename}.tar.bz2 -URL: http://oss.gonicus.de/project/?group_id=6 +Source: ftp://oss.GONICUS.de/pub/gosa/%{sourcename}.tar.bz2 +URL: http://oss.GONICUS.de/project/?group_id=6 Group: System/Administration Vendor: GONICUS GmbH Packager: Lars Scheiter Buildarch: noarch %if %{suse} -Requires: apache2,php4,php4-gd,php4-ldap,php4-mcrypt,php4-imap,ImageMagick,perl-Crypt-SmbHash +Requires: apache2,apache2-mod_php4,php4,php4-gd,php4-ldap,php4-mcrypt,php4-mysql,php4-imap,php4-iconv,php4-mbstring,php4-gettext,php4-session,ImageMagick %else -Requires: php,php-ldap,perl-Crypt-SmbHash >= 0.02,ImageMagick +Requires: httpd,php,php-ldap,php-imap,php-snmp,php-mysql,php-mbstring,ImageMagick %endif BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch @@ -31,13 +31,17 @@ BuildArch: noarch %define confdir /etc/%{name} %if %{suse} + %{echo:Building SuSE rpm} %define apacheuser wwwrun %define apachegroup root %define webconf /etc/apache2/conf.d/ + %define docdir /usr/share/doc/packages/gosa %else + %{echo:Building other rpm} %define apacheuser apache %define apachegroup apache %define webconf /etc/httpd/conf.d/ + %define docdir /usr/share/doc/gosa-%{version} %endif %description @@ -51,32 +55,102 @@ and can write user adapted sieve scripts. Group: System/Administration Summary: Schema Definitions for the GOSA package %if %{suse} -Requires: openldap2 >= 2.0.27 +Requires: openldap2 >= 2.1.22 %else -Requires: openldap >= 2.0.27 +Requires: openldap-servers >= 2.2.0 %endif Obsoletes: gosa-ldap %description schema Contains the Schema definition files for the GOSA admin package. +%package mkntpasswd +Group: System/Administration +Summary: Schema Definitions for the GOSA package +%if %{suse} +Requires: perl-Crypt-SmbHash +%else +Requires: perl-Crypt-SmbHash >= 0.02 +%endif + +%description mkntpasswd +Wrapper Script around perl to create Samba Hashes on the fly, added for completeness only. +If in doubt use sambas "native" mkntpwd tool to generate hashes for GOsa. + +%package help-en +Group: System/Administration +Summary: English online manual for GOSA package +Requires: gosa >= %{version} + +%description help-en +English online manual page for GOSA package + +%package help-de +Group: System/Administration +Summary: German localized online manual for GOSA package +Requires: gosa >= %{version} + +%description help-de +German localized online manual page for GOSA package + +%package help-fr +Group: System/Administration +Summary: French localized online manual for GOSA package +Requires: gosa >= %{version} + +%description help-fr +French localized online manual page for GOSA package + +%package help-nl +Group: System/Administration +Summary: Dutch localized online manual for GOSA package +Requires: gosa >= %{version} + +%description help-nl +Dutch localized online manual page for GOSA 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 -DIRS="doc ihtml plugins html include locale" - +# Copy +DIRS="doc ihtml plugins html include locale setup" for i in $DIRS; do \ cp -ua $i %{buildroot}/usr/share/gosa/$i ; \ done +mkdir %{buildroot}/usr/bin +cp bin/mkntpasswd %{buildroot}/usr/bin/ + +# Create files for temporary stuff +for i in compile config cache; do \ + mkdir -p %{buildroot}/var/spool/gosa/$i ; \ +done + +# Cleanup manual dirs +for i in admin devel; do \ + rm -rf %{buildroot}/usr/share/gosa/doc/guide/$i ; \ +done + +# Remove (some) unneeded files +for i in gen_locale.sh gen_online_help.sh gen_function_list.php update.sh; do \ + rm -rf %{buildroot}/usr/share/gosa/$i ; \ +done + +# Cleanup lyx warnings +find %{buildroot}/usr/share/gosa -name WARNINGS |xargs rm + + +# Cleanup guide +rm -rf %{buildroot}/usr/share/gosa/doc/guide/user/*/lyx-source + -mkdir -p %{buildroot}/var/spool/gosa # Copy default config mkdir -p %{buildroot}%{confdir} mkdir -p %{buildroot}%{webconf} @@ -95,27 +169,127 @@ 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", "%{docdir}/"%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 -f %{buildroot}/usr/share/gosa/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 +bzip2 -9 contrib/opensides/goSamba.pl %clean rm -rf %{buildroot} +%post +# Add shells file to /etc/gosa +/bin/cp /etc/shells /etc/gosa + +%pre +# Cleanup compile dir on updates, always exit cleanly even on errors +[ -d /var/spool/gosa ] && rm -rf /var/spool/gosa/* ; exit 0 + +%postun +# Remove temporary files, just to be sure +[ -d /var/spool/gosa ] && rm -rf /var/spool/gosa/* ; exit 0 + %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.safemode Changelog COPYING INSTALL FAQ +%doc %attr(-,root,root) contrib/altlinux contrib/fix_config.sh contrib/gosa.conf contrib/mysql contrib/opensides +%doc %attr(-,root,root) contrib/patches contrib/scripts contrib/vacation_example.txt contrib/demo.ldif contrib/openldap -%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 +%attr(0700, %{apacheuser}, %{apachegroup}) /var/spool/gosa +%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/html +%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/ihtml +%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/include +%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/locale +%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/setup +%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/plugins +%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/doc/guide.xml %files schema %defattr(-,root,root) -%doc COPYING AUTHORS README contrib/iplanet contrib/demo.ldif contrib/openldap/slapd.conf +%doc COPYING AUTHORS README contrib/demo.ldif contrib/openldap /etc/openldap/schema/gosa +%files mkntpasswd +%defattr(-,root,root) +/usr/bin/mkntpasswd + +%files help-en +%defattr(-,root,root) +/usr/share/gosa/doc/guide/user/en + +%files help-de +%defattr(-,root,root) +/usr/share/gosa/doc/guide/user/de + +%files help-fr +%defattr(-,root,root) +/usr/share/gosa/doc/guide/user/fr + +%files help-nl +%defattr(-,root,root) +/usr/share/gosa/doc/guide/user/nl + %changelog +* Mon May 7 2007 Lars Scheiter 2.5.99cvs +- Changed packageversion to reflect CVS status of resulting build + +* Wed Apr 11 2007 Lars Scheiter 2.5.10 +- New upstream +- Added new subpackage mkntpasswd +- Remove perl dependencies off of GOsa main package + +* Tue Mar 6 2007 Lars Scheiter 2.5.9 +- New upstream +- fixed typo in updateprocess + +* Mon Jan 15 2007 Lars Scheiter 2.5.8 +- New upstream release with security fixes + +* Wed Dec 20 2006 Lars Scheiter 2.5.7 +- New upstream +- %pre and %postun always end successfully now, even on errors + +* Fri Nov 17 2006 Lars Scheiter 2.5.6 +- New upstream +- Cleanup temporary dir after package removal +- Cleanup temporary dir before update + +* Thu Sep 28 2006 Lars Scheiter 2.5.4 +- New upstream version +- Downgraded SuSE dependencies to php4 + +* Wed Jun 21 2006 Lars Scheiter 2.5.1 +- New upstream version + +* Tue May 30 2006 Lars Scheiter 2.5 +- Updated RedHat dependencies +- New upstream version +- Spelling errors fixed ;) +- Seperation of online manual + +* Mon Dec 19 2005 Lars Scheiter 2.4-2 +- Updated SuSE dependencies to php5 + +* Mon Nov 21 2005 Lars Scheiter 2.4 +- New upstream version +- Removed %doc for postgresql and openexchange + +* Wed Jun 01 2005 Lars Scheiter 2.4beta1 +- New upstream version +- Added gosa.conf to contrib dir +- Rearranged documentation stuff +- Updated dependencies +- compress some files + * Mon Feb 21 2005 Lars Scheiter 2.3 - Update version to 2.3 (upstream)