diff options
author | Dave Woodfall <dave@slackbuilds.org> | 2021-05-06 17:11:19 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-05-08 01:41:49 +0700 |
commit | 09dcefd8bab0ec583c4b873652d096835672c7de (patch) | |
tree | 7cd076fd1b78e8354f8b8be040738982ba9d223a | |
parent | 21d2f67b66994b33c3e38e9045b4a2edbb9832b5 (diff) |
python/python-mimeparse: Renamed python2-mimeparse.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | python/python-mimeparse/slack-desc | 19 | ||||
-rw-r--r-- | python/python2-mimeparse/README (renamed from python/python-mimeparse/README) | 0 | ||||
-rw-r--r-- | python/python2-mimeparse/python2-mimeparse.SlackBuild (renamed from python/python-mimeparse/python-mimeparse.SlackBuild) | 11 | ||||
-rw-r--r-- | python/python2-mimeparse/python2-mimeparse.info (renamed from python/python-mimeparse/python-mimeparse.info) | 2 | ||||
-rw-r--r-- | python/python2-mimeparse/slack-desc | 19 |
5 files changed, 26 insertions, 25 deletions
diff --git a/python/python-mimeparse/slack-desc b/python/python-mimeparse/slack-desc deleted file mode 100644 index dcbeb8589e4e..000000000000 --- a/python/python-mimeparse/slack-desc +++ /dev/null @@ -1,19 +0,0 @@ -# HOW TO EDIT THIS FILE: -# The "handy ruler" below makes it easier to edit a package description. -# Line up the first '|' above the ':' following the base package name, and -# the '|' on the right side marks the last column you can put a character in. -# You must make exactly 11 lines for the formatting to be correct. It's also -# customary to leave one space after the ':' except on otherwise blank lines. - - |-----handy-ruler------------------------------------------------------| -python-mimeparse: python-mimeparse (A python module for parsing mime-type) -python-mimeparse: -python-mimeparse: This module provides basic functions for handling mime-types. It can -python-mimeparse: handle matching mime-types against a list of media-ranges. See -python-mimeparse: section 5.3.2 of the HTTP 1.1 Semantics and Content specification -python-mimeparse: [RFC 7231] for a complete explanation: -python-mimeparse: https://tools.ietf.org/html/rfc7231#section-5.3.2 -python-mimeparse: -python-mimeparse: Homepage: https://github.com/dbtsai/python-mimeparse -python-mimeparse: -python-mimeparse: diff --git a/python/python-mimeparse/README b/python/python2-mimeparse/README index 683857673c3a..683857673c3a 100644 --- a/python/python-mimeparse/README +++ b/python/python2-mimeparse/README diff --git a/python/python-mimeparse/python-mimeparse.SlackBuild b/python/python2-mimeparse/python2-mimeparse.SlackBuild index 7db6ee0abd14..b034da8b2643 100644 --- a/python/python-mimeparse/python-mimeparse.SlackBuild +++ b/python/python2-mimeparse/python2-mimeparse.SlackBuild @@ -22,7 +22,8 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -PRGNAM=python-mimeparse +PRGNAM=python2-mimeparse +SRCNAM=python-mimeparse VERSION=${VERSION:-1.6.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,9 +60,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.gz -cd $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -69,7 +70,7 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root=$PKG +python2 setup.py install --root=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true diff --git a/python/python-mimeparse/python-mimeparse.info b/python/python2-mimeparse/python2-mimeparse.info index d0afcd35569d..3289b7d8a417 100644 --- a/python/python-mimeparse/python-mimeparse.info +++ b/python/python2-mimeparse/python2-mimeparse.info @@ -1,4 +1,4 @@ -PRGNAM="python-mimeparse" +PRGNAM="python2-mimeparse" VERSION="1.6.0" HOMEPAGE="https://github.com/dbtsai/python-mimeparse" DOWNLOAD="https://pypi.python.org/packages/0f/40/ac5f9e44a55b678c3cd881b4c3376e5b002677dbeab6fb3a50bac5d50d29/python-mimeparse-1.6.0.tar.gz" diff --git a/python/python2-mimeparse/slack-desc b/python/python2-mimeparse/slack-desc new file mode 100644 index 000000000000..8f4221af427b --- /dev/null +++ b/python/python2-mimeparse/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +python2-mimeparse: python2-mimeparse (A python module for parsing mime-type) +python2-mimeparse: +python2-mimeparse: This module provides basic functions for handling mime-types. It can +python2-mimeparse: handle matching mime-types against a list of media-ranges. See +python2-mimeparse: section 5.3.2 of the HTTP 1.1 Semantics and Content specification +python2-mimeparse: [RFC 7231] for a complete explanation: +python2-mimeparse: https://tools.ietf.org/html/rfc7231#section-5.3.2 +python2-mimeparse: +python2-mimeparse: Homepage: https://github.com/dbtsai/python2-mimeparse +python2-mimeparse: +python2-mimeparse: |