spec files for libAfter
Graydon (oak@uniserve.com)
Sat, 24 May 2003 12:11:23 -0400
Which need the (very small) makefile patch for libAfterImage to work,
but which do appear to work.
Assuming these work for other people, the spec file for AfterStep-1.99.0
should probably be changed to explicitly require these, rather than
implicitly requiring the libraries.
================
libAfterBase
===============
%define name libAfterBase
%define version 0.93
%define release 1
Summary: base header files for the After Image graphics library
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: GPL
Group: Development/Libraries
URL: http://afterstep.sourceforge.net/afterimage
Vendor: The AfterStep Team (see TEAM in docdir)
Source: ftp://ftp.afterstep.org/apps/libAfter/libAfterBase-0.93.tar.bz2
Distribution: The AfterStep TEAM
Packager: Graydon Saunders <oak@uniserve.com>
BuildRoot: %{_tmppath}/%{name}-root
%description
Base header files for libAfterImage.
%prep
%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS" %configure --enable-sharedlibs \
--prefix=/usr \
--mandir=/usr/share \
--libdir=/usr/lib \
--mandir=/usr/share/man
make
%install
rm -rf $RPM_BUILD_ROOT
# makefule doesn't cope well with missing directories
mkdir -p $RPM_BUILD_ROOT/usr/lib
mkdir -p $RPM_BUILD_ROOT/usr/include
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/lib/libAfterBase.so.0
/usr/lib/libAfterBase.so
/usr/lib/libAfterBase.a
/usr/lib/libAfterBase.so.0.93
%dir %attr(755,root,root) /usr/include/libAfterBase
/usr/include/libAfterBase/*
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Sat May 24 2003 Graydon Saunders <oak@uniserve.com>
- initial build
=============
libAfterImage
=============
%define name libAfterImage
%define version 0.93
%define release 1
Summary: After Image graphics manipulation library
Name: %{name}
Version: %{version}
Release: %{release}
Copyright: GPL
Group: Development/Libraries
URL: http://afterstep.sourceforge.net/afterimage
Vendor: The AfterStep Team
Source: ftp://ftp.afterstep.org/apps/libAfter/libAfterImage-0.93.tar.bz2
Distribution: The AfterStep Team
Packager: Graydon Saunders <oak@uniserve.com>
Requires: libAfterBase = %{version}
BuildRequires: robodoc > 4
BuildRoot: %{_tmppath}/%{name}-root
%description
libAfterImage is a generic image manipulation library. It was
initially implemented to address AfterStep Window Manager's needs
for image handling, but it evolved into extremely powerfull and
flexible software, suitable for virtually any project that has needs
for loading, manipulating, displaying images, as well as writing
images in files. Most of the popular image formats are supported
using standard libraries, with XCF, XPM, PPM/PNM, BMP and ICO being
supported internally.
Powerfull text rendering capabilities included, providing support
for TrueType fonts using FreeType library, and antialiasing of
standard fonts from X window system.
Primary design goals of libAfterImage are memory efficiency and
superior image quality.
Extensive documentation, examples, and the XML image scripting tool
ascompose, are included with the library.
%prep
%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS" %configure --enable-sharedlibs \
--prefix=/usr \
--libdir=/usr/lib
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/lib
mkdir -p $RPM_BUILD_ROOT/usr/include
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man3
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
make DESTDIR=$RPM_BUILD_ROOT install
# move the docs to the RH standard place
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
mv $RPM_BUILD_ROOT/usr/share/libAfterImage/doc/html/ \
$RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
%files
%defattr(-,root,root)
/usr/bin/afterimage-libs
/usr/lib/libAfterImage.so.0.93
/usr/lib/libAfterImage.a
%dir %attr(755,root,root) /usr/include/libAfterImage
/usr/include/libAfterImage/*
/usr/share/man/man3/*
/usr/share/man/man1/*
%doc /usr/share/doc/%{name}-%{version}/*
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Sat May 24 2003 Graydon Saunders <oak@uniserve.com>
- initial build
--
oak@uniserve.com | Uton we hycgan hwaer we ham agen,
| ond thonne gedhencan he we thider cumen.
| -- The Seafarer, ll. 117-118.
_______________________________________________
The AfterStep Window Manager for X User's Mailing List
http://mail.afterstep.org/mailman/listinfo/as-users