From 2ee8b397c9b56c7cd9691513a900a8747892a38f Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 6 Aug 2008 18:11:19 +0000 Subject: [PATCH] Workaround to get the right release version in /usr/sbin/smbd -V The other packages Release: variables were overwriting %{release} so that we got the wrong info in there. --- samba.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/samba.spec b/samba.spec index 5942b93..bf9b9eb 100644 --- a/samba.spec +++ b/samba.spec @@ -3,11 +3,13 @@ %define tdb_version 1.1.1 %define talloc_version 1.2.0 +%define samba_release 0.%{main_release}%{?dist} + Summary: The Samba Suite of programs Name: samba Epoch: 0 Version: 3.2.1 -Release: 0.%{main_release}%{?dist} +Release: %{samba_release} License: GPLv3+ and LGPLv3+ Group: System Environment/Daemons URL: http://www.samba.org/ @@ -252,7 +254,7 @@ cp %{SOURCE11} packaging/Fedora/ #%patch200 -p0 -b .inotify # FIXME: does not compile mv source/VERSION source/VERSION.orig -sed -e 's/SAMBA_VERSION_VENDOR_SUFFIX=$/&\"%{release}\"/' < source/VERSION.orig > source/VERSION +sed -e 's/SAMBA_VERSION_VENDOR_SUFFIX=$/&\"%{samba_release}\"/' < source/VERSION.orig > source/VERSION cd source script/mkversion.sh cd ..