Add a file in a package

Paul Howarth paul at city-fan.org
Thu Dec 15 15:49:22 UTC 2005


Alain PORTAL wrote:
> I need to add a "README.Fedora" file (as SOURCE1) in docdir.
> How can I do that ?

One way:

Source1: README.Fedora

%prep
%setup ...
# Copy README.Fedora into extracted tarball directory
%{__cp} -p %{SOURCE1} .

%files
%defattr(...
%doc README.Fedora

Paul.




More information about the fedora-extras-list mailing list