From 413e8125e9f771e634c6c4e12971cd76d421caf9 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 21 Nov 2005 10:29:21 +0000 Subject: Major overhaul: - drop the bogus email address calculation (it didn't work on NIS or LDAP clients anyways), hardcode fetchmail-devel mailing list at lists.berlios.de - add some magic so that RPMs can be built from -rc versions (or other versions that contain a MINUS character) - drop --enable-inet6, no longer needed and no longer supported svn path=/trunk/; revision=4471 --- specgen.sh | 34 ++++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 10 deletions(-) (limited to 'specgen.sh') diff --git a/specgen.sh b/specgen.sh index ea9eff05..fef5e41e 100755 --- a/specgen.sh +++ b/specgen.sh @@ -1,10 +1,24 @@ #!/bin/sh -user=${FM_USER:=`whoami`} -name=${FM_NAME:=`grep "^${user}:" /etc/passwd | cut -d: -f5|sed -e 's/^.*,//'`} -domain=${FM_DOMAIN:=mail.berlios.de} -email="$user@$domain" -packager="$name <$email>" +version="$1" + +set -e + +if [ -z "$version" ] ; then + echo >&2 "Usage: $0 " + exit 1 +fi + +email="fetchmail-devel@lists.berlios.de" +packager="Fetchmail Developers <$email>" +rpmver=`echo "$version" | sed 's/-/./g'` +if test $rpmver = $version ; then + vervar="%{version}" + setupargs= +else + vervar="${version}" + setupargs="-n %{name}-${vervar}" +fi LANG=C LC_TIME=C @@ -17,12 +31,12 @@ cat < ${version} +* `date '+%a %b %d %Y'` <$email> ${rpmver} - See the project NEWS file for recent changes. EOF -- cgit v1.2.3