libspectre - Library for rendering Postscript documents ChangeLog

HOWTO


# libspectre 0.2.8
# ================
# Slackware 13.37: libspectre 0.2.5
# Slackware 14.0: libspectre 0.2.6
# Slackware 14.1, 14.2: libspectre 0.2.7

# If you want to uninstall libspectre or just clean up files from an old
# version, skip down to the bottom for instructions.

# Prerequisites:
# Ghostscript's libgs (make so)  >= 8.62
# pkg-config
# cairo

# Get it
cd
test -f installed/libspectre-0.2.8.tar.gz &&
mv installed/libspectre-0.2.8.tar.gz .
test ! -f libspectre-0.2.8.tar.gz &&
wget http://libspectre.freedesktop.org/releases/libspectre-0.2.8.tar.gz

# Verify tarball w/ sha1sum:
echo "322499a5ba8874bc0cc20426b0e429024bf1a573  libspectre-0.2.8.tar.gz" | \
sha1sum -c

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "libspectre-*" -exec rm -r {} \;
tar xzvf ~/libspectre-0.2.8.tar.gz
cd libspectre-0.2.8
test $UID = 0 && chown -R root:root .

# Configure the build for 64-bit
test $(uname -m) = 'x86_64' && ./configure --prefix=/usr --libdir=/usr/lib64

# Configure the build for anything else
test $(uname -m) != 'x86_64' && ./configure --prefix=/usr

# Build it
make

# Test the build
make check

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libspectre

# Remove old shared library files
rm -f /usr/lib*/libspectre.*

# Install it
make install
ldconfig

# Make sure your non-root user can remove the source later
chown -R $(logname) .
chmod -R u+w .

# Become yourself again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/cairo-*.tar.*
mv libspectre-0.2.8.tar.gz installed/


# If you ever want to uninstall libspectre, this should do it:
cd
su
test -d src/libspectre-* && ( cd src/libspectre-* ; make uninstall )
for pfx in /usr /usr/local; do
  rm -f ${pfx}/include/libspectre ${pfx}/lib*/libspectre.* \
   ${pfx}/lib*/pkgconfig/libspectre.pc
done
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libspectre-*" -exec rm -r {} \;
rm -f ~/installed/libspectre-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2018-10-22 11:11pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]