Changes between Version 20 and Version 21 of RpmHowToPackagers


Ignore:
Timestamp:
Sep 10, 2011, 12:48:07 PM (13 years ago)
Author:
Yuri Dario
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RpmHowToPackagers

    v20 v21  
    4040
    4141If you need to extract more source files, use the ''-a'' parameter.
     42
     43{{{
     44%prep
     45# -D Do not delete the directory before unpacking.
     46# -T Disable the automatic unpacking of the archives.
     47%setup -q -n %{name}-%{srcver} %{?with_int_bdb:-a 1} -a 2
     48}}}
     49
     50If your files are packed in the root directory of the zip file, use -c to tell rpmbuild to create a new directory using %{name}-%{version} scheme and to put files there (preserving zip directory layout):
     51
     52{{{
     53%prep
     54%setup -q -c
     55}}}
    4256
    4357To apply first patch add ''patch0 -p1 -b .my_suffix''; the second will use ''patch1...'' and so on.