Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Didik Supriadi
Didik Supriadi

Posted on • Originally published ati3.ninja on

     

Packaging nanime in Fedora COPR

Over the last summer of 2015, I’ve been watching anime as an enjoyable entertainment. To watch anime, it forces me to watch video by streaming “on browser”. I found it is very annoying since video player provided by video streaming services is very awful.

Recently, I creatednanime. I named it “nanime” because it currently only serves anime links fromnanime.yt and since there are no other programs using it. This program will fetch videos of each anime episodes, provided the anime URL fromnanime.yt is given.

In this article, I’ll cover and share how I…

  • Created the RPM SPEC file
  • Built the package in COPR
  • Found mistakes

Creating RPM SPEC file

I read about rpm packaging inFedora Packaging Guidelines. It’s a good guide, though I end up readingrpm-packaging-guide since it has PDF version. The reason is only because I have my phone everywhere so that I can easily read PDF without opening my browser.

Since nanime is implemented with bash, I can easily implement the SPEC file. Anyway, it’s a very simple application at the first place.

Building package

First, I create the source package from SPEC file

rpmbuild -bs ~/rpmbuild/SPECS/nanime.spec

And then, I create the binary package

rpmbuild -bb ~/rpmbuild/SPECS/nanime.spec

Actually, I can also create both of them simultaneously

rpmbuild -ba ~/rpmbuild/SPECS/nanime.spec

Lastly, I can build my package in COPR service

copr-cli build nanime ~/rpmbuild/SRPMS/nanime-0.1-1.fc31.src.rpm

Finding mistakes

Fixing bugs

I didn’t test my code thoroughly before building the project in COPR causing a very hurtful slap on my face.

Signing package

Even though adding GPG sign to a package is not a must, It’s a good thing to do and nothing to lose anyway.rpm-packaging-guide also gives a good case where Signed-package is very useful.

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Didik is a FLOSS Enthusiast. He is a proud Fedora Linux user and looking to be an active contributor one day. He is available on Telegram @didiksupriadi41— "The water dripped immeasurably"
  • Location
    Bandung, Indonesia
  • Education
    Institut Teknologi Bandung
  • Joined

More fromDidik Supriadi

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp