Blame SPECS/overpass-fonts.spec

b49c9f
%global fontname overpass
b49c9f
%global fontconf 60-%{fontname}.conf
b49c9f
%global monofontconf 60-%{fontname}-mono.conf
b49c9f
b49c9f
Name:		%{fontname}-fonts
b49c9f
Version:	3.0.2
b49c9f
Release:	3%{?dist}
b49c9f
Summary:	Typeface based on the U.S. interstate highway road signage type system
b49c9f
License:	OFL or LGPLv2+
b49c9f
URL:		https://github.com/RedHatBrand/overpass/
b49c9f
Source0:	https://github.com/RedHatBrand/Overpass/archive/%{version}.tar.gz
b49c9f
Source1:	%{name}-fontconfig.conf
b49c9f
Source2:	%{fontname}.metainfo.xml
b49c9f
Source3:	%{fontname}-mono-fonts-fontconfig.conf
b49c9f
Source4:	%{fontname}-mono.metainfo.xml
b49c9f
b49c9f
BuildArch:	noarch
b49c9f
BuildRequires:	fontpackages-devel
b49c9f
Requires:	fontpackages-filesystem
b49c9f
b49c9f
%description
b49c9f
Free and open source typeface based on the U.S. interstate highway road signage
b49c9f
type system; it is sans-serif and suitable for both body and titling text.
b49c9f
b49c9f
%package -n %{fontname}-mono-fonts
b49c9f
Summary:	Monospace version of overpass fonts
b49c9f
b49c9f
%description -n %{fontname}-mono-fonts
b49c9f
Free and open source typeface based on the U.S. interstate highway road signage
b49c9f
type system. This is the monospace family variant.
b49c9f
b49c9f
%prep
b49c9f
%setup -q -n Overpass-%{version}
b49c9f
b49c9f
%build
b49c9f
# Nothing to do here.
b49c9f
b49c9f
%install
b49c9f
install -m 0755 -d %{buildroot}%{_fontdir}
b49c9f
b49c9f
install -m 0644 -p desktop-fonts/overpass*/*.otf %{buildroot}%{_fontdir}
b49c9f
b49c9f
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
b49c9f
		%{buildroot}%{_fontconfig_confdir}
b49c9f
b49c9f
install -m 0644 -p %{SOURCE1} \
b49c9f
		%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
b49c9f
b49c9f
install -m 0644 -p %{SOURCE3} \
b49c9f
		%{buildroot}%{_fontconfig_templatedir}/%{monofontconf}
b49c9f
b49c9f
ln -s %{_fontconfig_templatedir}/%{fontconf} \
b49c9f
		%{buildroot}%{_fontconfig_confdir}/%{fontconf}
b49c9f
b49c9f
ln -s %{_fontconfig_templatedir}/%{monofontconf} \
b49c9f
                %{buildroot}%{_fontconfig_confdir}/%{monofontconf}
b49c9f
b49c9f
# Add AppStream metadata
b49c9f
install -Dm 0644 -p %{SOURCE2} \
b49c9f
	%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml
b49c9f
b49c9f
install -Dm 0644 -p %{SOURCE4} \
b49c9f
        %{buildroot}%{_datadir}/appdata/%{fontname}-mono.metainfo.xml
b49c9f
b49c9f
%_font_pkg -f %{fontconf} overpass-bold*.otf overpass-extra*.otf overpass-heavy*.otf overpass-italic*.otf overpass-light*.otf overpass-regular*.otf overpass-semibold*.otf overpass-thin*.otf
b49c9f
%doc README.md overpass-specimen.pdf
b49c9f
%license LICENSE.md
b49c9f
%{_datadir}/appdata/%{fontname}.metainfo.xml
b49c9f
b49c9f
%_font_pkg -n overpass-mono -f %{monofontconf} overpass-mono-*.otf
b49c9f
%doc README.md overpass-mono-specimen.pdf
b49c9f
%license LICENSE.md
b49c9f
%{_datadir}/appdata/%{fontname}-mono.metainfo.xml
b49c9f
b49c9f
%changelog
b49c9f
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
b49c9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b49c9f
b49c9f
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-2
b49c9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
b49c9f
b49c9f
* Thu Jun  1 2017 Tom Callaway <spot@fedoraproject.org> - 3.0.2-1
b49c9f
- update to 3.0.2
b49c9f
- move to otf files
b49c9f
b49c9f
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.0-2
b49c9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b49c9f
b49c9f
* Wed Nov 16 2016 Tom Callaway <spot@fedoraproject.org> - 3.0-1
b49c9f
- update to 3.0
b49c9f
- add mono subpackage
b49c9f
b49c9f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-2
b49c9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b49c9f
b49c9f
* Fri Dec 18 2015 Pravin Satute <psatute AT redhat DOT com> - 2.1-1
b49c9f
- Upstream new release with ttfautohint
b49c9f
- Changed url to https://github.com/RedHatBrand/overpass/, https://overpassfont.org looks dead.
b49c9f
b49c9f
* Tue Aug 25 2015 Tom Callaway <spot@fedoraproject.org> - 1.01-11
b49c9f
- update to new overpass fonts (they now claim to be 1.000, but we're not going backwards)
b49c9f
b49c9f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-10
b49c9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b49c9f
b49c9f
* Mon Nov 03 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.01-9
b49c9f
- Fix metainfo file error (rh#1159700)
b49c9f
b49c9f
* Sat Oct 18 2014 Parag Nemade <pnemade AT redhat DOT com> - 1.01-8
b49c9f
- Add metainfo file to show this font in gnome-software
b49c9f
b49c9f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-7
b49c9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b49c9f
b49c9f
* Wed Feb 12 2014 Tom Callaway <spot@fedoraproject.org> - 1.01-6
b49c9f
- add Light variant font
b49c9f
b49c9f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-5
b49c9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b49c9f
b49c9f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.01-4
b49c9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b49c9f
b49c9f
* Tue Dec 11 2012 Tom Callaway <spot@fedoraproject.org>
b49c9f
- License is now OFL or ASL 2.0
b49c9f
b49c9f
* Mon Sep 24 2012 Tom Callaway <spot@fedoraproject.org> - 1.01-2
b49c9f
- fix spaces vs tabs issue
b49c9f
b49c9f
* Mon Aug 27 2012 Tom Callaway <spot@fedoraproject.org> - 1.01-1
b49c9f
- initial package