File VFlib3.spec of Package VFlib3
#
# spec file for package VFlib3
#
# Copyright (c) 2011 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/
#
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
Version: 3.6.14
Release: 191
Requires: freetype, t1lib
Url: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/VFlib/
Source0: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/download/TypeHack/VFlib3-3.6.14.tar.bz2
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
#
#
# 著者:
# ------
#
# 角川裕次 <h.kakugawa@computer.org>
%description
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
%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
%prep
%setup -q
#%patch0 -p1
%patch1 -p0
#%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%build
rm -f config.cache
# update config.{guess,sub}
%{?suse_update_config -f .}
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE"
./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 \
%{_target_cpu}-suse-linux-gnu
make %{?_smp_mflags}
# --with-kpathsea-includedir=/usr/include \
# --with-t1lib-includedir=/usr/include \
%install
make prefix=$RPM_BUILD_ROOT/usr \
infodir=$RPM_BUILD_ROOT%{_infodir} \
mandir=$RPM_BUILD_ROOT%{_mandir} \
libdir=$RPM_BUILD_ROOT%{_libdir} \
install
install -m 644 $RPM_SOURCE_DIR/vflibcap-tex $RPM_BUILD_ROOT/usr/share/VFlib/%{version}/
%post
for i in VFlib-36
do
%install_info --info-dir=%{_infodir} %{_infodir}/${i}.info.gz
done
%postun
for i in VFlib-36
do
%install_info_delete --info-dir=%{_infodir} %{_infodir}/${i}.info.gz
done
%files
%defattr(-, root, root)
%doc ANNOUNCE* CHANGES COPYING* DISTRIB* INSTALL
%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/
/usr/share/VFlib/%{version}/t1lib/*
%dir /usr/share/VFlib/%{version}/ccv/
/usr/share/VFlib/%{version}/ccv/*
%dir /usr/share/VFlib/%{version}/ascii-jtex/
/usr/share/VFlib/%{version}/ascii-jtex/*
/usr/share/VFlib/%{version}/vflibcap*
/usr/bin/*
%{_libdir}/libVFlib3.so.*
%files -n VFlib3-devel
%defattr(-, root, root)
%{_libdir}/libVFlib3.so
%{_libdir}/libVFlib3.la
/usr/include/*
%changelog