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 6333777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:31:43+00:00 2026-05-24T18:31:43+00:00

When creating a spec file, what is the proper procedure for creating an additional

  • 0

When creating a spec file, what is the proper procedure for creating an additional text doc file to be installed by the RPM, when that text file is not part of the original source?

For example, if the current %doc line includes the following files that are in the source:

%doc FEATURES KNOWNBUGS LICENSE README RELEASE_NOTES

and I want the spec file to create a README_FOO that will be written in the same docs directory (which contains package-specific configuration instructions), what’s the proper way to do it?

I know I can create a text file in the %install section of the spec file with:

echo 'README_FOO contents go here
' > "$RPM_BUILD_ROOT"/README_FOO

but I’m not sure of the correct path to use after $RPM_BUILD_ROOT, or how to reference the new file in the existing %doc line or a new one.

Thanks in advance.

  • 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-05-24T18:31:44+00:00Added an answer on May 24, 2026 at 6:31 pm

    The easiest thing to do is to create a new %SOURCEx file and then copy it in during %prep. From there you can refer to it as normal in %doc.

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

Sidebar

Related Questions

Creating liquid layouts is an immense pain. Now, I totally understand that tables should
Creating a JApplet I have 2 Text Fields, a button and a Text Area.
as weSuppose that I am creating a Java project with the following classes com.bharani.ClassOne
Creating a calculator-like dialog, I noticed that quickly clicking on a button in IE
OK, so I have a C++ project that compiles to a DLL file. I
My compilers class is creating a language that we intend to compile to Java
Well, I've finally decided that I'm not crazy. So, that leaves DataMapper. Here's what
Using DTS I'm dynamically creating an access database. After the file is created (which
My controller spec fails because Factory Girl seems to be creating non-unique Users even
The C# spec states that an argument type cannot be both covariant and contravariant

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.