Skip to content

[suggest] add a .spec file for packing rpm in Copr #3

Closed

Description

@thangckt

hi @pol-rivero,

Thank you for the helpful fork.

Can you add a .spec file to let packing rpm in Copr. The file something like this

It will useful for redhat based users.
Thanks.

Activity

  1. pol-rivero commented on Jun 29, 2025

    @pol-rivero
    Member

    Hi @thangckt!
    The compiled binaries include a .rpm package that should work in redhat.

    Is there a specific reason for which you need to use Copr? Recompiling this project could take several minutes every time you want to upgrade, so I think that the precompiled .rpm is preferable.

  2. thangckt commented on Jul 1, 2025

    @thangckt
    Author

    The compiled binaries include a .rpm package that should work in redhat.

    yes, i know that and your rpm work well on my redbat based machine.

    Recompiling this project could take several minutes every time you want to upgrade

    Copr compiles and saves rpm just as you did here. Whenever user install package, dnf just pull rpm file and install (not compile at the installation time).

    By enabling a Copr repo, package manager (such as dnf) can autodetect new release and install it in a simple way; instead of download rpm locally and install it manually.

  3. pol-rivero commented on Jul 1, 2025

    @pol-rivero
    Member

    Copr compiles and saves rpm just as you did here. Whenever user install package, dnf just pull rpm file and install (not compile at the installation time).

    I see, it seems I misunderstood what Copr does. Is this flow correct?

    1. Developer creates .spec file and uploads it to Copr
    2. Copr downloads the source files and builds them
    3. Copr hosts the resulting rpm indefinitely
    4. The user downloads the rpm from Copr

    By enabling a Copr repo, package manager (such as dnf) can autodetect new release and install it in a simple way; instead of download rpm locally and install it manually.

    If what you want is automatic updates, wouldn't it be much easier for me to just host an RPM repo and upload the new releases there?
    Sorry if my questions are dumb, I don't use Fedora/Redhat so I don't understand the point of Copr.

  4. thangckt commented on Jul 1, 2025

    @thangckt
    Author

    Is this flow correct?

    You are almost right. Except that, the user does not need to download rpm and install manually, package manager included in distro will handle that.

    wouldn't it be much easier for me to just host an RPM repo and upload the new releases there?

    It will be nice if you can do that :). But that is what Copr already did for you totally free, why you have to pay afforts to host and maintain such thing. Copr can intergrate with github to auto build and release every time you push/pull/release your github repo/branch.

    I even can use github action to generate my own rpm repo, which can regularly update many rpms I collect around. It just works fines, however, there will be problem if the rpm size larger than 100 MB.

  5. pol-rivero commented on Jul 1, 2025

    @pol-rivero
    Member

    there will be problem if the rpm size larger than 100 MB

    I hadn't thought of that... I was planning on using GitHub Pages since the repo seems to consist of static files, but that size limit is too small.
    Hosting the repo in Copr seems like a good option. Does it allow uploading a precompiled .RPM?

    Edit: It seems that Firebase Hosting has a 2GB file limit, I'll see if I can make it work.

  6. thangckt commented on Jul 1, 2025

    @thangckt
    Author

    Does it allow uploading a precompiled .RPM?

    I don't know, you can look at their docs. I actually maintained my rpm repo on github, until I encounter size limit when get your rpm, so I find Copr as a better alternative.

  7. pol-rivero commented on Jul 2, 2025

    @pol-rivero
    Member

    I managed to make it work using Firebase :)
    You should now be able to install from the RPM repo by following the steps in the README.

    Edit:
    For future reference in case anyone finds this comment useful: do NOT use Firebase hosting. While the file limit (2GB) is enough, the maximum daily data transfer is only 360 MB. For my package size (~120MB) this would mean that only 3 users/day can download the app.
    GitHub Pages and Cloudflare Pages are also not viable due to the maximum file size (100MB and 25MB).

    I'm currently using Cloudflare R2, as the free tier offers 10GB of storage and unlimited data transfer. The only limiting factor are the read operations (10 million / month), but at the current scale of the repository that should be enough.

  8. thangckt commented on Jul 2, 2025

    @thangckt
    Author

    @pol-rivero awsome

    and I have made it available in Copr now :)
    another way to make your repo distro-independent is consider to put it on flathub

  9. added a commit that references this issue on Jun 19, 2026
    c012998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions