ltib
[Top][All Lists]
Advanced

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

[Ltib] New package fails to find .spec file?


From: Lysle Shields
Subject: [Ltib] New package fails to find .spec file?
Date: Tue, 1 Dec 2009 20:34:09 -0600

I'm trying to add a new library package called swim.  I have followed the
steps on http://ltib.org/documentation-LtibFaq under section "How can I add
a completely new package to the root filesystem"  

In step two, it says to move the tar ball to /opt/freescale/pkgs.  Instead,
I put it in /opt/ltib/pkgs, is this incorrect?

When doing the command "./ltib -m prep -p swim" it won't work unless .spec
is added to end, such as "./ltib -m prep -p swim.spec"

Compiling, same thing, requires "./ltib -p swim.spec".  Other than that, it
seems to compile fine.  However, when it tries to do install, it seems to
not know what DESTDIR is in the Makefile even though the .spec file has a
DESTDIR= declaration.

The following is the spec file:
<<<
%define pfx /opt/freescale/rootfs/%{_target_cpu}
%define __os_install_post %{nil}

Summary         : SWIM Graphical Library
Name            : swim
Version         : 1.0
Release         : 1
License         : GPL
Vendor          : NXP
Packager        : Lysle E. Shields
Group           : Development/Libraries
URL             : http://www.nxp.com
Source          : swim-%{version}.tar.gz
BuildRoot       : %{_tmppath}/%{name}
Prefix          : %{pfx}

%Description
%{summary}

%Prep
%setup 

%Build
make prefix=%{_prefix}

%Install
rm -rf $RPM_BUILD_ROOT
make install prefix=%{_prefix} DESTDIR=$RPM_BUILD_ROOT/%{pfx}

%Clean
rm -rf $RPM_BUILD_ROOT

%Files
%defattr(-,root,root)
%{pfx}/*
>>>

Suggestions?






reply via email to

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