forked from silenc3r/fedora-better-fonts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathubuntu-fonts.spec
49 lines (38 loc) · 1.47 KB
/
ubuntu-fonts.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
%global fontname ubuntu
%global fontconf 61-%{fontname}.conf
Name: %{fontname}-fonts
Version: 0.83
Release: 2%{?dist}
Summary: Ubuntu font family
License: Ubuntu Font Licence 1.0
URL: https://font.ubuntu.com/
Source0: https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-0.83.zip
Source1: %{fontname}-fontconfig.conf
BuildArch: noarch
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem
%description
The new Ubuntu Font Family was started to enable the personality of Ubuntu
to be seen and felt in every menu, button and dialog. The typeface is
sans-serif, uses OpenType features and is manually hinted for clarity on
desktop and mobile computing screens.
%prep
%setup -q -n ubuntu-font-family-%{version}
%build
%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
%{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{SOURCE1} \
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
%_font_pkg -f *-%{fontname}.conf *.ttf
%license LICENCE.txt LICENCE-FAQ.txt copyright.txt TRADEMARKS.txt
%doc CONTRIBUTING.txt FONTLOG.txt README.txt
%changelog
* Thu Oct 29 2020 Dawid Zych <[email protected]> - 0.83-2
- Fix broken symlink by @upanasiuk
* Fri Jan 06 2017 Dawid Zych <[email protected]> - 0.83-1
- Initial packaging.