Re: rpm building and hyphens in Version tags

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



>Ok Special Attention here:
>
>Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
>rpmlib(PayloadFilesHavePrefix) <= 4.0-1
>Checking for unpackaged
>file(s): /usr/lib/rpm/check-files /var/tmp/inotify-tools-3.13-3.el5-root-ethan
>Wrote: /home/ethan/rpmbuild/SRPMS/inotify-tools-3.13-3.el5.src.rpm
>Wrote: /home/ethan/rpmbuild/RPMS/i386/inotify-tools-3.13-3.el5.i386.rpm
>Wrote: /home/ethan/rpmbuild/RPMS/i386/inotify-tools-devel-3.13-3.el5.i386.rpm
>Wrote: /home/ethan/rpmbuild/RPMS/i386/inotify-tools-debuginfo-3.13-3.el5.i386.rpm
>############################################################################
>inotify-tools/spec 
>############################################################################
>Name:           inotify-tools
>Version:        3.13
>Release:        3%{?dist}    ## Here is you wanted `-`... ##
>Summary:        Command line utilities for inotify
>
>Release: pre4%{?dist}

That's not quit working as expected, my tarball is specifically named
sarg-2.3-pre4.tar.gz and so when rpmbuild extracts it, it creates a
'sarg-2.3-pre4' dir and it expects to cd into it.

The release tag only comes into play with the final rpm naming.

rpm.org suggests in another doc that if epoch is defined, then you cant
use hyphens, buts that's not obviously the case...

I am sure there is a better way to do this, but to get it into the
correct directory, I used:
%setup -n sarg-2.3-pre4

To control the final rpm name, I could use _build_name_fmt but
I don't know all the ramifications of this one yet, so I let
it name just sarg-2.3-1.

Hopefully I stumble across the right way...

Thanks for helping!
jlc
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux