diff options
author | Gerald Carter <jerry@samba.org> | 2003-09-02 20:02:45 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-09-02 20:02:45 +0000 |
commit | 04c0d440ff5be404184003a01ae524d26d82b7ae (patch) | |
tree | 8ca12d2ca1c3855c6514a653bef23c9f128cd594 /packaging/RedHat/samba.spec.tmpl | |
parent | 7d378e9a116e47facf1f5a7d696e680c458ae843 (diff) | |
download | samba-04c0d440ff5be404184003a01ae524d26d82b7ae.tar.gz samba-04c0d440ff5be404184003a01ae524d26d82b7ae.tar.bz2 samba-04c0d440ff5be404184003a01ae524d26d82b7ae.zip |
another round of changes for build on RedHat
(This used to be commit a8de1f41c9e8465a26d5ce19c5c08efda186e198)
Diffstat (limited to 'packaging/RedHat/samba.spec.tmpl')
-rw-r--r-- | packaging/RedHat/samba.spec.tmpl | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/packaging/RedHat/samba.spec.tmpl b/packaging/RedHat/samba.spec.tmpl index 234ae809fe..26e86aa61d 100644 --- a/packaging/RedHat/samba.spec.tmpl +++ b/packaging/RedHat/samba.spec.tmpl @@ -1,3 +1,6 @@ +## grab the major and minor version of rpm +%define rpm_version `rpm --version | awk '{print $3}' | awk -F. '{print $1$2}'` + Summary: Samba SMB client and server Name: samba Version: PVERSION @@ -19,14 +22,6 @@ Obsoletes: samba-common, samba-client, samba-swat BuildRoot: %{_tmppath}/%{name}-%{version}-root Prefix: /usr -# Working around perl dependency problem from docs -# 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 network file and print services to SMB/CIFS clients, including @@ -51,6 +46,19 @@ docs directory for implementation details. %setup %build + +# Working around perl dependency problem from docs +# Only > RH 8.0 seems to care here + +echo "rpm_version == %{rpm_version}" +if [ "%{rpm_version}" == "42" ]; then + %define __perl_requires %{SOURCE999} + echo "%{__perl_requires}" +elif [ "%{rpm_version}" == "41" ]; then + %define __find_requires %{SOURCE998} + echo "%{__find_requires}" +fi + ## Build main Samba source cd source |