RE: How do I get a version with a '-' to pass spec file syntax?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mar 31, 2005 17:46:58 -0700, Brian Auld wrote:
>  I'm about to pull some hair out here.  I put a simple spec file
together
>  so I could continue my trend of managing all software I install on my
>  system using rpms.  I'm trying to put together the spec file for the
>  package ltt-0.9.6.-pre4.tar.bz2 (The linux trace toolkit).

My (ab)normal way of dealing with these has been to put the pre (or beta
or alpha or ...) information in the release field.  Some versions of RPM
allow you to do this directly (e.g. Version: 1.2.3 Release:pre4 is less
than Version:1.2.3 Release:1).  Others may require that you do some
manipulation such as prefacing it with "0." as is recommended in the
Fedora Package Naming Guidelines.  The package name would be either
ltt-0.9.6-pre4 or ltt-0.9.6-0.pre4.

>  I keep getting an error "error: line 19: Illegal char '-' in version:

>  Version: 0.9.6-pre4" when I run an rpmbuild command on my spec file.
Am
>  I missing something obvious here.  I can't seem to get version
numbers
>  with hyphens to work.  
>
>  I've tried all sorts of permutations and combinations of separating
the
>  %{version} and %{subversion} macros, and no matter what I do, it
fails
>  on the '-'.  I'd like to keep the versioning consistent with the
source
>  package - please HELP!!! 
>  
>  
>  My spec file looks something like this: 
>  
>  Summary: LTT trace toolkit user space tools
>  #%define version 0.9.6-pre4
>  %define version 0.9.6
>  %define subversion pre4
>  Name: ltt-tools
>  Prefix: /usr
>  Provides: ltt-tools
>  
>  Group: Development/Languages
>  License: GPL

Change Release to pre4 or 0.pre4.n Where n is the actual build number
>  Release: 1
>  Source: ltt-%{version}-%{subversion}.tar.bz2

Change Version to just %{version}
>  Version: %{version}-%{subversion}
>  BuildRoot: /tmp/lttrpm
>  
>  %description
>  ...

Good Luck

--
The secret is to bang the rocks together.

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux