Version 1.0.7.

Create font symlinks with fc-match for greater robustness.
This commit is contained in:
Jerry James 2020-03-21 15:28:39 -06:00
parent 873b951f76
commit ae86a6b746
2 changed files with 17 additions and 8 deletions

View File

@ -1,5 +1,5 @@
Name: libsemigroups
Version: 1.0.6
Version: 1.0.7
Release: 1%{?dist}
Summary: C++ library for semigroups and monoids
@ -8,6 +8,11 @@ URL: https://github.com/libsemigroups/libsemigroups
Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: doxygen
BuildRequires: fontawesome-fonts-web
BuildRequires: font(fontawesome)
BuildRequires: font(lato)
BuildRequires: font(robotoslab)
BuildRequires: fontconfig
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig(fmt)
@ -121,12 +126,12 @@ for suffix in eot svg ttf woff woff2; do
ln -s %{_datadir}/fonts/fontawesome/fontawesome-webfont.$suffix .
done
rm {Lato,RobotoSlab}/*.ttf
ln -s %{_datadir}/fonts/lato/Lato-Bold.ttf Lato/lato-bold.ttf
ln -s %{_datadir}/fonts/lato/Lato-BoldItalic.ttf Lato/lato-bolditalic.ttf
ln -s %{_datadir}/fonts/lato/Lato-Italic.ttf Lato/lato-italic.ttf
ln -s %{_datadir}/fonts/lato/Lato-Regular.ttf Lato/lato-regular.ttf
ln -s %{_datadir}/fonts/google-roboto-slab/RobotoSlab-Bold.ttf RobotoSlab/roboto-slab-v7-bold.ttf
ln -s %{_datadir}/fonts/google-roboto-slab/RobotoSlab-Regular.ttf RobotoSlab/roboto-slab-v7-regular.ttf
ln -s $(fc-match -f "%%{file}" "lato:bold") Lato/lato-bold.ttf
ln -s $(fc-match -f "%%{file}" "lato:bold:italic") Lato/lato-bolditalic.ttf
ln -s $(fc-match -f "%%{file}" "lato:italic") Lato/lato-italic.ttf
ln -s $(fc-match -f "%%{file}" "lato") Lato/lato-regular.ttf
ln -s $(fc-match -f "%%{file}" "robotoslab:bold") RobotoSlab/roboto-slab-v7-bold.ttf
ln -s $(fc-match -f "%%{file}" "robotoslab") RobotoSlab/roboto-slab-v7-regular.ttf
cd -
%install
@ -151,6 +156,10 @@ LD_LIBRARY_PATH=$PWD/.libs make check
%license LICENSE
%changelog
* Sat Mar 21 2020 Jerry James <loganjerry@gmail.com> - 1.0.7-1
- Version 1.0.7
- Create font symlinks with fc-match for greater robustness
* Sun Feb 9 2020 Jerry James <loganjerry@gmail.com> - 1.0.6-1
- Version 1.0.6

View File

@ -1 +1 @@
SHA512 (libsemigroups-1.0.6.tar.gz) = 619e1a0a882efd50491db03376c3d59cdb01a552ec999d94b81b61e05b37399a493475a1dbd810eedfbcbb92f2169f346b63c7147812d04f6bb38065ee517684
SHA512 (libsemigroups-1.0.7.tar.gz) = 2b157b2a773ef0a895f42079be21ea132b374ac28cc147e5653c65a2477c6c4145d13c3229d0a3a793d430b3ee1a02b78d8a28743eba211669cabe30c4f96f30