LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File VFlib3.spec of Package VFlib3 (Project M17N)

# spec file for package VFlib3
# Copyright (c) 2012 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:  fdupes
BuildRequires:  freetype-devel
BuildRequires:  t1lib-devel
BuildRequires:  texlive-bin-devel
BuildRequires:  texlive-devel
BuildRequires:  xorg-x11
BuildRequires:  xorg-x11-devel
PreReq:         %install_info_prereq
Version:        3.6.14
Release:        0
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
Patch1:         VFlib3-ppc64.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
License:        LGPL-2.1+
Group:          System/Libraries
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>

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
Summary:        Development libraries for VFlib3
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       texlive-bin-devel
Requires:       texlive-devel
Requires:       freetype-devel

%description  -n VFlib3-devel
Development libraries for VFlib3

%setup -q
%patch1 -p0
%patch3 -p1
%patch4 -p1
%patch5 -p1

rm -f config.cache
./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 \
make %{?_smp_mflags}
#            --with-kpathsea-includedir=/usr/include \
#            --with-t1lib-includedir=/usr/include \

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}/

%fdupes %{buildroot}

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)