Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.4
freetype
freetype.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File freetype.spec of Package freetype
# # spec file for package freetype (Version 1.3.1) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: freetype BuildRequires: texlive-bin-devel texlive-devel xorg-x11-devel License: The FreeType License (BSD-like) Group: System/Libraries AutoReqProv: on # bug437293 %ifarch ppc64 Obsoletes: freetype-64bit %endif # PreReq: fileutils Version: 1.3.1 Release: 1400 Url: http://www.freetype.org Summary: TrueType Font Engine Source: ftp://ftp.freetype.org/pub/freetype1/freetype-%{version}.tar.bz2 Source2: baselibs.conf Patch0: freetype-tools-1.3.1.patch Patch1: freetype-%{version}.dif Patch2: freetype-%{version}-nopatent.patch Patch3: freetype-%{version}-gcc.patch Patch4: freetype-%{version}-kpathsea.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description A library for working with TrueType Fonts. Documentation is in the /usr/share/doc/packages/freetype directory. Authors: -------- David Turner <turner@enst.fr> Robert Wilhelm <robert@physiol.med.tu-muenchen.de> Werner Lemberg <a7971428@unet.univie.ac.at> %package -n freetype-tools License: MIT Summary: Bundled Tests, Demos and Tools for FreeType (Needed for CJK-LaTeX) Group: Development/Libraries/C and C++ Requires: freetype %description -n freetype-tools Bundled tests, demos and tools for FreeType. Needed for CJK-LaTeX. 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. This package contains several programs bundled with the FreeType engine for testing and demonstration purposes as well as some contributed utilities, such as ttf2pk, ttf2bdf, ttf2pfb, and ttfbanner. Authors: -------- David Turner <david.turner@freetype.org> Robert Wilhelm <robert.wilhelm@freetype.org> Werner Lemberg <werner.lemberg@freetype.org> %prep %setup %patch0 -p1 %patch1 %patch2 %patch3 %patch4 %build # fix build with newer glibc sed "s:getline:getline_nonlibc:" -i contrib/*/*.{c,h} # update config.{guess,sub} %{?suse_update_config:%{suse_update_config -f contrib/ttf2pk contrib/ttf2bdf contrib/ttfbanner contrib/ttf2pfb}} export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./configure --prefix=/usr \ --with-locale-dir=/usr/share/locale \ --libdir=%{_libdir} \ %{_target_cpu}-suse-linux-gnu make pushd contrib/ttf2bdf ./configure --prefix=/usr --mandir=$RPM_BUILD_ROOT%{_mandir} \ --libdir=%{_libdir} \ %{_target_cpu}-suse-linux-gnu make popd pushd contrib/ttf2pk autoconf ./configure --prefix=/usr --mandir=$RPM_BUILD_ROOT%{_mandir} \ --with-kpathsea-dir=/usr \ --libdir=%{_libdir} \ %{_target_cpu}-suse-linux-gnu make popd pushd contrib/ttf2pfb ./configure --prefix=/usr --mandir=$RPM_BUILD_ROOT%{_mandir} \ --libdir=%{_libdir} \ %{_target_cpu}-suse-linux-gnu make popd pushd contrib/ttfbanner ./configure --prefix=/usr --mandir=$RPM_BUILD_ROOT%{_mandir} \ --libdir=%{_libdir} \ %{_target_cpu}-suse-linux-gnu make popd %install make prefix=$RPM_BUILD_ROOT/usr \ libdir=$RPM_BUILD_ROOT/%{_libdir} \ gnulocaledir=$RPM_BUILD_ROOT/usr/share/locale \ localedir=$RPM_BUILD_ROOT/usr/share/locale install for i in ttf2bdf ttf2pfb ttf2pk ttfbanner; do make -C contrib/$i prefix=$RPM_BUILD_ROOT/usr install done # ttf2tfm and ttf2pk both need the *.sfd, *.enc and *.rpl # in their own directory. (?) Hmm... mkdir -p $RPM_BUILD_ROOT/usr/share/texmf/ttf2pk mkdir -p $RPM_BUILD_ROOT/usr/share/texmf/ttf2tfm cp -av contrib/ttf2pk/data/*.{sfd,enc,rpl} $RPM_BUILD_ROOT/usr/share/texmf/ttf2pk ln $RPM_BUILD_ROOT/usr/share/texmf/ttf2pk/*.{sfd,enc,rpl} $RPM_BUILD_ROOT/usr/share/texmf/ttf2tfm mkdir -p $RPM_BUILD_ROOT/etc/ttf2pk cp -av contrib/ttf2pk/data/ttfonts.map $RPM_BUILD_ROOT/etc/ttf2pk/ttfonts.map ln -s /etc/ttf2pk/ttfonts.map $RPM_BUILD_ROOT/usr/share/texmf/ttf2pk/ttfonts.map # copy documentation for freetype-tools: mkdir -p freetype-tools-doc/ttf2bdf mkdir -p freetype-tools-doc/ttf2pfb mkdir -p freetype-tools-doc/ttf2pk mkdir -p freetype-tools-doc/ttfbanner cp contrib/ttf2bdf/README freetype-tools-doc/ttf2bdf cp contrib/ttf2pfb/TODO freetype-tools-doc/ttf2pfb cp contrib/ttf2pk/*.doc contrib/ttf2pk/README contrib/ttf2pk/TODO contrib/ttf2pk/BUGS freetype-tools-doc/ttf2pk cp contrib/ttfbanner/README freetype-tools-doc/ttfbanner pushd $RPM_BUILD_ROOT/usr/bin # rename the utility programs to avoid the name conflict with the same # utilities from freetype2: rename ft ft1 ft* popd pushd $RPM_BUILD_ROOT/usr/include/freetype # Creeate extend sub directory and link all ftx*.h into this directory mkdir extend cd extend/ ln -sf ../ftx*.h . popd # don't pack t1asm, because this file is in package t1utils: rm -f $RPM_BUILD_ROOT/usr/bin/t1asm # don't pack getafm, because it is in the package psutils: rm -f $RPM_BUILD_ROOT/usr/bin/getafm %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post -n freetype-tools mkdir -p var/adm/SuSEconfig ; touch var/adm/SuSEconfig/run-texhash test -x usr/bin/texhash && usr/bin/texhash exit 0 %postun -n freetype-tools mkdir -p var/adm/SuSEconfig ; touch var/adm/SuSEconfig/run-texhash test -x usr/bin/texhash && usr/bin/texhash exit 0 %files -f %{name}.lang %defattr(-,root,root) %doc README license.txt docs/FAQ docs/TODO docs/*.txt /usr/include/freetype /usr/include/freetype/extend %{_libdir}/libttf.la %{_libdir}/libttf.so %{_libdir}/libttf.so.2 %{_libdir}/libttf.so.2.2.0 /usr/bin/ft1view /usr/bin/ft1timer /usr/bin/ft1lint /usr/bin/ft1dump /usr/bin/ft1zoom /usr/bin/ft1string /usr/bin/ft1strpnm /usr/bin/ft1error /usr/bin/ft1metric /usr/bin/ft1sbit /usr/bin/ft1strtto %files -n freetype-tools %defattr(-, root, root) %doc ./freetype-tools-doc /usr/bin/ttf2bdf /usr/bin/ttf2pfb /usr/bin/ttf2pk /usr/bin/ttf2tfm /usr/bin/ttfbanner %dir /usr/share/texmf %dir /usr/share/texmf/ttf2pk /usr/share/texmf/ttf2pk/Big5.sfd /usr/share/texmf/ttf2pk/EUC.sfd /usr/share/texmf/ttf2pk/SJIS.sfd /usr/share/texmf/ttf2pk/UBg5plus.sfd /usr/share/texmf/ttf2pk/UBig5.sfd /usr/share/texmf/ttf2pk/UGBK.sfd /usr/share/texmf/ttf2pk/UGB.sfd /usr/share/texmf/ttf2pk/UJIS.sfd /usr/share/texmf/ttf2pk/UKS.sfd /usr/share/texmf/ttf2pk/Unicode.sfd /usr/share/texmf/ttf2pk/ET5.enc /usr/share/texmf/ttf2pk/T1-WGL4.enc /usr/share/texmf/ttf2pk/VPS.rpl /usr/share/texmf/ttf2pk/ttfonts.map %dir /usr/share/texmf/ttf2tfm /usr/share/texmf/ttf2tfm/Big5.sfd /usr/share/texmf/ttf2tfm/EUC.sfd /usr/share/texmf/ttf2tfm/SJIS.sfd /usr/share/texmf/ttf2tfm/UBg5plus.sfd /usr/share/texmf/ttf2tfm/UBig5.sfd /usr/share/texmf/ttf2tfm/UGBK.sfd /usr/share/texmf/ttf2tfm/UGB.sfd /usr/share/texmf/ttf2tfm/UJIS.sfd /usr/share/texmf/ttf2tfm/UKS.sfd /usr/share/texmf/ttf2tfm/Unicode.sfd /usr/share/texmf/ttf2tfm/ET5.enc /usr/share/texmf/ttf2tfm/T1-WGL4.enc /usr/share/texmf/ttf2tfm/VPS.rpl /usr/share/man/man1/ttf2pk.1.gz /usr/share/man/man1/ttf2bdf.1.gz /usr/share/man/man1/ttf2tfm.1.gz %dir /etc/ttf2pk %config /etc/ttf2pk/ttfonts.map %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor