1 |
%global fontname adf-gillius |
2 |
%global fontconf 69-%{fontname} |
3 |
|
4 |
%global common_desc \ |
5 |
The Gillius family from the Arkandis Digital Foundry is a set of sans-serif \ |
6 |
typefaces intended as an alternative to Gill Sans. Its two widths, regular and \ |
7 |
condensed, both feature a roman and an italic, and each includes a regular and \ |
8 |
bold weight. |
9 |
|
10 |
Name: %{fontname}-fonts |
11 |
Version: 1.008 |
12 |
Release: %mkrel 4 |
13 |
Summary: Gillius ADF sans-serif typeface family |
14 |
|
15 |
Group: System/Fonts/True type |
16 |
License: GPLv2+ with exceptions |
17 |
URL: http://arkandis.tuxfamily.org/adffonts.html |
18 |
Source0: http://arkandis.tuxfamily.org/fonts/Gillius-Collection.zip |
19 |
Source1: %{fontname}-fontconfig.conf |
20 |
Source2: %{fontname}-2-fontconfig.conf |
21 |
|
22 |
BuildArch: noarch |
23 |
BuildRequires: fontpackages-devel |
24 |
|
25 |
Requires: %{name}-common = %{version}-%{release} |
26 |
%description |
27 |
%common_desc |
28 |
|
29 |
This is the base variant. |
30 |
|
31 |
%_font_pkg -f %{fontconf}.conf GilliusADF-*.otf |
32 |
|
33 |
|
34 |
%package common |
35 |
Summary: Common files of %{fontname} |
36 |
Requires: fontpackages-filesystem |
37 |
|
38 |
%description common |
39 |
%common_desc |
40 |
|
41 |
This package consists of files used by other %{fontname} packages |
42 |
|
43 |
|
44 |
%package -n %{fontname}-2-fonts |
45 |
Summary: Gillius ADF No2 sans-serif typeface family |
46 |
Requires: %{name}-common = %{version}-%{release} |
47 |
|
48 |
%description -n %{fontname}-2-fonts |
49 |
%common_desc |
50 |
|
51 |
A slightly rounder variant, which features the same set of weights, |
52 |
widths, and slopes. |
53 |
|
54 |
%_font_pkg -n 2 -f %{fontconf}-2.conf GilliusADFNo2-*.otf |
55 |
|
56 |
%prep |
57 |
%setup -q -n Gillius-Collection |
58 |
for file in NOTICE OTF/COPYING; do |
59 |
sed "s|\r||g" $file > $file.new && \ |
60 |
touch -r $file $file.new && \ |
61 |
mv $file.new $file |
62 |
done |
63 |
|
64 |
|
65 |
%build |
66 |
|
67 |
|
68 |
%install |
69 |
install -m 0755 -d %{buildroot}%{_fontdir} |
70 |
install -m 0644 -p OTF/*.otf %{buildroot}%{_fontdir} |
71 |
|
72 |
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ |
73 |
%{buildroot}%{_fontconfig_confdir} |
74 |
|
75 |
install -m 0644 -p %{SOURCE1} \ |
76 |
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf |
77 |
ln -s %{_fontconfig_templatedir}/%{fontconf}.conf \ |
78 |
%{buildroot}%{_fontconfig_confdir}/%{fontconf}.conf |
79 |
install -m 0644 -p %{SOURCE2} \ |
80 |
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-2.conf |
81 |
ln -s %{_fontconfig_templatedir}/%{fontconf}-2.conf \ |
82 |
%{buildroot}%{_fontconfig_confdir}/%{fontconf}-2.conf |
83 |
|
84 |
|
85 |
%files common |
86 |
%defattr(0644,root,root,0755) |
87 |
%doc NOTICE OTF/COPYING |
88 |
|