PDA

View Full Version : Help build Qemu-Launcher RPM



pfinet
23rd July 2007, 10:59 AM
Hi,
I am trying to create an RPM package for Qemu-Launcher 1.8.0-pre0.

I've just create successfully the RPM for Qemu-Launcher 1.7.4, but with the 1.8.0-pre0 version I have a problem because there is a "-pre0" suffix in the name of the source folder, and rpmbuild give me this error:

+ cd qemu-launcher-1.8.3
/var/tmp/rpm-tmp.87921: line 33: cd: qemu-launcher-1.8.3: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.87921 (%prep)

Here is my qemu-launcher-1.8.0-pre0.spec, what I need to change in order to make it work?

The name of the source archive is qemu-launcher_1.8.0-pre0.tar.gz
When it is extracted it creates a folder named qemu-launcher_1.8.0-pre0


Name: qemu-launcher
Version: 1.8.3
Release: pre0%{?dist}
Summary: Qemu Launcher is a Gtk front-end for the Qemu x86 PC emulator.

Group: Applications/Emulators
License: GPL
URL: http://projects.wanderings.us/qemu_launcher
Source0: http://download.gna.org/qemulaunch/1.8.x/qemu-launcher_1.8.0-pre0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

#BuildRequires:
Requires: perl >= 5.8.8 perl-Gtk2 >= 1.140 perl-Gtk2-GladeXML >= 1.006 perl-gettext >= 1.05 qemu >= 0.8.2

%description
Qemu Launcher is a Gtk front-end for the Qemu x86 PC emulator.
Qemu is a command line application so I wrote this so that Qemu is more accessible from the desktop.

%prep
%setup -q


%build


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README INSTALL TODO FAQ Changelog COPYING
/*


%changelog
* Mon Jul 23 2007 1.7.4%{?dist}
- Initial RPM

LocutusOfBorg
23rd July 2007, 12:59 PM
Try something like this


%define beta pre0
Name: qemu-launcher
Version: 1.8.3
Release: %{beta}%{?dist}
Source0: http://download.gna.org/qemulaunch/...8.0-pre0.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%prep
%setup -q -n %{name}-%{version}-%{beta}

pfinet
23rd July 2007, 01:20 PM
Perfect, it works!

Thanks! ;)