Blob Blame Raw
%global fontname julietaula-montserrat
%global fontconf 61-%{fontname}.conf
%global commit b0153c845dc0835915d97facd61367d71710e99c
%global commitdate 20151221
#%%global shortcommit %%(c=%%{commit}; echo ${c:0:7})
#%%global gitversion .git%%{commitdate}.%%{shortcommit}

#global archivename %%{name}-%%{version}

Name:		julietaula-montserrat-fonts
Version:	%{commitdate}
Release:	3%{?dist}
Summary:	Sans-serif typeface created by Julieta Ulanovsky

License:	OFL
Source0:	%{url}/archive/%{commit}/Montserrat-%{commit}.zip
Source1:	%{name}-fontconfig.conf
Source2:	%{fontname}.metainfo.xml
Source3:	LICENSE.txt

BuildArch:	noarch
BuildRequires:	fontpackages-devel
%if 0%{?fedora} >= 21
BuildRequires:	libappstream-glib
Requires:	fontpackages-filesystem

A typeface created by Julieta Ulanovsky inspired by signs around 
the Montserrat area of Buenos Aires, Argentina

%setup -q -c
cp -p %{SOURCE3} .


install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p Montserrat-%{commit}/ttf/*.ttf %{buildroot}%{_fontdir}
install -m 0644 -p Montserrat-%{commit}/otf/*.otf %{buildroot}%{_fontdir}

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \

install -m 0644 -p %{SOURCE1} \
ln -s %{_fontconfig_templatedir}/%{fontconf} \

%if 0%{?fedora} >= 21
install -Dm 0644 -p %{SOURCE2} \

appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{fontname}.metainfo.xml
%_font_pkg -f %{fontconf} {*.ttf,*.otf}
%if 0%{?fedora} >= 21
%license LICENSE.txt

* Fri Mar 25 2016 Luya Tshimbalanga <> - 20151221-3
- Switched doc section to license
- Deleted oft and ttf subdirectories

* Fri Mar 25 2016 Luya Tshimbalanga <> - 20151221-2
- Moved appstream-util to check section

* Thu Mar 24 2016 Luya Tshimbalanga <> - 20151221-1
- Initial build