6c15ec5
%global pkgname roboto
e5a50bc
%global srcname %{pkgname}-unhinted
6c15ec5
%global fontname google-roboto
9268422
%global fontconf 64-%{fontname}
6c15ec5
6c15ec5
Name: google-roboto-fonts
5da4c9a
Version: 2.138
8c44669
Release: %autorelease
6c15ec5
Summary: Google Roboto fonts
6c15ec5
5c93b2a
# Only the metainfo.xml files are CC0-1.0
5c93b2a
License: Apache-2.0 AND CC0-1.0
e5a50bc
URL: https://github.com/google/roboto
e5a50bc
Source0: https://github.com/google/%{pkgname}/releases/download/v%{version}/%{srcname}.zip
b5e245d
Source1: %{fontconf}-condensed-fontconfig.conf
b5e245d
Source2: %{fontconf}-fontconfig.conf
b5e245d
Source3: %{fontname}-condensed.metainfo.xml
b5e245d
Source4: %{fontname}.metainfo.xml
6c15ec5
BuildArch: noarch
6c15ec5
6c15ec5
BuildRequires: fontpackages-devel
6c15ec5
54fb239
Obsoletes: %{fontname}-common < 2.134-1
9aac9d4
6c15ec5
%description
6c15ec5
Roboto is a sans-serif typeface family introduced with Android Ice Cream
6c15ec5
Sandwich operating system. Google describes the font as "modern, yet
6c15ec5
approachable" and "emotional".
6c15ec5
6c15ec5
%package -n %{fontname}-condensed-fonts
6c15ec5
Summary: Google Roboto condensed fonts
54fb239
Obsoletes: %{fontname}-common < 2.134-1
6c15ec5
6c15ec5
%description -n %{fontname}-condensed-fonts
6c15ec5
Google Roboto condensed fonts.
6c15ec5
6c15ec5
%prep
5da4c9a
%autosetup -c -n %{srcname}
6c15ec5
6c15ec5
%build
6c15ec5
6c15ec5
%install
6c15ec5
# install fonts
6c15ec5
install -m 0755 -d %{buildroot}%{_fontdir}
e5a50bc
install -m 0644 -p Roboto*.ttf %{buildroot}%{_fontdir}
6c15ec5
6c15ec5
# install fontconfig files
6c15ec5
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
6c15ec5
                   %{buildroot}%{_fontconfig_confdir}
b5e245d
install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
b5e245d
install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-condensed.conf
6c15ec5
for fconf in %{fontconf}.conf %{fontconf}-condensed.conf; do
6c15ec5
  ln -s %{_fontconfig_templatedir}/$fconf %{buildroot}%{_fontconfig_confdir}/$fconf
6c15ec5
done
6c15ec5
f2fd0b2
# install appdata
f2fd0b2
install -m 0755 -d %{buildroot}%{_datadir}/appdata
b5e245d
install -m 0644 -p %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/appdata
f2fd0b2
6c15ec5
%_font_pkg -f %{fontconf}.conf Roboto-*.ttf
f2fd0b2
%{_datadir}/appdata/%{fontname}.metainfo.xml
54fb239
%license LICENSE
6c15ec5
6c15ec5
%_font_pkg -n condensed -f %{fontconf}-condensed.conf RobotoCondensed-*.ttf
f2fd0b2
%{_datadir}/appdata/%{fontname}-condensed.metainfo.xml
e5a50bc
%license LICENSE
6c15ec5
6c15ec5
%changelog
8c44669
%autochangelog