diff --git a/64-google-roboto-condensed-fontconfig.conf b/64-google-roboto-condensed-fontconfig.conf new file mode 100644 index 0000000..375db0e --- /dev/null +++ b/64-google-roboto-condensed-fontconfig.conf @@ -0,0 +1,25 @@ + + + + + sans-serif + + Roboto Condensed + + + + Roboto Condensed + + sans-serif + + + + + Roboto Condensed + + + condensed + + + + diff --git a/64-google-roboto-fontconfig.conf b/64-google-roboto-fontconfig.conf new file mode 100644 index 0000000..18c73b3 --- /dev/null +++ b/64-google-roboto-fontconfig.conf @@ -0,0 +1,49 @@ + + + + + sans-serif + + Roboto + + + + Roboto + + sans-serif + + + + + Thin + + + thin + + + + + Thin Italic + + + thin + + + + + Black + + + black + + + + + Black Italic + + + black + + + + diff --git a/README.md b/README.md index 76e6b54..9f8c20d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ttf-roboto +Google’s signature family of fonts, the default font on Android and Chrome OS, and the recommended font for Google’s visual language, Material Design. + diff --git a/google-roboto-condensed.metainfo.xml b/google-roboto-condensed.metainfo.xml new file mode 100644 index 0000000..3a48727 --- /dev/null +++ b/google-roboto-condensed.metainfo.xml @@ -0,0 +1,6 @@ + + + google-roboto-condensed + CC0-1.0 + google-roboto + diff --git a/google-roboto.metainfo.xml b/google-roboto.metainfo.xml new file mode 100644 index 0000000..c721d13 --- /dev/null +++ b/google-roboto.metainfo.xml @@ -0,0 +1,15 @@ + + + google-roboto + CC0-1.0 + Roboto + Roboto font family + +

Roboto is a sans-serif typeface family introduced with Android Ice Cream + Sandwich operating system. Google describes the font as "modern, yet + approachable" and "emotional". +

+
+ dtardon@redhat.com + https://www.google.com/fonts/specimen/Roboto +
diff --git a/ttf-roboto.spec b/ttf-roboto.spec new file mode 100644 index 0000000..f025ce1 --- /dev/null +++ b/ttf-roboto.spec @@ -0,0 +1,69 @@ +Name: ttf-roboto +Version: 2.138 +Release: 1mamba +Summary: Google’s signature family of fonts +Group: System/Fonts +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://material.google.com/style/typography.html +Source: https://sources.archlinux.org/other/packages/ttf-roboto/ttf-roboto-hinted-%{version}.zip +Source1: 64-google-roboto-fontconfig.conf +Source2: 64-google-roboto-condensed-fontconfig.conf +Source3: google-roboto.metainfo.xml +Source4: google-roboto-condensed.metainfo.xml +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END + +%description +Google’s signature family of fonts, the default font on Android and Chrome OS, and the recommended font for Google’s visual language, Material Design. + +%prep +%setup -q -c %{name}-%{version} + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +# install fonts (From Arch) +install -Dm644 *.ttf -t %{buildroot}%{_datadir}/fonts/TTF + +# install fontconfig files (from Fedora) +install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/fonts/conf.avail/64-google-roboto.conf +install -D -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/fonts/conf.avail/64-google-roboto-condensed.conf +install -d -m0755 %{buildroot}%{_sysconfdir}/fonts/conf.d +ln -s ../conf.avail/64-google-roboto.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/64-google-roboto.conf +ln -s ../conf.avail/64-google-roboto-condensed.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/64-google-roboto-condensed.conf + +# install appdata (from Fedora) +install -m 0755 -d %{buildroot}%{_datadir}/appdata +install -m 0644 -p %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/appdata + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache +: + +%postun +[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache +: + +%files +%defattr(-,root,root) +%{_sysconfdir}/fonts/conf.d/64-google-roboto.conf +%{_sysconfdir}/fonts/conf.d/64-google-roboto-condensed.conf +%{_sysconfdir}/fonts/conf.avail/64-google-roboto-condensed.conf +%{_sysconfdir}/fonts/conf.avail/64-google-roboto.conf +%{_datadir}/appdata/google-roboto-condensed.metainfo.xml +%{_datadir}/appdata/google-roboto.metainfo.xml +%{_datadir}/fonts/TTF/Roboto-*.ttf +%{_datadir}/fonts/TTF/RobotoCondensed-*.ttf +%doc LICENSE + +%changelog +* Sun Mar 10 2024 Silvan Calarco 2.138-1mamba +- package created using the webbuild interface