stix-fonts/stix-fonts.spec

171 lines
4.6 KiB
RPMSpec
Raw Normal View History

2008-12-17 19:58:52 +00:00
%define fontname stix
%define fontconf 61-%{fontname}
2007-11-01 18:20:55 +00:00
2007-11-01 15:37:32 +00:00
%define archivename STIXBeta
2008-12-17 19:58:52 +00:00
%define common_desc \
The mission of the Scientific and Technical Information Exchange (STIX) font \
creation project is the preparation of a comprehensive set of fonts that serve \
the scientific and engineering community in the process from manuscript \
creation through final publication, both in electronic and print formats.
2007-11-01 15:37:32 +00:00
Name: %{fontname}-fonts
Version: 0.9
2008-12-17 19:58:52 +00:00
Release: 9%{?dist}
2007-11-01 15:37:32 +00:00
Summary: STIX scientific and engineering fonts
2008-12-17 19:58:52 +00:00
Group: User Interface/X
License: STIX
URL: http://www.stixfonts.org/
Source0: %{archivename}.zip
Source1: %{name}-License.txt
Source2: stix-fonts-fontconfig.conf
Source3: stix-fonts-pua-fontconfig.conf
Source4: stix-fonts-integrals-fontconfig.conf
Source5: stix-fonts-sizes-fontconfig.conf
Source6: stix-fonts-variants-fontconfig.conf
2007-11-01 15:37:32 +00:00
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
2008-12-17 19:58:52 +00:00
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
2007-11-01 15:37:32 +00:00
%description
2008-12-17 19:58:52 +00:00
%common_desc
2007-11-01 15:37:32 +00:00
This package includes base Unicode fonts containing most glyphs for standard
use.
2008-12-17 19:58:52 +00:00
%package pua
2007-11-01 15:37:32 +00:00
Summary: STIX scientific and engineering fonts, PUA glyphs
2008-12-17 19:58:52 +00:00
Group: User Interface/X
2007-11-01 15:37:32 +00:00
Requires: %{name} = %{version}-%{release}
%description pua
2008-12-17 19:58:52 +00:00
%common_desc
2007-11-01 15:37:32 +00:00
This package includes fonts containing glyphs called out from the Unicode
Private Use Area (PUA) range. Glyphs in this range do not have an official
Unicode codepoint. They're generally accessible only through specialised
software. Text using them will break if they're ever accepted by the Unicode
Consortium and moved to an official codepoint.
2008-12-17 19:58:52 +00:00
%_font_pkg -n pua -f %{fontconf}-pua.conf STIXNonUni*otf
2007-11-01 15:37:32 +00:00
2008-12-17 19:58:52 +00:00
%package integrals
2007-11-01 15:37:32 +00:00
Summary: STIX scientific and engineering fonts, additional integral glyphs
2008-12-17 19:58:52 +00:00
Group: User Interface/X
2007-11-01 15:37:32 +00:00
Requires: %{name} = %{version}-%{release}
%description integrals
2008-12-17 19:58:52 +00:00
%common_desc
2007-11-01 15:37:32 +00:00
This package includes fonts containing additional integrals of various size
and slant.
2008-12-17 19:58:52 +00:00
%_font_pkg -n integrals -f %{fontconf}-integrals.conf STIXInt*.otf
2007-11-01 15:37:32 +00:00
2008-12-17 19:58:52 +00:00
%package sizes
2007-11-01 15:37:32 +00:00
Summary: STIX scientific and engineering fonts, additional glyph sizes
2008-12-17 19:58:52 +00:00
Group: User Interface/X
2007-11-01 15:37:32 +00:00
Requires: %{name} = %{version}-%{release}
%description sizes
2008-12-17 19:58:52 +00:00
%common_desc
2007-11-01 15:37:32 +00:00
This package includes fonts containing glyphs in additional sizes (Mostly
"fence" and "piece" glyphs).
2008-12-17 19:58:52 +00:00
%_font_pkg -n sizes -f %{fontconf}-sizes.conf STIXSiz*.otf
2007-11-01 15:37:32 +00:00
2008-12-17 19:58:52 +00:00
%package variants
2007-11-01 15:37:32 +00:00
Summary: STIX scientific and engineering fonts, additional glyph variants
2008-12-17 19:58:52 +00:00
Group: User Interface/X
2007-11-01 15:37:32 +00:00
Requires: %{name} = %{version}-%{release}
%description variants
2008-12-17 19:58:52 +00:00
%common_desc
2007-11-01 15:37:32 +00:00
This package includes fonts containing alternative variants of some glyphs.
2008-12-17 19:58:52 +00:00
%_font_pkg -n variants -f %{fontconf}-variants.conf STIXVar*otf
2007-11-01 15:37:32 +00:00
%prep
%setup -c -q -n %{archivename}
install -m 0644 -p %{SOURCE1} License.txt
for txt in *.txt ; do
fold -s $txt > $txt.new
sed -i 's/\r//' $txt.new
touch -r $txt $txt.new
mv $txt.new $txt
done
%build
%install
rm -fr %{buildroot}
2007-11-01 17:53:36 +00:00
2008-12-17 19:58:52 +00:00
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.otf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE2} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
install -m 0644 -p %{SOURCE3} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-pua.conf
install -m 0644 -p %{SOURCE4} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-integrals.conf
install -m 0644 -p %{SOURCE5} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sizes.conf
install -m 0644 -p %{SOURCE6} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-variants.conf
for fontconf in %{fontconf}.conf \
%{fontconf}-pua.conf \
%{fontconf}-integrals.conf \
%{fontconf}-sizes.conf \
%{fontconf}-variants.conf ; do
ln -s %{_fontconfig_templatedir}/$fontconf \
%{buildroot}%{_fontconfig_confdir}/$fontconf
done
2007-11-01 17:53:36 +00:00
2007-11-01 15:37:32 +00:00
%clean
rm -fr %{buildroot}
2008-12-17 19:58:52 +00:00
%_font_pkg -f %{fontconf}.conf STIXGeneral*otf
2007-11-01 15:37:32 +00:00
%doc *.txt
2008-12-17 19:58:52 +00:00
%dir %{_fontdir}
2007-11-01 15:37:32 +00:00
2008-12-17 19:58:52 +00:00
%changelog
* Sun Nov 23 2008 <nicolas.mailhot at laposte.net>
- 0.9-9
rpm-fonts renamed to “fontpackages”
2007-11-01 15:37:32 +00:00
2008-12-17 19:58:52 +00:00
* Fri Nov 14 2008 <nicolas.mailhot at laposte.net>
- 0.9-8
Rebuild using new « rpm-fonts »
2007-11-01 15:37:32 +00:00
* Fri Jul 11 2008 <nicolas.mailhot at laposte.net>
- 0.9-7
Fedora 10 alpha general package cleanup
2007-11-01 15:37:32 +00:00
* Thu Nov 1 2007 <nicolas.mailhot at laposte.net>
2007-11-01 18:20:55 +00:00
0.9-6
2007-11-01 17:53:36 +00:00
Add some fontconfig aliasing rules
2007-11-01 15:37:32 +00:00
0.9-4
Initial experimental packaging