Hello,

I notice that a lot of applications still expect the freetype libs to
be in /usr/include, while they are in /usr/include/freetype. Can we,
for the mean time, include links in the rpm package so these packages
will compile normally?

Your opninion is apreciated,

Stefan van der Eijk

Attached: proposed .spec file.
%define ver 1.3
%define rel 5mdk

Summary: Free TrueType font rasterizer library.
Name: freetype
Version: %{ver}
Release: %{rel}
Copyright: BSDish
Group: System Environment/Libraries
Source: freetype-%{version}.tar.bz2
Source1: ttmkfdir.tar.bz2
# Patch from X-TT sources, to correctly support Dynalab TTF fonts
# very poppular in Taiwan
Patch: freetype1.3-adw-nocheck.patch
Buildroot: /var/tmp/%{name}-root

%package devel
Summary: Header files and static library for development with FreeType.
Group: Development/Libraries

%description
The FreeType engine is a free and portable TrueType font rendering engine.
It has been developed to provide TT support to a great variety of
platforms and environments. Note that FreeType is a library, not a
stand-alone application, though some utility applications are included.

%description devel
This package is only needed if you intend to develop or
compile applications which rely on the FreeType library.
If you simply want to run existing applications, you won't
need this package.

%prep
%setup -q -a 1

%patch -p0 -b .adw

%build
%configure      --disable-debug --enable-static --enable-shared \
        --with-locale-dir=/usr/share/locale
make
make -C ttmkfdir-1.1

%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT/usr install \
        gnulocaledir=$RPM_BUILD_ROOT/usr/share/locale
make -C ttmkfdir-1.1 install
strip $RPM_BUILD_ROOT/usr/bin/*
strip $RPM_BUILD_ROOT/usr/sbin/*


find $RPM_BUILD_ROOT/ -type 'f'|grep -E '.*[0-9]($|x)' | xargs file \
        | grep troff | cut -d: -f1 | xargs bzip2 -9

for i in `find $RPM_BUILD_ROOT/ -type 'f' -perm '+a=x' ! -name 'lib*so*'`; do
        file $i |grep -q "not stripped" && strip $i
done
cd $RPM_BUILD_ROOT/usr/include/freetype
for i in *.h ; do  ln -s freetype/$i ../$i; done

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
/usr/bin/*
/usr/sbin/*
/usr/lib/libttf.so.*
/usr/share/locale/*/LC_MESSAGES/*.mo
%doc README  announce docs

%files devel
%defattr(-,root,root,-)
/usr/include/*
/usr/lib/libttf.so
/usr/lib/libttf.la
/usr/lib/libttf.a

%changelog
* Sun Jan 22 2000 Stefan van der Eijk <[EMAIL PROTECTED]>
- added links from /usr/include to /usr/include/freetype/*.h

* Wed Nov 24 1999 Pablo Saratxaga <[EMAIL PROTECTED]>
- rebuild with small patch for Dynalab TTF fonts
- fixed Big5 naming for ttmkfdir ( s/big5.et-0/big5-0/ )

* Wed Nov 03 1999 John Buswell <[EMAIL PROTECTED]>
- Build Release

* Fri Oct 22 1999 Pablo Saratxaga <[EMAIL PROTECTED]>
- added support of microsoft-cp1251 encoding to ttmkfdir
  (so the fonts.dir file it generates will work with all currently supported
  encodings by Linux Mandrake)

* Thu Oct 14 1999 Chmouel Boudjnah <[EMAIL PROTECTED]>
- 1.3.

* Tue Sep 18 1999 Pablo Saratxaga <[EMAIL PROTECTED]>
- added recongnition of the new encodings in XFree86 fro ttmkfdir
  (iso8859-13 and iso8859-14).
- cleaned the %files section

* Mon Aug 23 1999 Pablo Saratxaga <[EMAIL PROTECTED]>
- added EB (Embedded Bitmap) patch; that allows rebuilding X-TT
  with support for embedded bitmaps of TTF; which makes a *BIG* difference
  in output quality of fonts at small sizes.
- included support to ttmkfdir for all the new encodings known by X-TT

* Tue Jun 29 1999 Chmouel Boudjnah <[EMAIL PROTECTED]>
- Build in the new environement.

* Thu May 06 1999 Bernhard Rosenkraenzer <[EMAIL PROTECTED]>
- Mandrake adaptions
- handle RPM_OPT_FLAGS

* Mon Mar 22 1999 Preston Brown <[EMAIL PROTECTED]>
- strip binaries

* Sun Mar 21 1999 Cristian Gafton <[EMAIL PROTECTED]> 
- auto rebuild in the new build environment (release 5)

* Thu Mar 18 1999 Cristian Gafton <[EMAIL PROTECTED]>
- fixed the %doc file list

* Wed Feb 24 1999 Preston Brown <[EMAIL PROTECTED]>
- Injected new description and group.

* Mon Feb 15 1999 Preston Brown <[EMAIL PROTECTED]>
- added ttmkfdir

* Tue Feb 02 1999 Preston Brown <[EMAIL PROTECTED]>
- update to 1.2

* Thu Jan 07 1999 Cristian Gafton <[EMAIL PROTECTED]>
- call libtoolize to sanitize config.sub and get ARM support
- dispoze of the patch (not necessary anymore)

* Wed Oct 21 1998 Preston Brown <[EMAIL PROTECTED]>
- post/postun sections for ldconfig action.

* Tue Oct 20 1998 Preston Brown <[EMAIL PROTECTED]>
- initial RPM, includes normal and development packages.

Reply via email to