X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=freetype.spec;h=6c7afc7da4505687a742d54f1ac4c45e13a30a39;hb=bb2717f5e7b5347ca46f8045ba686d00a7624c9e;hp=52ee95fd3c41bd3706df71eb751e904dc985e9be;hpb=dfbd1f057e1f72b7adc61583af63c50b78eec0a2;p=packages%2Ffreetype.git diff --git a/freetype.spec b/freetype.spec index 52ee95f..6c7afc7 100644 --- a/freetype.spec +++ b/freetype.spec @@ -1,90 +1,123 @@ -Summary: Truetype font rasterizer -Summary(pl): Fonty Truetype -Name: freetype -Version: 1.2 -Release: 1 -Source: ftp://ftp.physiol.med.tu-muenchen.de/pub/freetype/freetype-%{version}.tar.gz -URL: http://www.physiol.med.tu-muenchen.de/~robert/freetype.html -Copyright: LGPL -Group: Libraries -BuildRoot: /tmp/%{name}-%{version}-root +Summary: Truetype font rasterizer +Summary(pl): Rasteryzer fontów Truetype +Name: freetype +Version: 1.3.1 +Release: 8 +License: BSD like +Group: Libraries +Group(fr): Librairies +Group(pl): Biblioteki +Source0: ftp://ftp.physiol.med.tu-muenchen.de/pub/freetype/%{name}-%{version}.tar.gz +Source1: ttmkfdir.tar.gz +Patch0: %{name}-DESTDIR.patch +Patch1: %{name}-autoconf.patch +Patch2: %{name}-foundrynames.patch +Patch3: %{name}-nospaces.patch +URL: http://www.physiol.med.tu-muenchen.de/~robert/freetype.html +BuildRequires: gettext-devel +BuildRequires: XFree86-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -The FreeType engine is a free and portable TrueType font rendering engine, -available in ANSI C and Pascal source code. It has been developed to -provide TT support to a great variety of platforms and environments. +The FreeType engine is a free and portable TrueType font rendering +engine. It has been developed to provide TrueType support to a great +variety of platforms and environments. + +Note that FreeType is a *library*. It is not a font server for your +favorite platform, even though it was designed to be used in many of +them. Note also that it is *not* a complete text-rendering library. +Its purpose is simply to open and manage font files, as well as load, +hint and render individual glyphs efficiently. You can also see it as +a "TrueType driver" for a higher-level library, though rendering text +with it is extremely easy, as demo-ed by the test programs. %description -l pl -FreeType daje mo¿liwo¶æ renderowania fontów TrueType. Kody ¼ród³owe napisane -s± w ANSI C orza PASCAL'u. +FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Kody +¼ród³owe napisane s± w ANSI C oraz PASCAL'u. %package devel -Summary: Development libraries for freetype -Summary(pl): Biblioteki dla freetype -Requires: freetype = %{version} -Group: Development/Libraries +Summary: Header files and development documentation +Summary(pl): Pliki nag³ówkowe biblioteki freetype i dokumentacja +Group: Development/Libraries +Group(fr): Development/Librairies +Group(pl): Programowanie/Biblioteki +Requires: %{name} = %{version} %description devel -This package includes the header files and libraries necessary to develop -applications that use freetype. +This package includes the header files documentations and libraries +necessary to develop applications that use freetype. %description -l pl devel -Pakiet ten zawiera pliki nag³ówków oraz biblioteki, dla progranmistów chc±cych -wykorzystaæ freetype w swoich aplikacjach. +Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy +kompilowaniu programów wykorzystuj±cych bibliotekê freetype. %package static -Summary: Static freetype libraries -Summary(pl): Biblioteki statyczne freetype -Requires: %{name}-devel = %{version} -Group: Development/Libraries +Summary: Freetype static libraries +Summary(pl): Biblioteki statyczne freetype +Group: Development/Libraries +Group(fr): Development/Librairies +Group(pl): Programowanie/Biblioteki +Requires: %{name}-devel = %{version} %description static Static freetype libraries. %description -l pl static -Biblioteki statyczne freetype +Biblioteki statyczne freetype. %package progs -Summary: Freetype library utilities -Summary(pl): Programy u¿ytkowe freetype -Requires: %{name} = %{version} -Group: Utilities +Summary: Freetype library utilities +Summary(pl): Programy u¿ytkowe freetype +Group: Utilities +Group(pl): Narzêdzia +Requires: %{name} = %{version} +Obsoletes: freetype-utils %description progs Freetype library utilites: -- ftimer - a simple performance timer for the engine, -- fzoom - very simple glyph viewer, -- ftlint - program will hint each glyph of a font file, at a given point - size, -- ftwiew - display all glyphs in a given font, applying hinting to each one, -- fdump - a simple TrueType font or collection dumper, +- ftimer - a simple performance timer for the engine, +- fzoom - very simple glyph viewer, +- ftlint - program will hint each glyph of a font file, at a given + point size, +- ftwiew - display all glyphs in a given font, applying hinting to + each one, +- fdump - a simple TrueType font or collection dumper, - ftstring - a simple program to show off string text generation. -- ftstrpn - convert a rendered text string into the PGM or PBM format, -- fterror - small test program. Tests the gettext() - functionality for internationalized messages. +- ftstrpn - convert a rendered text string into the PGM or PBM format, +- fterror - small test program. Tests the gettext() functionality for + internationalized messages. %description -l pl progs -Przyk³adowe aplikacje wykorzystuj±ce freetype +Przyk³adowe aplikacje wykorzystuj±ce freetype. %prep %setup -q +mkdir ttmkfdir +tar xz -C ttmkfdir -f %{SOURCE1} +%patch0 -p1 +%patch1 -p1 %build -CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s \ -./configure --prefix=/usr \ - --enable-static \ - --with-locale-dir=/usr/share/locale \ - --with-gnu-ld -make +gettextize --copy --force +aclocal +autoconf +%configure \ + --enable-static \ + --with-gnu-ld +%{__make} +%{__make} -C ttmkfdir CC="gcc $RPM_OPT_FLAGS -I../lib" %install rm -rf $RPM_BUILD_ROOT -make prefix=$RPM_BUILD_ROOT/usr \ - localedir=$RPM_BUILD_ROOT/usr/share/locale \ - gnulocaledir=$RPM_BUILD_ROOT/usr/share/locale \ - install -strip $RPM_BUILD_ROOT/usr/lib/lib*so.*.* +%{__make} install DESTDIR=$RPM_BUILD_ROOT +install -s ttmkfdir/ttmkfdir $RPM_BUILD_ROOT%{_bindir} + +strip $RPM_BUILD_ROOT%{_libdir}/lib*so.*.* + +gzip -9nf howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits} + +%find_lang %{name} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -92,69 +125,22 @@ strip $RPM_BUILD_ROOT/usr/lib/lib*so.*.* %clean rm -rf $RPM_BUILD_ROOT -%files -%defattr(644, root, root, 755) -%doc docs/* HOWTO.txt README announce license.txt -%attr(755, root, root) /usr/lib/lib*so.*.* -%lang(cs) /usr/share/locale/cs/LC_MESSAGES/freetype.mo -%lang(de) /usr/share/locale/de/LC_MESSAGES/freetype.mo -%lang(es) /usr/share/locale/es/LC_MESSAGES/freetype.mo -%lang(fr) /usr/share/locale/fr/LC_MESSAGES/freetype.mo -%lang(nl) /usr/share/locale/nl/LC_MESSAGES/freetype.mo +%files -f %{name}.lang +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/ttmkfdir +%attr(755,root,root) %{_libdir}/lib*so.*.* %files devel -%defattr(644, root, root) -/usr/include/* -/usr/lib/lib*.so +%defattr(644,root,root,755) +%doc howto/unix* docs/*txt* *.gz +%attr(755,root,root) %{_libdir}/lib*.so +%attr(755,root,root) %{_libdir}/lib*.la +%{_includedir}/* %files static -%attr(644, root, root) /usr/lib/lib*.a +%defattr(644,root,root,755) +%{_libdir}/lib*.a %files progs -%attr(755, root, root) /usr/bin/* - -%changelog - -* Mon Jul 20 1998 Wojtek ¦lusarczyk - [1.1-2] -- added static subapackage -- added pl translation. - -* Fri Jun 05 1998 Arne Coucheron -- updated to 1.1pre1-2 -- rpm 2.5 is doing weird things with the %doc, moved it last in filelist - to make it behave better - -* Mon May 25 1998 Arne Coucheron -- updated to 1.1pre1-1 -- removed libttf.so.1 symlink -- added --with-locale-dir and --with-gnu-ld to configure -- changed HOWTO in %doc to HOWTO.txt -- lib*.so* files wasn't chmod 755, fixed -- removed initial making of the $RPM_BUILD_ROOT/usr directory - layout in %install, it isn't needed - -* Thu May 14 1998 Arne Coucheron -- updated to current devel release so that ImageMagick 4.0.6 can be compiled -- removed installing of tterror.h/ttcommon.h, don't exist in devel source -- added --enable-static to configure, required now to build static libs -- added additional NLS languages -- made symlink from libttf.so.1 to libttf.so.2.0.0 for apps needing it - -* Wed May 6 1998 Tomasz K³oczko -- added instaling tterror.h header file, -- %%{version} macro instead %%{PACKAGE_VERSION}, -- added using %%{name} macro in Buildroot and in Requires in devel, -- added -q %setup parameter. - -* Mon Apr 27 1998 Tomasz K³oczko -- replaced usind %{version} macro by predefined %%{PACKAGE_VERSION}, -- added "Requires: freetype = %{PACKAGE_VERSION}" for devel subpackage, -- added using %defattr in %files (requires rpm >= 2.4.99), -- added %lang macros for files /usr/share/locale/*/LC_MESSAGES/freetype.mo - files, -- added stripping /usr/lib/lib*so.*.*, -- programs from /usr/bin/ moved to separated progs subpackage. - -* Wed Feb 18 1998 Arne Coucheron -- First release, 1.0-1 +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/f*