Blame aftertheflood-sparks-fonts.spec

39fef27
%global fontname aftertheflood-sparks
39fef27
%global fontconf 66-%{fontname}
39fef27
%global desc After the Flood Sparks is a font that allows for the combination of text and \
39fef27
visual data to show an idea and evidence in one headline. This builds on the \
39fef27
principle of Sparklines defined by Edward Tufte and makes them easier to use. \
39fef27
Sparklines are currently available as plugins or javascript elements. By  \
39fef27
installing the Sparks font you can use them immediately without the need for \
39fef27
custom code. \
39fef27
\
39fef27
Sparks data needs to be formatted as comma-separated values, with curly brackets \
39fef27
at both ends of the set, e.g., {30,60,90}. You can also have numbers at the \
39fef27
beginning and end of the set, which are useful for providing the start and \
39fef27
end points, e.g., 123{30,60,90}456 – Sparks has numerals built in.
39fef27
39fef27
39fef27
Name:       %{fontname}-fonts
39fef27
Version:    2.0
04bae3f
Release:    3%{?dist}
39fef27
Summary:    After the Flood Sparks, a font to display charts within text
39fef27
License:    OFL
39fef27
URL:        https://aftertheflood.co/projects/sparks/
39fef27
Source0:    https://github.com/aftertheflood/sparks/archive/v%{version}/%{name}-%{version}.tar.gz
39fef27
Source1:    66-%{fontname}-bar.conf
39fef27
Source2:    66-%{fontname}-dot.conf
39fef27
Source3:    66-%{fontname}-dot-line.conf
39fef27
Source4:    %{fontname}.metainfo.xml
39fef27
Source5:    %{fontname}-bar.metainfo.xml
39fef27
Source6:    %{fontname}-dot.metainfo.xml
39fef27
Source7:    %{fontname}-dot-line.metainfo.xml
39fef27
39fef27
BuildArch:      noarch
39fef27
39fef27
BuildRequires:  fontpackages-devel
39fef27
BuildRequires:  libappstream-glib
39fef27
39fef27
Requires:       fontpackages-filesystem
39fef27
39fef27
39fef27
%description
39fef27
%{desc}
39fef27
39fef27
39fef27
%package common
39fef27
Summary: Common files for After the Flood Sparks
39fef27
39fef27
%description common
39fef27
%{desc}
39fef27
39fef27
Common files for After the Flood Sparks.
39fef27
39fef27
39fef27
%package -n %{fontname}-bar-fonts
39fef27
Summary: After the Flood Sparks Bar fonts
39fef27
Requires: %{name}-common = %{version}-%{release}
39fef27
39fef27
%description -n %{fontname}-bar-fonts
39fef27
%{desc}
39fef27
39fef27
This package provides the Bar family.
39fef27
39fef27
39fef27
%package -n %{fontname}-dot-fonts
39fef27
Summary: After the Flood Sparks Dot fonts
39fef27
Requires: %{name}-common = %{version}-%{release}
39fef27
39fef27
%description -n %{fontname}-dot-fonts
39fef27
%{desc}
39fef27
39fef27
This package provides the Dot family.
39fef27
39fef27
39fef27
%package -n %{fontname}-dot-line-fonts
39fef27
Summary: After the Flood Sparks Dot-line fonts
39fef27
Requires: %{name}-common = %{version}-%{release}
39fef27
39fef27
%description -n %{fontname}-dot-line-fonts
39fef27
%{desc}
39fef27
39fef27
This package provides the Dot-line family.
39fef27
39fef27
39fef27
%prep
39fef27
%autosetup -n sparks-%{version}
39fef27
39fef27
39fef27
%build
39fef27
# Nothing to do
39fef27
39fef27
39fef27
%install
39fef27
# install fonts
39fef27
install -m 0755 -d %{buildroot}%{_fontdir}
39fef27
install -m 0644 output/otf/*.otf %{buildroot}%{_fontdir}
39fef27
39fef27
# install fontconfig files
39fef27
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
39fef27
                   %{buildroot}%{_fontconfig_confdir}
39fef27
39fef27
install -m 0644 -p %{SOURCE1} \
39fef27
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-bar.conf
39fef27
install -m 0644 -p %{SOURCE2} \
39fef27
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-dot.conf
39fef27
install -m 0644 -p %{SOURCE3} \
39fef27
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-dot-line.conf
39fef27
39fef27
for fconf in %{fontconf}-bar.conf %{fontconf}-dot.conf %{fontconf}-dot-line.conf; do
39fef27
    ln -s %{_fontconfig_templatedir}/$fconf \
39fef27
          %{buildroot}%{_fontconfig_confdir}/$fconf
39fef27
done
39fef27
39fef27
# install appdata
39fef27
install -m 0755 -d %{buildroot}%{_datadir}/metainfo
39fef27
install -m 0644 -p %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} \
39fef27
        %{buildroot}%{_datadir}/metainfo
39fef27
39fef27
appstream-util validate-relax --nonet \
39fef27
               %{buildroot}%{_datadir}/metainfo/*.metainfo.xml
39fef27
39fef27
               
39fef27
%files common
39fef27
%license OFL.txt
39fef27
%doc AUTHORS.txt CONTRIBUTORS.txt FONTLOG.txt README.md 
39fef27
%{_datadir}/metainfo/%{fontname}.metainfo.xml
39fef27
39fef27
39fef27
%_font_pkg -n bar -f %{fontconf}-bar.conf Sparks-Bar-*.otf
39fef27
%{_datadir}/metainfo/%{fontname}-bar.metainfo.xml
39fef27
39fef27
39fef27
%_font_pkg -n dot -f %{fontconf}-dot.conf Sparks-Dot-*.otf
39fef27
%{_datadir}/metainfo/%{fontname}-dot.metainfo.xml
39fef27
39fef27
39fef27
%_font_pkg -n dot-line -f %{fontconf}-dot-line.conf Sparks-Dotline-*.otf
39fef27
%{_datadir}/metainfo/%{fontname}-dot-line.metainfo.xml
39fef27
39fef27
39fef27
%changelog
04bae3f
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
04bae3f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
04bae3f
261be6e
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-2
261be6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
261be6e
39fef27
* Wed Feb 07 2018 Robert-André Mauchin <zebob.m@gmail.com> - 2.0-1
39fef27
- initial RPM release