From 34f95467a1beb9ec88c144970ac6760476c3b3f3 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Mon, 10 Jul 2023 14:16:46 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- .gitignore | 11 ++++++++++- netpbm-python3.patch | 9 +++++++++ netpbm2tar.sh | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 netpbm-python3.patch create mode 100644 netpbm2tar.sh diff --git a/.gitignore b/.gitignore index 1f51b6d..7e2f3eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,11 @@ -SOURCES/netpbm-10.82.00.tar.xz +/netpbm-10.61.02.tar.xz +/netpbm-10.66.02.tar.xz +/netpbm-10.71.02.tar.xz +/netpbm-10.75.99.tar.xz +/netpbm-10.76.00.tar.xz +/netpbm-10.77.00.tar.xz +/netpbm-10.78.00.tar.xz +/netpbm-10.79.00.tar.xz +/netpbm-10.80.00.tar.xz +/netpbm-10.81.00.tar.xz /netpbm-10.82.00.tar.xz diff --git a/netpbm-python3.patch b/netpbm-python3.patch new file mode 100644 index 0000000..f611b81 --- /dev/null +++ b/netpbm-python3.patch @@ -0,0 +1,9 @@ +diff -urNp old/buildtools/makeman new/buildtools/makeman +--- old/buildtools/makeman 2018-01-03 12:15:55.000000000 +0100 ++++ new/buildtools/makeman 2018-02-26 14:18:39.993760106 +0100 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + # + # makeman -- compile netpbm's stereotyped HTML to troff markup + # diff --git a/netpbm2tar.sh b/netpbm2tar.sh new file mode 100644 index 0000000..e0f920d --- /dev/null +++ b/netpbm2tar.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +# Source0 is prepared by +# svn checkout https://netpbm.svn.sourceforge.net/svnroot/netpbm/advanced netpbm-%{version} +# svn checkout https://netpbm.svn.sourceforge.net/svnroot/netpbm/userguide netpbm-%{version}/userguide +# svn checkout https://netpbm.svn.sourceforge.net/svnroot/netpbm/trunk/test netpbm-%{version}/test +# and removing the .svn directories ( find -name "\.svn" -type d -print0 | xargs -0 rm -rf ) +# and removing the ppmtompeg code, due to patents ( rm -rf netpbm-%{version}/converter/ppm/ppmtompeg/ ) + +VERSION=$1 +if [[ -z $VERSION ]]; then + echo "Version is missing as argument" + exit 1 +fi +NETPBM_NAME="netpbm-$VERSION" +TEMP_DIR="/var/tmp/netpbm" +TARBALL="$TEMP_DIR/$NETPBM_NAME.tar.xz" +mkdir -p $TEMP_DIR +pushd $TEMP_DIR +svn checkout https://netpbm.svn.sourceforge.net/svnroot/netpbm/advanced $NETPBM_NAME +svn checkout https://netpbm.svn.sourceforge.net/svnroot/netpbm/userguide $NETPBM_NAME/userguide +svn checkout https://netpbm.svn.sourceforge.net/svnroot/netpbm/trunk/test $NETPBM_NAME/test +find -name '\.svn' -type d -print0 | xargs -0 rm -rf +rm -rf $NETPBM_NAME/converter/ppm/ppmtompeg/ +tar -cJvf $NETPBM_NAME.tar.xz $NETPBM_NAME +rm -rf $NETPBM_NAME/ +popd +if [[ -f "$TARBALL" ]]; then + cp $TARBALL . + rm $TARBALL +fi +exit 0