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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:13:14+00:00 2026-05-28T01:13:14+00:00

I have this build process that create rpms for a set of linux distributions.

  • 0

I have this build process that create rpms for a set of linux distributions.

This creation is taking so much time and for this I’m optimizing it. I’ve study rpmbuild and realize that rpmbuild takes a tarball and extract it to start the build process.

There is a way to avoid use tarball?? Cause I already begin the process with the sources, then I compress it in a tarball and this seems useless since rpmbuild works on sources, not tarballs

  • 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-28T01:13:14+00:00Added an answer on May 28, 2026 at 1:13 am

    Three basic ways to go about this:

    1. Use the --short-circuit switch to rpmbuild to skip directly to the build step.
    2. List every file in your sources as a SourceXX: in the spec file, and place all those files in the rpmbuild/SOURCES/ directory
    3. Wrap the %setup macro with some intelligence

    Option 1 lets you temporarily work around having to extract the tarball each time, which is ideal for development. Option 2 bypasses the notion of having a tarball to begin with, but becomes cumbersome when you have lots and lots of files. Option 3 is when regular builds of the package happen, and it’s a large source file, such as the linux kernel. The EL6 kernel .spec file does this:

    if [ ! -d kernel-%{kversion}/vanilla-%{kversion}/ ]; then
        %setup -q -n kernel-%{kversion} -c
        mv linux-2.6.32 vanilla-%{kversion};
    else
        cd kernel-%{kversion}/;
    fi
    
    cp -rl vanilla-%{kversion} linux-%{KVERREL}
    
    cd linux-%{KVERREL}
    

    Basically, extract the kernel sources and name it something else. Upon next build, check for that. If it’s there, don’t extract the source, just make a copy.

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

Sidebar

Related Questions

I have this nice little MSBuild-based daily build setup that I use on my
I have this large C++ project that I need to build on a platform
Background I have a few scripts that run as part of my build process
I have a page in my WP7 app that I build dynamically. I create
I have an automated build process that I'd like to extend so I can
As part of our build process we have to create an Access ACCDB (2007)
The situation is this: I have a shared (DLL) build of Qt 4.5.1 and
So I have this SQL table that I need to update. Now we use
We have what I think is a fairly standard build process: 1. Developer: Check
I'm working to improve the long languishing Linux build process for Bitfighter , and

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.