Mailinglist Archive: opensuse-packaging (57 mails)

< Previous Next >
Re: [opensuse-packaging] packaging made simple.
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Sat, 19 Aug 2006 13:00:37 +0200
  • Message-id: <20060819110036.GB4063@xxxxxxxxxxxxxxxxxxx>
On 2006-08-19 12:15:04 +0200, jdd wrote:
> Here the example spec file I received (thanks :-)
>
> I have questions. I noted them with "###"
>
> #
> # spec file for package makethumb (Version 0.1.01)
> #
> Name: makethumb
> Summary: makes web site for photos
> Version: 0.1
> Release: 1
> Group: Productivity/Graphics/Convertors
> License: GPL
> URL: http://www.dodin.net
> Source: %{name}-%{version}.tar.gz
>
> ###where are the % variables defined?
>
You defined them some lines above :)
Name: makethumb
Version: 0.1
...

"Name:", "Version:" etc. are special rpmtags.

> BuildRoot: %{_tmppath}/%{name}-%{version}-build
> Packager: jdd <jdd@xxxxxxxxx>
> BuildArch: noarch
> Requires: bash jhead
>
> ###makethum needs some image converter that are usually
> installed by default. it can choose two of them. Oh can I
> say that? it needs imagemagic OR cjpeg/djpeg + netpbm
>
hmm you can try:

Suggests: imagemagic
Suggests: cjpeg...

> %description
> Creates a web site with photos - index pages, three quality
> levels for images
>
> %prep
> %setup -q
>
> %install
> rm -rf %{buildroot}
>
Don't do that!
Your %{buildroot} will be "cleaned" before the build starts.. see %clean section.


Marcus
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References