RPM Question



Ref: RPM Build

Is there a way to specify the directory rather than RPM simply looking for it
example:

Spec File:

%define name Lomega
%define version 0.1
%define release 1
%define prefix /usr
Summary : Lomega is a program for maintaining your Iomega disks under Linux.
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: GPL
Group: Applications/File
Source: %{name}-%{version}-%{release}.tar.bz2
BuildRoot: /var/tmp/%{name}-buildroot
Prefix: %{prefix}
Docdir: %{prefix}/doc

%description
 Lomega is a program for maintaining your Iomega disks under Linux, similar in functionality to Iomega's IomegaWare Tools. It allows the user to mount and umount disks easily and also features the ability to change the protection status of a disk. Lomega  supports compressed file backup's to supported Iomega drives. Lomega is covered under the open source, free GNU GPL. 

%prep
 rm -rf $RPM_BUILD_ROOT

%setup
 ./configure

%build
 make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

%install
make prefix=$RPM_BUILD_ROOT%{prefix} install
chmod +s $RPM_BUILD_ROOT%{prefix}/bin/lomega

%clean
 rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/*

%files
%defattr (-,root,root)
%doc README COPYING ChangeLog NEWS lomega-help
/usr/bin/lomega
/usr/share/Lomega-0.1/pixmaps/back.xpm
/usr/share/Lomega-0.1/pixmaps/info.xpm
/usr/share/Lomega-0.1/pixmaps/lock.xpm
/usr/share/Lomega-0.1/pixmaps/logo.xpm
/usr/share/Lomega-0.1/pixmaps/ulock.xpm
/usr/share/Lomega-0.1/pixmaps/zipeject.xpm
/usr/share/Lomega-0.1/pixmaps/zipm.xpm
/usr/share/Lomega-0.1/pixmaps/zipu.xpm

%changelog
 

RPM will look for the directory Lomega-0.1 but if the source tar bz2 has a path
say /working/projects/Lomega-0.1 then it fails to build. Is there a hard fast
rule that the path be relative?

Thanks it's late and the one brain cell left just failed!

-- 
Visionary : John Hawk 
Email:john.hawk@gte.net  GPL Developer
Latest Project:	http://visionary-hawk.webjump.com




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