diff --git a/contrib/gosa.spec b/contrib/gosa.spec
index f871fc452ee7bd67feb6a8c1bf0857a1344fd45c..be4ef3994a836a90072824de89ef271bfc210092 100644 (file)
--- a/contrib/gosa.spec
+++ b/contrib/gosa.spec
#
Summary: Web Based LDAP Administration Program
Name: gosa
-Version: 2.5.9.99
+Version: 2.5.11a
Release: 1
License: GPL
-Source: ftp://oss.GONICUS.de/pub/gosa/%{sourcename}.tar.bz2
-URL: http://oss.GONICUS.de/project/?group_id=6
+Source: http://oss.gonicus.de/pub/gosa/%{sourcename}.tar.bz2
+URL: http://www.gosa-project.org
Group: System/Administration
Vendor: GONICUS GmbH
Packager: Lars Scheiter <lars.scheiter@GONICUS.de>
Buildarch: noarch
%if %{suse}
-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,perl-Crypt-SmbHash
+Requires: apache2,apache2-mod_php5 >= 5.2.0,php5,php5-gd,php5-ldap,php5-mcrypt,php5-mysql,php5-imap,php5-iconv,php5-mbstring,php5-gettext,php5-mhash,php5-snmp,php5-posix,fping,ImageMagick
%else
-Requires: httpd,php,php-ldap,php-imap,php-snmp,php-mysql,php-mbstring,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
Group: System/Administration
Summary: Schema Definitions for the GOSA package
%if %{suse}
-Requires: openldap2 >= 2.1.22
+Requires: openldap2 >= 2.2.0
%else
Requires: openldap-servers >= 2.2.0
%endif
Obsoletes: gosa-ldap
%description schema
-Contains the Schema definition files for the GOSA admin package.
+Contains the Schema definition files for the GOSA admin package. This one is needed
+on the master LDAP and all slave LDAP Servers.
+
+%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
mkdir -p %{buildroot}/usr/share/gosa
# Copy
-DIRS="doc ihtml plugins html include locale"
+DIRS="doc ihtml plugins html include setup locale"
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}/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
+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
#rm -rf %{buildroot}/usr/share/gosa/doc
#rmdir contrib/openldap
bzip2 -9 contrib/opensides/goSamba.pl
+cp contrib/encodings %{buildroot}/etc/gosa
%clean
rm -rf %{buildroot}
%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/setup
%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/html
%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/ihtml
%attr(0744, %{apacheuser}, %{apachegroup}) /usr/share/gosa/include
%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
/usr/share/gosa/doc/guide/user/nl
%changelog
+* Tue Jun 12 2007 Lars Scheiter <lars.scheiter@GONICUS.de> 2.5.11a
+- New upstream
+- Added encodings file
+- Added SuSE dependency for needed php5 >= 5.2.0, and modules
+- Fixed URLs to GOsa packages and homepage
+
+* Wed May 16 2007 Lars Scheiter <lars.scheiter@GONICUS.de> 2.5.11
+- New upstream
+- Added new setup
+
+* Wed Apr 11 2007 Lars Scheiter <lars.scheiter@GONICUS.de> 2.5.10
+- New upstream
+- Added new subpackage mkntpasswd
+- Remove perl dependencies off of GOsa main package
+
* Tue Mar 6 2007 Lars Scheiter <lars.scheiter@GONICUS.de> 2.5.9
- New upstream
- fixed typo in updateprocess