diff options
author | Gerald Carter <jerry@samba.org> | 2003-09-02 03:34:44 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-09-02 03:34:44 +0000 |
commit | 86cd0cd081a6893f663c30d5a1bedb10e9f24f77 (patch) | |
tree | b924d268805fd8bcc5eb6590dfb64aa772f0a728 /packaging/RedHat/samba.spec.tmpl | |
parent | ea7b4b6c320d2c5aaaa9d67ba6794bb566cb5c56 (diff) | |
download | samba-86cd0cd081a6893f663c30d5a1bedb10e9f24f77.tar.gz samba-86cd0cd081a6893f663c30d5a1bedb10e9f24f77.tar.bz2 samba-86cd0cd081a6893f663c30d5a1bedb10e9f24f77.zip |
I think this will gracefully get around issues between different rpm
versions. Particularly the long standing problem with Net::LDAP
dependencies in examples/LDAP. I'll build new packages tomorrow
as the final test.
(This used to be commit cca0f603506b2e3c20eff5e1dd235354363d7a86)
Diffstat (limited to 'packaging/RedHat/samba.spec.tmpl')
-rw-r--r-- | packaging/RedHat/samba.spec.tmpl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packaging/RedHat/samba.spec.tmpl b/packaging/RedHat/samba.spec.tmpl index 9b071d5914..234ae809fe 100644 --- a/packaging/RedHat/samba.spec.tmpl +++ b/packaging/RedHat/samba.spec.tmpl @@ -7,7 +7,9 @@ Group: Networking Source: http://download.samba.org/samba/ftp/samba-%{version}.tar.bz2 # Don't depend on Net::LDAP -Source999: filter-requires-samba.sh +# one filter for RH 8 and one for 9 +Source998: filter-requires-samba_rh8.sh +Source999: filter-requires-samba_rh9.sh Packager: Gerald Carter [Samba-Team] <jerry@samba.org> Requires: pam >= 0.72 kernel >= 2.2.1 glibc >= 2.1.2 @@ -18,7 +20,12 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root Prefix: /usr # Working around perl dependency problem from docs -%define REQUIRES_MACRO %{SOURCE999} +# Only > RH 8.0 seems to care here +%if "%{rpm_version}" == "4.2" + %define __perl_requires %{SOURCE998} +%else if "%{rpm_version}" == "4.1" + %define __find_requires %{SOURCE999} +%endif %description Samba provides an SMB/CIFS server which can be used to provide |