sa 3.3 problem with spec file?

2009-12-15 Thread Kai Schaetzl
I just built and make tested the beta of SA 3.3 with good success and 
wanted to build the rpm from it now. I get an error:
 error: line 38: Illegal char '-' in version: Version: 3.3.0-beta1

Seems that Version: %{version} doesn't like hyphens.
What's the best way to overcome this? Change to _ for instance?

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com





Re: sa 3.3 problem with spec file?

2009-12-15 Thread Daniel J McDonald
On Tue, 2009-12-15 at 14:21 +0100, Kai Schaetzl wrote:
 I just built and make tested the beta of SA 3.3 with good success and 
 wanted to build the rpm from it now. I get an error:
  error: line 38: Illegal char '-' in version: Version: 3.3.0-beta1
 
 Seems that Version: %{version} doesn't like hyphens.

or alpha characters of any sort.
 What's the best way to overcome this? Change to _ for instance?

No, you have to convince it that everything is numeric.  Here's what I
did in a similar situation:
%define beta p1
Summary:The ISC DHCP (Dynamic Host Configuration Protocol)
server/relay 
agent/client
Name:   dhcp
Epoch:  2
Version:3.1.2
Release:%mkrel 1
License:Distributable
Group:  System/Servers
URL:http://www.isc.org/dhcp.html
Source0:ftp://ftp.isc.org/isc/%{name}/%{name}-%{version}%{beta}.tar.gz
Source1:
ftp://ftp.isc.org/isc/%{name}/%{name}-%{version}%{beta}.tar.gz.asc

 
 Kai
 


-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281, CNX
www.austinenergy.com


Re: sa 3.3 problem with spec file?

2009-12-15 Thread Kai Schaetzl
Daniel J McDonald wrote on Tue, 15 Dec 2009 07:57:58 -0600:

 or alpha characters of any sort.

Yeah, found this out a few minutes later. Removed that alltogether and 
built with %define real_version 3.3.0 which gives me an rpm with 1 as the 
release version. Upping this with --define 'release=n' seems to be the 
correct way to continue with future packages then ???

Kai

-- 
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com