- add VFlib3-gcc15.patch, fix build with gcc15 OBS-URL: https://build.opensuse.org/request/show/1287539 OBS-URL: https://build.opensuse.org/package/show/M17N/VFlib3?expand=0&rev=24
153 lines
5.0 KiB
RPMSpec
153 lines
5.0 KiB
RPMSpec
#
|
|
# spec file for package VFlib3
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define libname libVFlib3-10
|
|
Name: VFlib3
|
|
Version: 3.7.2
|
|
Release: 0
|
|
Summary: Versatile Font Library
|
|
Summary(ja): "Versatile" フォントライブラリ
|
|
License: LGPL-2.1-or-later
|
|
Group: Development/Libraries/C and C++
|
|
URL: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/VFlib/
|
|
Source0: http://www-masu.ist.osaka-u.ac.jp/~kakugawa/download/TypeHack/VFlib3-%{version}.tar.gz
|
|
Source1: vflibcap-tex
|
|
Patch1: VFlib3-add-external.patch
|
|
Patch2: VFlib3-freetype2-fix.patch
|
|
Patch3: VFlib3-gcc14-fixes.patch
|
|
Patch4: VFlib3-gcc15.patch
|
|
BuildRequires: fdupes
|
|
BuildRequires: imake
|
|
BuildRequires: libtool
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: pkgconfig(freetype2)
|
|
BuildRequires: pkgconfig(kpathsea)
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xext)
|
|
Requires(post): %{install_info_prereq}
|
|
Requires(postun): %{install_info_prereq}
|
|
|
|
%description -l ja
|
|
VFlib は C 言語で書かれたフォントライブラリで、指定したフォン
|
|
トのビットマップを得るための関数群を持っています。VFlib の特徴は、
|
|
さまざまなフォーマットのフォントをフォーマットの違いを気にする
|
|
ことなく統一的に使うことができるところにあります。
|
|
|
|
VFlib では、以下のフォントフォーマットがサポートされています。
|
|
TeX 関連: PK, GF, VF, TFM
|
|
Omega TeX 関連: OFM (レベル 0),OVF
|
|
X Window 関連: PCF, BDF
|
|
|
|
%description
|
|
VFlib is a font library written in C language with several functions to
|
|
obtain bitmaps of fonts. A 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 %{libname}
|
|
Summary: Versatile font library VFlib3
|
|
Group: System/Libraries
|
|
|
|
%description -n %{libname}
|
|
VFlib is a font library written in C language with several functions to
|
|
obtain bitmaps of fonts. A 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: %{libname} = %{version}
|
|
Requires: pkgconfig(freetype2)
|
|
Requires: pkgconfig(kpathsea)
|
|
|
|
%description -n VFlib3-devel
|
|
Development headers and libraries for VFlib3
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
%configure \
|
|
--with-kpathsea \
|
|
--with-opentype \
|
|
--with-texmf-root=%{_datadir}/texmf \
|
|
--with-gettext
|
|
%make_build
|
|
|
|
%install
|
|
make prefix=%{buildroot}%{_prefix} \
|
|
infodir=%{buildroot}%{_infodir} \
|
|
mandir=%{buildroot}%{_mandir} \
|
|
includedir=%{buildroot}%{_includedir} \
|
|
libdir=%{buildroot}%{_libdir} \
|
|
bindir=%{buildroot}%{_bindir} \
|
|
datadir=%{buildroot}%{_datadir} \
|
|
runtimedir=%{buildroot}%{_datadir}/VFlib/%{version} \
|
|
install
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/VFlib/%{version}/
|
|
# remove duped docs
|
|
rm -rf %{buildroot}%{_datadir}/VFlib/%{version}/doc/
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
find %{buildroot} -type f -name "*.a" -delete -print
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
%post
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/VFlib-36.info%{ext_info}
|
|
|
|
%preun
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/VFlib-36.info%{ext_info}
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
%files
|
|
%doc ANNOUNCE* CHANGES DISTRIB*
|
|
%license LICENSE-FTL.TXT LICENSE-GPLV3.TXT
|
|
%{_infodir}/VFlib*info*
|
|
%dir %{_datadir}/VFlib
|
|
%dir %{_datadir}/VFlib/%{version}
|
|
%dir %{_datadir}/VFlib/%{version}/t1lib/
|
|
%{_datadir}/VFlib/%{version}/t1lib/*
|
|
%dir %{_datadir}/VFlib/%{version}/ccv/
|
|
%{_datadir}/VFlib/%{version}/ccv/*
|
|
%dir %{_datadir}/VFlib/%{version}/ascii-jtex/
|
|
%{_datadir}/VFlib/%{version}/ascii-jtex/*
|
|
%{_datadir}/VFlib/%{version}/vflibcap*
|
|
%{_bindir}/*
|
|
|
|
%files -n %{libname}
|
|
%{_libdir}/libVFlib3.so.*
|
|
|
|
%files -n VFlib3-devel
|
|
%{_libdir}/libVFlib3.so
|
|
%{_includedir}/*
|
|
|
|
%changelog
|