]> git.pld-linux.org Git - packages/freetype.git/blobdiff - freetype.spec
- updated to 1.3.1,
[packages/freetype.git] / freetype.spec
index 3a459e4c8e2e6e33fcba4d7bbdddbce1873def94..fb99b388aba4215267f0d0cc6e10ea622514a783 100644 (file)
@@ -1,21 +1,31 @@
 Summary:       Truetype font rasterizer
 Summary(pl):   Rasteryzer fontów Truetype
 Name:          freetype
-Version:       1.2
-Release:       5
-Copyright:     LGPL
+Version:       1.3.1
+Release:       1
+License:       BSD like
 Group:         Libraries
 Group(pl):     Biblioteki
 Source:                ftp://ftp.physiol.med.tu-muenchen.de/pub/freetype/%{name}-%{version}.tar.gz
+Patch0:                freetype-DESTDIR.patch
+Patch1:                freetype-autoconf.patch
 URL:           http://www.physiol.med.tu-muenchen.de/~robert/freetype.html
-BuildPrereq:   gettext
-BuildPrereq:   XFree86-devel
+BuildRequires: gettext-devel
+BuildRequires: XFree86-devel
 BuildRoot:     /tmp/%{name}-%{version}-root
 
 %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 jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType.
@@ -56,6 +66,7 @@ Summary(pl):  Programy u
 Group:         Utilities
 Group(pl):     Programowanie/Biblioteki
 Requires:      %{name} = %{version}
+Obsoletes:     freetype-utils
 
 %description progs
 Freetype library utilites:
@@ -71,30 +82,32 @@ Freetype library utilites:
              functionality for internationalized messages.
 
 %description -l pl progs
-Przyk³adowe aplikacje wykorzystuj±ce freetype
+Przyk³adowe aplikacje wykorzystuj±ce freetype.
 
 %prep
-%setup -q
+%setup  -q
+%patch0 -p1
+%patch1 -p1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
-       --prefix=/usr \
+gettextize --copy --force
+aclocal
+autoconf
+LDFLAGS="-s"; export LDFLAGS
+%configure \
         --enable-static \
-        --with-locale-dir=/usr/share/locale \
         --with-gnu-ld
 make
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make install \
-       prefix=$RPM_BUILD_ROOT/usr \
-       localedir=$RPM_BUILD_ROOT/usr/share/locale \
-       gnulocaledir=$RPM_BUILD_ROOT/usr/share/locale
+make install DESTDIR=$RPM_BUILD_ROOT
 
-strip $RPM_BUILD_ROOT/usr/lib/lib*so.*.*
+strip $RPM_BUILD_ROOT%{_libdir}/lib*so.*.*
 
-gzip -9nf howto/unix.txt README announce docs/{*.txt,*.doc,FAQ,TODO,credits}
+gzip -9nf howto/unix.txt README announce docs/{*.txt,FAQ,TODO,credits}
+
+%find_lang %{name}
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
@@ -102,91 +115,19 @@ gzip -9nf howto/unix.txt README announce docs/{*.txt,*.doc,FAQ,TODO,credits}
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
-%defattr(644,root,root,755)
-%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
-
-%attr(755,root,root) /usr/lib/lib*so.*.*
+%files -f %{name}.lang
+%attr(755,root,root) %{_libdir}/lib*so.*.*
 
 %files devel
 %defattr(644,root,root,755)
 %doc howto/unix* docs/*txt* *.gz
-%attr(755,root,root) /usr/lib/lib*.so
-/usr/include/*
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/lib*.la
+%{_includedir}/*
 
 %files static
 %defattr(644,root,root,755)
-/usr/lib/lib*.a
+%{_libdir}/lib*.a
 
 %files progs
-%defattr(644,root,root,755)
-%attr(755,root,root) /usr/bin/*
-
-%changelog
-* Sat Apr 23 1999 Artur Frysiak <wiget@pld.org.pl>
-  [1.2-5]
-- recompiled on new rpm.
-
-* Wed Feb 17 1999 Micha³ Kuratczyk <kura@wroclaw.art.pl>
-  [1.2-3d]
-- added "Conflicts: glibc <= 2.0.7" for installing in proper enviroment,
-- gzipping instead bzipping
-- removed *.lsm and license.txt from %doc
-- added docs/credits to %doc
-- cosmetic changes
-
-* Sun Jan 24 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.2-2d]
-- fixed pl transtion,
-- added Group(pl),
-- all %doc moved to devel,
-- added bzipping2 %doc,
-- fixed permission on /usr/lib/lib*.so in devel (must be 755).
-
-* Mon Jul 20 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [1.1-2]
-- added static subapackage
-- added pl translation.
-
-* Fri Jun 05 1998 Arne Coucheron <arneco@online.no>
-- 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 <arneco@online.no>
-- 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 <arneco@online.no>
-- 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 <kloczek@rudy.mif.pg.gda.pl>
-- 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 <kloczek@rudy.mif.pg.gda.pl>
-- 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 <arneco@online.no>
-- First release, 1.0-1
+%attr(755,root,root) %{_bindir}/*
This page took 0.08062 seconds and 4 git commands to generate.