Package fonts-ttf-labiryntowy: Specfile
Group: System/Fonts/True type %define oldname labiryntowy-fonts # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %global fontname labiryntowy Name: fonts-ttf-labiryntowy Version: 1.53 Release: alt1_6 Summary: Artificial font consisting of vertical and horizontal bars License: OFL URL: http://alfabet-ozdobny.appspot.com/?str=labiryntowy Source0: https://alfabet-ozdobny.appspot.com/images/Labiryntowy_pl.tgz BuildArch: noarch BuildRequires: fontpackages-devel Source44: import.info %description Artificial alphabet. Conscript. Font was created by Jacek Szewczyk as a practical realization of the idea of the alphabet the labyrinth. This font contains over 300 ligatures and most of the characters needed to complete the titles and monograms. %prep %setup -n %{oldname}-%{version} -q -c %build %install mkdir -p %{buildroot}%{_fontdir} cp -p *.ttf %{buildroot}%{_fontdir} # generic fedora font import transformations # move fonts to corresponding subdirs if any for fontpatt in OTF TTF TTC otf ttf ttc pcf pcf.gz bdf afm pfa pfb; do case "$fontpatt" in pcf*|bdf*) type=bitmap;; tt*|TT*) type=ttf;; otf|OTF) type=otf;; afm*|pf*) type=type1;; esac find $RPM_BUILD_ROOT/usr/share/fonts -type f -name '*.'$fontpatt | while read i; do j=`echo "$i" | sed -e s,/usr/share/fonts/,/usr/share/fonts/$type/,`; install -Dm644 "$i" "$j"; rm -f "$i"; olddir=`dirname "$i"`; mv -f "$olddir"/{encodings.dir,fonts.{dir,scale,alias}} `dirname "$j"`/ 2>/dev/null ||: rmdir -p "$olddir" 2>/dev/null ||: done done # kill invalid catalogue links if [ -d $RPM_BUILD_ROOT/etc/X11/fontpath.d ]; then find -L $RPM_BUILD_ROOT/etc/X11/fontpath.d -type l -print -delete ||: # relink catalogue find $RPM_BUILD_ROOT/usr/share/fonts -name fonts.dir | while read i; do pri=10; j=`echo $i | sed -e s,$RPM_BUILD_ROOT/usr/share/fonts/,,`; type=${j%%%%/*}; pre_stem=${j##$type/}; stem=`dirname $pre_stem|sed -e s,/,-,g`; case "$type" in bitmap) pri=10;; ttf|ttf) pri=50;; type1) pri=40;; esac ln -s /usr/share/fonts/$j $RPM_BUILD_ROOT/etc/X11/fontpath.d/"$stem:pri=$pri" done ||: fi %files %{_fontbasedir}/*/%{_fontstem}/* %doc opis.txt %changelog * Mon Oct 23 2017 Igor Vlasenko <viy@altlinux.ru> 1.53-alt1_6 - update to new release by fcimport * Sat Nov 07 2015 Igor Vlasenko <viy@altlinux.ru> 1.53-alt1_3 - new version |