- Improve the spec file to meet the packaging guidelines. (#477418)

- Updates to 4.7.5-2 (#628540)
f38
Akira TAGOH 14 years ago
parent 0866e1ec03
commit 96d1abe5b4

@ -1,10 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd"> <!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig> <fontconfig>
<!-- Generic names -->
<alias> <alias>
<family>Linux Libertine</family> <family>Linux Biolinum</family>
<accept> <default>
<family>Linux Libertine O</family> <family>sans-serif</family>
</accept> </default>
</alias> </alias>
</fontconfig> </fontconfig>

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Generic names -->
<alias>
<family>Linux Libertine</family>
<default>
<family>serif</family>
</default>
</alias>
<!-- Font substitution -->
<alias binding="same">
<family>Times Roman</family>
<accept>
<family>Linux Libertine</family>
</accept>
</alias>
<alias binding="same">
<family>Times New Roman</family>
<accept>
<family>Linux Libertine</family>
</accept>
</alias>
<alias binding="same">
<family>Linux Libertine O</family>
<accept>
<family>Linux Libertine</family>
</accept>
</alias>
</fontconfig>

@ -1,52 +1,70 @@
%global fontname linux-libertine %global fontname linux-libertine
%global fontconf 75-%{fontname}.conf %global prio_libertine 60
%global archivename LinLibertineSRC %global prio_biolinum 61
%global fontconf_libertine %{prio_libertine}-%{fontname}-libertine.conf
%global fontconf_biolinum %{prio_biolinum}-%{fontname}-biolinum.conf
%global archivename LinLibertine
%define posttag 2
%define common_desc \
The Linux Libertine Open Fonts are a TrueType font family for practical \
use in documents. They were created to provide a free alternative to \
proprietary standard fonts.
Name: %{fontname}-fonts Name: %{fontname}-fonts
Version: 4.4.1 Version: 4.7.5
Release: 3%{?dist} Release: 1.%{posttag}%{?dist}
Summary: Linux Libertine Open Fonts Summary: Linux Libertine Open Fonts
Group: User Interface/X Group: User Interface/X
License: GPLv2+ with exceptions or OFL License: GPLv2+ with exceptions or OFL
URL: http://linuxlibertine.sf.net URL: http://linuxlibertine.sf.net
Source0: http://download.sourceforge.net/sourceforge/linuxlibertine/LinLibertineSRC-4.4.1.tgz Source0: http://download.sourceforge.net/sourceforge/linuxlibertine/LinLibertineSRC-%{version}-%{posttag}.tgz
Source1: %{name}-fontconfig.conf Source1: %{name}-libertine-fontconfig.conf
Source2: %{name}-biolinum-fontconfig.conf
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch BuildArch: noarch
BuildRequires: fontpackages-devel BuildRequires: fontpackages-devel
BuildRequires: fontforge BuildRequires: fontforge
Requires: fontpackages-filesystem Requires: %{name}-common = %{version}-%{release}
%description %description
The Linux Libertine Open Fonts are a TrueType font family for practical %common_desc
use in documents. They were created to provide a free alternative to
proprietary standard fonts. This package contains Serif fonts.
%package -n %{fontname}-biolinum-fonts
Summary: Sans-serif fonts from Linux Libertine Open Fonts
Requires: %{name}-common = %{version}-%{release}
Group: User Interface/X
%description -n %{fontname}-biolinum-fonts
%common_desc
This package contains Sans fonts.
%package common
Summary: Common files for Linux Libertine Open Fonts
Requires: fontpackages-filesystem
Group: User Interface/X
%description common
%common_desc
This package consists of files used by other %{name} packages.
%prep %prep
%setup -q -n %{archivename} %setup -q -n %{archivename}
sed -i -e 's/\r//' OFL.txt sed -i -e 's/\r//' OFL.txt
%build %build
fontforge -lang=ff -script "-" *.sfd <<EOF for i in $(find -name '*.sfd'); do
i = 1 (cd scripts;
while (i < \$argc) ./bailly-2.sh "../$i" ttf
Open(\$argv[i], 1) )
fontname = StrJoin(StrSplit(\$fontname, "O"), "") done
familyname = StrJoin(StrSplit(\$familyname, " O"), "") mv scripts/*.ttf .
fullname = StrJoin(StrSplit(\$fullname, " O"), "")
SetFontNames(fontname, familyname, fullname)
ScaleToEm(2048)
RoundToInt()
SetFontOrder(2)
SelectAll()
AutoInstr()
Generate(\$fontname + ".ttf")
Close()
i++
endloop
EOF
%install %install
rm -fr %{buildroot} rm -fr %{buildroot}
@ -57,17 +75,31 @@ install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir} %{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE1} \ install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf} %{buildroot}%{_fontconfig_templatedir}/%{fontconf_libertine}
ln -s %{_fontconfig_templatedir}/%{fontconf} \ install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf} %{buildroot}%{_fontconfig_templatedir}/%{fontconf_biolinum}
for fconf in %{fontconf_libertine} %{fontconf_biolinum}; do
ln -s %{_fontconfig_templatedir}/$fconf \
%{buildroot}%{_fontconfig_confdir}/$fconf
done
%clean %clean
rm -fr %{buildroot} rm -fr %{buildroot}
%_font_pkg -f %{fontconf} *.ttf %files common
%doc OFL.txt GPL.txt ChangeLog.txt LICENCE.txt Readme Readme-TEX.txt %defattr(0644, root, root, 0755)
%doc Bugs.txt ChangeLog.txt GPL.txt LICENCE.txt OFL.txt Readme-TEX.txt Readme.txt
%_font_pkg -f %{fontconf_libertine} LinLibertine*.ttf
%_font_pkg -n biolinum -f %{fontconf_biolinum} LinBiolinum*.ttf
%changelog %changelog
* Thu Feb 17 2011 Akira TAGOH <tagoh@redhat.com> - 4.4.1-4
- Improve the spec file to meet the packaging guidelines. (#477418)
- Updates to 4.7.5-2 (#628540)
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.1-3 * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

Loading…
Cancel
Save