Le Vendredi 01 Avril 2005 02:46, Brian Auld a écrit : > 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). > > 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 > Release: 1 > Source: ltt-%{version}-%{subversion}.tar.bz2 > Version: %{version}-%{subversion} Humm... Version and version are the same thing. Try: %define vers 0.9.6 %define subversion pre4 Version: %{vers}-%{subversion} > BuildRoot: /tmp/lttrpm > > %description > ... > > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/rpm-list _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list