From c36ba0bc6587c7c3ed4f8fc588e6a308d4762d03 Mon Sep 17 00:00:00 2001 From: Milivoje Legenovic Date: Feb 14 2021 14:52:07 +0000 Subject: Initial commit Signed-off-by: Milivoje Legenovic --- diff --git a/81-ubuntu.conf b/81-ubuntu.conf new file mode 100644 index 0000000..751bb11 --- /dev/null +++ b/81-ubuntu.conf @@ -0,0 +1,66 @@ + + + + + + + + + Ubuntu Light + + + Ubuntu + + + Light + + + + + + Ubuntu Light Italic + + + Ubuntu + + + Light Italic + + + + + + Ubuntu Medium + + + Ubuntu + + + Medium + + + demibold + + + + + + Ubuntu Medium Italic + + + Ubuntu + + + Medium Italic + + + demibold + + + + diff --git a/ubuntu-font-family.spec b/ubuntu-font-family.spec new file mode 100644 index 0000000..18a2808 --- /dev/null +++ b/ubuntu-font-family.spec @@ -0,0 +1,39 @@ +%global fontconf 81-ubuntu.conf + +Name: ubuntu-font-family +Version: 0.83 +Release: 1%{?dist} +Summary: Ubuntu font family + +License: Ubuntu Font Licence 1.0 +URL: https://design.ubuntu.com/font/ +Source0: https://assets.ubuntu.com/v1/fad7939b-%{name}-%{version}.zip +Source1: %{fontconf} + +BuildArch: noarch +BuildRequires: fontpackages-devel +Requires: fontpackages-filesystem + +%description +Ubuntu font + +%prep +%autosetup +chmod 644 LICENCE.txt + +%build +# nothing to do + +%install +rm -rf %{buildroot} +install -dm755 %{buildroot}%{_fontconfig_confdir} +install -dm755 %{buildroot}%{_fontbasedir}/ubuntu +install -Dm644 -t %{buildroot}%{_fontbasedir}/ubuntu *.ttf +install -Dm644 %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf} +ln -s %{_fontconfig_templatedir}/%{fontconf} %{buildroot}%{_fontconfig_confdir}/%{fontconf} + +%files +%license LICENCE.txt +%{_fontconfig_confdir}/%{fontconf} +%{_fontconfig_templatedir}/%{fontconf} +%{_fontbasedir}/ubuntu/