brenthuisman / par2deep

Produce, verify and repair par2 files recursively.
GNU Lesser General Public License v3.0
84 stars 8 forks source link

Open to packaging on Fedora? Specfile included #28

Open tabbyrobin opened 3 weeks ago

tabbyrobin commented 3 weeks ago

Hi,

Are you open to the idea of packaging this on Fedora? I've put together a working specfile. python-par2deep.spec.txt

Note, the changelog section is not fleshed out. File has extra .txt extension so GitHub will allow upload.

Example commands to use it:

#!/usr/bin/env sh
[ "$SPECFILE" = "" ] && SPECFILE="./python-par2deep.spec"
[ "$SRC_RPM" = "" ] && SRC_RPM="$HOME/rpmbuild/SRPMS/python-par2deep-1.10.1-1.fc38.src.rpm"
time sudo dnf install -y pyp2rpm rpmlint tito automake &&
  rpmlint "$SPECFILE" &&
  spectool -g -R "$SPECFILE"

# Everything is downloaded now, can disconnect from network for the build step.
rpmbuild -bs "$SPECFILE" && rpmbuild --rebuild "$SRC_RPM"

# sudo dnf install ~/rpmbuild/RPMS/noarch/python3-par2deep-*.noarch.rpm

I also went ahead and put together a specfile for par2cmdline-turbo, see: https://github.com/animetosho/par2cmdline-turbo/issues/27

brenthuisman commented 3 weeks ago

Sure I'm open to it! Will you be the maintainer of the Fedora spec file? Or would it live in this repo? Do you need any further changes to this repo? I imagine perhaps not packaging of par2cmdline-turbo binaries ;)