File VFlib3.spec of Package VFlib3

# spec file for package VFlib3 (Version 3.6.14)
# Copyright (c) 2009 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

# norootforbuild

Name:           VFlib3
BuildRequires:  freetype t1lib-devel texlive-bin-devel texlive-devel xorg-x11 xorg-x11-devel
License:        LGPL v2.1 or later
Group:          System/Libraries
PreReq:         %install_info_prereq
AutoReqProv:    on
Version:        3.6.14
Release:        191
Requires:       freetype, t1lib
Source1:        vflibcap-tex
Patch0:         VFlib3-3.6.12-missing-headers.patch
Patch1:         VFlib3-ppc64.patch
Patch2:         VFlib3-3.6.12-gcc33.patch
Patch3:         VFlib3-info-dir.patch
Patch4:         VFlib3-include.patch
Patch5:         comparison-is-always-false-due-to-limited-range-of-data-type.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Versatile Font Library
Summary(ja):  "Versatile" フォントライブラリ
# %description -l ja
# VFlib は C 言語で書かれたフォントライブラリで、指定したフォン
# トのビットマップを得るための関数群を持っています。VFlib の特徴は、
# さまざまなフォーマットのフォントをフォーマットの違いを気にする
# ことなく統一的に使うことができるところにあります。
# VFlib では、以下のフォントフォーマットがサポートされています。
#     TeX 関連:       PK, GF, VF, TFM
#     Omega TeX 関連: OFM (レベル 0),OVF
#     X Window 関連:  PCF, BDF
# 著者:
# ------
#     角川裕次   <>

VFlib is a font library written in C language with several functions to
obtain bitmaps of fonts.  Unique feature of VFlib is that fonts in
different formats are accessed by unified interface.

VFlib supports the following font formats: TeX fonts:	    PK, GF, VF,
TFM Omega TeX fonts: OFM (level 0), OVF X Window fonts:  PCF, BDF Other
fonts:	   TrueType, Type 1, HBF, Syotai Club, JG, ekanji

    Hirotsugu Kakugawa   <>

%package      -n VFlib3-devel
License:        LGPL v2.1 or later
Summary:        development libraries for VFlib3
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}, texlive-devel, texlive-bin-devel

%description  -n VFlib3-devel
development libraries for VFlib3

    Hirotsugu Kakugawa   <>

%setup -q
#%patch0 -p1
%patch1 -p0
#%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

rm -f config.cache
# update config.{guess,sub}
%{?suse_update_config -f .}
./configure --prefix=/usr \
            --libdir=%{_libdir} \
            --mandir=%{_mandir} \
            --infodir=%{_infodir} \
            --with-kpathsea \
            --with-kpathsea-libdir=/usr/%{_lib} \
            --with-freetype \
            --with-freetype-includedir=/usr/include/freetype \
            --with-freetype-libdir=/usr/%{_lib} \
            --with-t1lib \
            --with-t1lib-libdir=/usr/%{_lib} \
            --with-texmf-root=/usr/share/texmf \
#            --with-kpathsea-includedir=/usr/include \
#            --with-t1lib-includedir=/usr/include \

[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
make prefix=$RPM_BUILD_ROOT/usr \
     infodir=$RPM_BUILD_ROOT%{_infodir} \
     mandir=$RPM_BUILD_ROOT%{_mandir} \
     libdir=$RPM_BUILD_ROOT%{_libdir} \
install -m 644 $RPM_SOURCE_DIR/vflibcap-tex $RPM_BUILD_ROOT/usr/share/VFlib/%{version}/

for i in VFlib-36
    %install_info --info-dir=%{_infodir} %{_infodir}/${i}.info.gz

for i in VFlib-36
    %install_info_delete --info-dir=%{_infodir} %{_infodir}/${i}.info.gz


%defattr(-, root, root)
%doc %{_infodir}/VFlib*info*
%dir /usr/share/VFlib
%dir /usr/share/VFlib/site
%dir /usr/share/VFlib/%{version}
%dir /usr/share/VFlib/%{version}/doc/
%doc /usr/share/VFlib/%{version}/doc/*
%dir /usr/share/VFlib/%{version}/t1lib/
%dir /usr/share/VFlib/%{version}/ccv/
%dir /usr/share/VFlib/%{version}/ascii-jtex/

%files -n VFlib3-devel
%defattr(-, root, root)

* Thu Apr 26 2007
- use texlive for building
* Tue Jan 16 2007
- update to 3.6.14.
  • Enhanced vflmkcaptex for searching dvips config files.
  • Upgrade to T1Lib 5.1.
- remove VFlib3-3.6.12-missing-headers.patch,
  VFlib3-3.6.12-gcc33.patch (included upstream).
* Thu Jan 26 2006
- Added %%install_info_prereq.
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Fri Sep 23 2005
- fix implicit declarations
* Tue Jul 12 2005
- Bugzilla #95088: add patch by Olaf Hering <> to
  remove a few compiler warnings on PPC.
- add te_kpath to "Requires:" of VFlib3-devel
* Mon May 24 2004
- get rid of some compiler warnings
* Mon Jan 12 2004
- removed run_ldconfig
* Sat Jan 10 2004
- add %%run_ldconfig
* Sun Jun 15 2003
- fix "directory not owned by any package".
* Thu Apr 24 2003
- fix install_info --delete call and move from preun to postun
* Fri Feb 14 2003
- update to 3.6.13
- use %%install_info macro (Bug #23389)
- fix info dir
* Thu Jan 23 2003
- Fixed ppc64 libtool problem, fixed gcc 3.3 compile problem.
* Sat Aug 10 2002
- update to 3.6.12
  * Inproved vflimkcaptex to read to obtain device resolution.
  * Bug fix of vflimkcaptex.
  * Fixed memory leaks as possible.
  * Upgrade to T1Lib 1.3.
- VFlib3-devel should require VFlib3
- add directories to files list which didn't belong to any package
* Wed Apr 10 2002
- use %%{_libdir}
- remove --with-kpathsea-includedir=/usr/include and
  --with-t1lib-includedir=/usr/include because gcc 3.1 doesn't
  like it.
* Sat Aug 11 2001
- update to VFlib3-3.6.10
- remove VFlib3-3.6.10-make-missing-glyph.patch (included upstream)
- remove VFlib3-3.6.10-vflibcaps.patch and add a "vflibcap-tex"
  working for pTeX/pLaTeX as an extra source file instead
- prefer pk fonts to Type1 fonts again, Type1 fonts are rendered
  too slow especially the Wadalab fonts for CJK-LaTeX. pk
  fonts are only slow once, when they have to be created. The
  rendering later is fast. On top of that, there is a spacing
  problem with the Wadalab PostScript fonts, they are spaced
  much too wide (this problem was not present in VFlib3-3.6.9).
* Tue Mar 06 2001
- add "jis" and "jisg" to '((ascii-jtex-kanji "%%f.jtex")'
  font-mapping these fonts are used for example by the
  new Japanese document classes from the jsclasses package.
* Fri Feb 23 2001
- changes to vflibcap-tex:
  prefer Type1 fonts to pk fonts, add entry for TrueType fonts,
  add option to make missing pk fonts
- fix the creation of missing pk fonts in fsearchc.
* Fri Feb 23 2001
- added info files to file list
* Fri Feb 16 2001
- new package: VFlib3 version 3.6.9