Joel wrote:

> I'd be happy to have par as part of nmh, especially since there's no
> Fedora package for par right now. (Or, alternatively, I'd be happy for
> someone to package par for Fedora.)

The par build hints contain a link to a spec file by Volker
Kuhlmann.  It works very nicely on Fedora.  There's also a
patch to add support for multibyte charsets.

The attached script downloads all that and builds an RPM.
Takes just seconds.

The par codebase hasn't evolved since 2001, not a typo!  The
multibyte char patch has been living by itself since Oct 2006.
If we decide to rely on it by default, I'll try to contact
the author to see if we can make this a little easier.

David

if [ -f /usr/bin/par ]; then
  echo 'You already have par.  Is it from par2cmdline?'; exit 1
fi

[ -x /usr/bin/rpmbuild ] || sudo yum install rpm-build 
mkdir -p ~/lib/rpmbuild/SOURCES ~/lib/rpmbuild/SPECS

cd ~/lib/rpmbuild/SOURCES
wget http://www.nicemice.net/par/Par152.tar.gz
wget http://www.nicemice.net/par/par_1.52-i18n.3.diff.gz

cd ../SPECS
wget http://www.nicemice.net/par/par-1.52-1.spec.gz
gzip -d par-1.52-1.spec.gz

patch -b <<MB_PATCH
--- par-1.52-1.spec.orig        2004-02-09 22:08:43.000000000 -0600
+++ par-1.52-1.spec     2012-01-26 21:01:29.000000000 -0600
@@ -23,0 +24 @@
+Patch:          par_1.52-i18n.3.diff.gz
@@ -57,0 +59 @@
+%patch -p 1
MB_PATCH

rpmbuild -bb --clean par-1.52-1.spec

echo the RPM is: ~/lib/rpmbuild/RPMS/$(uname -i)/par-1.52-1.$(uname -i).rpm
_______________________________________________
Nmh-workers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to