ltib
[Top][All Lists]
Advanced

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

[Ltib] Can I add %{version} and %{release} to %Source's package name


From: Lv Terry-R65388
Subject: [Ltib] Can I add %{version} and %{release} to %Source's package name
Date: Tue, 8 Jan 2013 02:41:11 +0000

Hi experts,

        For some reason, we have to add kernel version to source name in ltib 
spec.

        For example:

%define pfx /opt/freescale/rootfs/%{_target_cpu}

Summary         : Interfaces for accessibility support
Name            : elftosb
Version         : 3.0.35
Release         : 13.01.00
License         : Free BSD
Vendor          : Freescale
Packager        : Frank Li
Group           : System Environment/Libraries
Source          : %{name}-%{version}-%{release}.tar.gz
BuildRoot       : %{_tmppath}/%{name}
Prefix          : %{pfx}
Autoreq         : no
Autoreqprov     : no
Autoprov        : no
%Description
%{summary}

%Prep
%setup
... ...

        At first, I tried to add the 3.0.35 and 13.01.00 to Version, that is 
"Version:     3.0.35-13.01.00" and found that "-" is not allowed in Version 
name.
        Then I tried to add 13.01.00 to Release, and found that %setup will not 
use %Release for package's directory name.

        What I want is to add 3.0.35 and 13.01.00 to %Source's package name and 
%setup can find the package directory and start building.

        Any suggestion for this case?
        
        Thanks a lot~~

Yours
Terry

reply via email to

[Prev in Thread] Current Thread [Next in Thread]