aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/libmrss/README4
-rw-r--r--libraries/libmrss/atom-link.diff24
-rw-r--r--libraries/libmrss/libmrss.SlackBuild79
-rw-r--r--libraries/libmrss/libmrss.info10
-rw-r--r--libraries/libmrss/slack-desc19
5 files changed, 136 insertions, 0 deletions
diff --git a/libraries/libmrss/README b/libraries/libmrss/README
new file mode 100644
index 0000000000000..79920bbae208f
--- /dev/null
+++ b/libraries/libmrss/README
@@ -0,0 +1,4 @@
+libmrss (C RSS library)
+
+mRSS is a C library for parsing, writing and creating RSS
+(0.91, 0.92, 1.0, 2.0) files or streams.
diff --git a/libraries/libmrss/atom-link.diff b/libraries/libmrss/atom-link.diff
new file mode 100644
index 0000000000000..fa4e68628b14f
--- /dev/null
+++ b/libraries/libmrss/atom-link.diff
@@ -0,0 +1,24 @@
+Description: Fixes wrong <link> parsed is Atom feeds
+Debian BTS: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=503225
+
+diff -Naur libmrss-0.19.2/src/mrss_parser.c libmrss-0.19.2.atom/src/mrss_parser.c
+--- libmrss-0.19.2/src/mrss_parser.c 2008-08-21 15:59:22.000000000 -0600
++++ libmrss-0.19.2.atom/src/mrss_parser.c 2008-12-07 11:30:43.000000000 -0700
+@@ -367,7 +367,16 @@
+ /* link href -> link */
+ else if (!item->link && !strcmp (cur->value, "link")
+ && (c = nxmle_find_attribute (cur, "href", NULL)))
+- item->link = c;
++ {
++ char *t;
++
++ /* alternate link is either rel="alternate" or a link tag
++ * without a rel attribute
++ */
++ t = nxmle_find_attribute (cur, "rel", NULL);
++ if ((t && !strcmp(t, "alternate")) || !t)
++ item->link = c;
++ }
+
+ /* content -> description */
+ else if (!item->description && !strcmp (cur->value, "content"))
diff --git a/libraries/libmrss/libmrss.SlackBuild b/libraries/libmrss/libmrss.SlackBuild
new file mode 100644
index 0000000000000..7347da9b0d1fd
--- /dev/null
+++ b/libraries/libmrss/libmrss.SlackBuild
@@ -0,0 +1,79 @@
+#!/bin/sh
+
+# Slackware build script for libmrss
+
+# Written by e20100633 <e20100633@inbox.lv>
+
+PRGNAM=libmrss
+VERSION=0.19.2
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+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
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -exec chmod 644 {} \;
+
+# Fix a bug with a patch from debian
+patch -p1 < $CWD/atom-link.diff
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib$LIBDIRSUFFIX \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --disable-static \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog NEWS README $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n -p $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/libraries/libmrss/libmrss.info b/libraries/libmrss/libmrss.info
new file mode 100644
index 0000000000000..63f054ec2bd99
--- /dev/null
+++ b/libraries/libmrss/libmrss.info
@@ -0,0 +1,10 @@
+PRGNAM="libmrss"
+VERSION="0.19.2"
+HOMEPAGE="http://www2.autistici.org/bakunin/codes.php"
+DOWNLOAD="http://www2.autistici.org/bakunin/libmrss/libmrss-0.19.2.tar.gz"
+MD5SUM="a6f66b72898d27270e3a68007f90d62b"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="libnxml"
+MAINTAINER="e20100633"
+EMAIL="e20100633@inbox.lv"
diff --git a/libraries/libmrss/slack-desc b/libraries/libmrss/slack-desc
new file mode 100644
index 0000000000000..d19ff97cc07ff
--- /dev/null
+++ b/libraries/libmrss/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------------------------------------------------------|
+libmrss: libmrss (C RSS library)
+libmrss:
+libmrss: mRSS is a C library for parsing, writing and creating RSS
+libmrss: (0.91, 0.92, 1.0, 2.0) files or streams.
+libmrss:
+libmrss: Homepage: http://www2.autistici.org/bakunin/codes.php
+libmrss:
+libmrss:
+libmrss:
+libmrss:
+libmrss: