Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8891503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:45:48+00:00 2026-06-14T22:45:48+00:00

I am trying to create a .spec file, and I put ChangeLog, README, INSTALL,

  • 0

I am trying to create a .spec file, and I put ChangeLog, README, INSTALL, COPYING, NEWS, AUTHORS in the %doc directive right under the %file directive. The package tarname is recafoh-prealpha and the version is svn73. rpmbuild -ba recafoh.spec is saying

RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/share/doc/recafoh-prealpha/COPYING
   /usr/share/doc/recafoh-prealpha/ChangeLog
   /usr/share/doc/recafoh-prealpha/INSTALL
   /usr/share/doc/recafoh-prealpha/NEWS
   /usr/share/doc/recafoh-prealpha/README
   /usr/share/doc/recafoh-prealpha/TODO

But they are installed in BUILDROOT/usr/share/doc/recafoh-prealpha-svn73/{ChangeLog, README, INSTALL, COPYING, NEWS, AUTHORS}
and here is another strange thing:
README is also installed in BUILDROOT/usr/share/doc/recafoh-prealpha-svn73.

So, can anyone explain 1) how to solve the rpmbuild errors, and 2) why README is installed in recafoh-prealpha-svn73 and README and the rest are installed in recafoh-prealpha?

Thanks alot

EDIT:

Here is the relevant portion of the recafoh.spec file:

%files
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_sbindir}/recafohd
%{_bindir}/recafoh
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T22:45:49+00:00Added an answer on June 14, 2026 at 10:45 pm

    Per the Fedora Build Documentation: ‘Usually, “%doc” is used to list documentation files within %{_builddir} that were not copied to %{buildroot}. A README and INSTALL file is usually included. They will be placed in the directory /usr/share/doc/%{name}-%{version}, whose ownership does not need to be declared.’

    So the answer to both of your questions is related to this single point. I assume your bzip2 file has those docs in them, contained within the /usr/share/doc/recafoh-prealpha/ directory correct? So if you look at the documentation, this is the single most important point: Usually, “%doc” is used to list documentation files within %{_builddir} that were not copied to %{buildroot}.

    If you want them in that specific directory (and the version specific directory) modify your %file section to look like this:

    %files
    %doc AUTHORS ChangeLog COPYING NEWS README TODO
    /usr/share/doc/recafoh-prealpha/COPYING
    /usr/share/doc/recafoh-prealpha/ChangeLog
    /usr/share/doc/recafoh-prealpha/INSTALL
    /usr/share/doc/recafoh-prealpha/NEWS
    /usr/share/doc/recafoh-prealpha/README
    /usr/share/doc/recafoh-prealpha/TODO
    %{_sbindir}/recafohd
    %{_bindir}/recafoh
    

    If you only want them in /usr/share/doc use the following %files section:

    %files
    /usr/share/doc/recafoh-prealpha/COPYING
    /usr/share/doc/recafoh-prealpha/ChangeLog
    /usr/share/doc/recafoh-prealpha/INSTALL
    /usr/share/doc/recafoh-prealpha/NEWS
    /usr/share/doc/recafoh-prealpha/README
    /usr/share/doc/recafoh-prealpha/TODO
    %{_sbindir}/recafohd
    %{_bindir}/recafoh
    

    If you want to place the documentation only in the version specific directory, you should modify your bzip2 file so the documentation files are top level, then they should get moved properly with the spec file you originally provided.

    For a bit more detailed information specifically regarding the %doc directive, check out: rpm.org.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to create a fixed width flat file import spec in SSIS.
RSpec noob needs help. My brain is mush right now...I'm trying to create a
I am trying using the following code in my spec file, I am installing
I'm trying to create an RPM in Fedora 15 that will install my software,
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
I am trying create a delegate representation of constructor by emitting a Dynamic Method,
Ok so I am trying create a login script, here I am using PHP5
Trying to create a black line in my view to separate text blocks but
Trying to create a facebook app just to learn and coming across a strange
Trying to create a new Dedicated Cache Role in Windows Azure but get the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.