Re: newbie help to simple RPM

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

 



On Mon, 1 Dec 2003, Thomas Elsgaard wrote:

> i would like to make a rpm that just extracts a .tar.gz file to a
> directory, but how should the spec look to do this ?

It sort of depends, but let's assume that

* the package will live in /opt/foo-1.0
* the source tarball is foo-1.0.tar.gz
* the source tarball will unpack itself into ./foo-1.0

If that's true, then its skeleton will look something like

  Name: foo
  Version: 1.0
  Source: %{name}-%{version}.tar.gz
  Prefix: /opt
  BuildRoot: %{_tmppath}/%{name}-%{version}-root
  [... other headers, %description go here ...]
  %install
  install -d %{buildroot}%{prefix}
  cd %{buildroot}%{prefix} && gzip -dc %{SOURCE0} | tar xf -
  [... %clean and any scriptlets go here ...]
  %files
  %{prefix}/%{name}-%{version}

--Paul Heinlein <heinlein@xxxxxxxxxxx>


_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux