Пакет fonts-ttf-sil-abyssinica: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | Group: System/Fonts/True type # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-fedora-compat rpm-macros-fonts BuildRequires: rpm-build-fedora-compat-fonts unzip # END SourceDeps(oneline) %define oldname sil-abyssinica-fonts # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %define fontpkgname sil-abyssinica-fonts Version: 1.200 Release: alt2_23 %global foundry SIL %global fontlicense OFL %global fontlicenses OFL.txt %global fontdocs *.txt documentation/*.txt %global fontdocsex %{fontlicenses} %global fontfamily Abyssinica SIL %global fontsummary SIL Abyssinica fonts %global projectname AbyssinicaSIL %global archivename AbyssinicaSIL%{version} URL: https://software.sil.org/%{projectname}/ %global fonts *.ttf %global fontdescription \ SIL Abyssinica is a Unicode typeface family containing glyphs for the\ Ethiopic script.\ \ The Ethiopic script is used for writing many of the languages of Ethiopia and\ Eritrea. Abyssinica SIL supports all Ethiopic characters which are in Unicode\ including the Unicode 4.1 extensions. Some languages of Ethiopia are not yet\ able to be fully represented in Unicode and, where necessary, we have included\ non-Unicode characters in the Private Use Area (see Private-use (PUA)\ characters supported by Abyssinica SIL).\ \ Abyssinica SIL is based on Ethiopic calligraphic traditions. This release is\ a regular typeface, with no bold or italic version available or planned. # download from http://scripts.sil.org/cms/scripts/render_download.php?site_id=nrsi&format=file&media_id=AbyssinicaSIL1.200.zip&filename=AbyssinicaSIL1.200.zip Source0: %{archivename}.zip Source1: 66-sil-abyssinica-fonts.conf Name: fonts-ttf-sil-abyssinica Summary: %{fontsummary} License: %{fontlicense} BuildArch: noarch BuildRequires: rpm-build-fonts %{?fontpkgheader} Source44: import.info %description %{?fontdescription} %prep %global fontconfs %{SOURCE1} %setup -q -n %{projectname}-%{version} %linuxtext FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt documentation/DOCUMENTATION.txt %build # fontbuild fontnames=$( for font in 'AbyssinicaSIL-R.ttf'; do fc-scan "${font}" -f " <font>%%{fullname[0]}</font>\n" done | sort -u ) if [[ -n "${fontnames}" ]] ; then fontnames=$'\n'" <provides>"$'\n'"${fontnames}"$'\n'" </provides>" fi fontlangs=$( for font in 'AbyssinicaSIL-R.ttf'; do fc-scan "${font}" -f "%%{[]lang{ <lang>%%{lang}</lang>\n}}" done | sort -u ) if [[ -n "${fontlangs}" ]] ; then fontlangs=$'\n'" <languages>"$'\n'"${fontlangs}"$'\n'" </languages>" fi echo "Generating the sil-abyssinica-fonts appstream file" cat > "org.altlinux.sil-abyssinica-fonts.metainfo.xml" << EOF_APPSTREAM <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT --> <component type="font"> <id>org.altlinux.sil-abyssinica-fonts</id> <metadata_license>MIT</metadata_license> <project_license>OFL</project_license> <name>SIL Abyssinica SIL</name> <summary><![CDATA[SIL Abyssinica fonts]]></summary> <description> <p><![CDATA[SIL Abyssinica is a Unicode typeface family containing glyphs for the]]></p><p><![CDATA[Ethiopic script.]]></p> The Ethiopic script is used for writing many of the languages of Ethiopia and Eritrea. Abyssinica SIL supports all Ethiopic characters which are in Unicode including the Unicode 4.1 extensions. Some languages of Ethiopia are not yet able to be fully represented in Unicode and, where necessary, we have included non-Unicode characters in the Private Use Area (see Private-use (PUA) characters supported by Abyssinica SIL). Abyssinica SIL is based on Ethiopic calligraphic traditions. This release is </description> <updatecontact>devel@lists.altlinux.org</updatecontact> <url type="homepage">https://software.sil.org/%{projectname}/</url> <releases> <release version="%{version}-%{release}" date="$(date -d @$SOURCE_DATE_EPOCH -u --rfc-3339=d)"/> </releases>${fontnames}${fontlangs} </component> EOF_APPSTREAM %install echo "Installing "sil-abyssinica-fonts echo "" > "sil-abyssinica-fonts.list" install -m 0755 -vd %buildroot%_fontsdir/ttf/sil-abyssinica/ echo "%%dir %_fontsdir/ttf/sil-abyssinica" >> "sil-abyssinica-fonts.list" install -m 0644 -vp "AbyssinicaSIL-R.ttf" %buildroot%_fontsdir/ttf/sil-abyssinica/ echo \"%_fontsdir/ttf/sil-abyssinica//$(basename "AbyssinicaSIL-R.ttf")\" >> 'sil-abyssinica-fonts.list' ( install -m 0755 -vd "%{buildroot}%{_fontconfig_templatedir}" \ "%{buildroot}%{_fontconfig_confdir}" for fontconf in '%SOURCE1' "${newfontconfs[@]}"; do if [[ -n $fontconf ]] ; then install -m 0644 -vp "${fontconf}" "%{buildroot}%{_fontconfig_templatedir}" echo \"%{_fontconfig_templatedir}/$(basename "${fontconf}")\" >> "sil-abyssinica-fonts.list" ln -vsr "%{buildroot}%{_fontconfig_templatedir}/$(basename "${fontconf}")" "%{buildroot}%{_fontconfig_confdir}" echo "%%config(noreplace)" \"%{_fontconfig_confdir}/$(basename "${fontconf}")\" >> "sil-abyssinica-fonts.list" fi done ) install -m 0755 -vd "%{buildroot}%{_metainfodir}" for fontappstream in 'org.altlinux.sil-abyssinica-fonts.metainfo.xml'; do install -m 0644 -vp "${fontappstream}" "%{buildroot}%{_metainfodir}" echo \"%{_metainfodir}/$(basename "${fontappstream}")\" >> "sil-abyssinica-fonts.list" done for fontdoc in 'FONTLOG.txt' 'OFL-FAQ.txt' 'README.txt' 'documentation/DOCUMENTATION.txt'; do echo %%doc "'${fontdoc}'" >> "sil-abyssinica-fonts.list" done for fontlicense in 'OFL.txt'; do echo %%doc "'${fontlicense}'" >> "sil-abyssinica-fonts.list" done %check # fontcheck grep -E '^"%{_fontconfig_templatedir}/.+\.conf"' 'sil-abyssinica-fonts.list' \ | xargs -I{} -- sh -c "xmllint --loaddtd --valid --nonet '%{buildroot}{}' >/dev/null && echo %{buildroot}{}: OK" grep -E '^"%{_datadir}/metainfo/.+\.xml"' 'sil-abyssinica-fonts.list' \ | xargs -I{} -- appstream-util validate-relax --nonet '%{buildroot}{}' %files -n fonts-ttf-sil-abyssinica -f sil-abyssinica-fonts.list %changelog * Mon Feb 07 2022 Igor Vlasenko <viy@altlinux.org> 1.200-alt2_23 - update to new release by fcimport * Mon Oct 23 2017 Igor Vlasenko <viy@altlinux.ru> 1.200-alt2_12 - update to new release by fcimport * Mon Dec 22 2014 Igor Vlasenko <viy@altlinux.ru> 1.200-alt2_8 - update to new release by fcimport * Thu Jun 26 2014 Igor Vlasenko <viy@altlinux.ru> 1.200-alt2_7 - update to new release by fcimport * Fri Feb 22 2013 Igor Vlasenko <viy@altlinux.ru> 1.200-alt2_5 - update to new release by fcimport * Mon Aug 27 2012 Igor Vlasenko <viy@altlinux.ru> 1.200-alt2_4 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 1.200-alt2_3 - update to new release by fcimport * Wed Mar 21 2012 Igor Vlasenko <viy@altlinux.ru> 1.200-alt2_2 - rebuild to get rid of #27020 * Tue Feb 21 2012 Igor Vlasenko <viy@altlinux.ru> 1.200-alt1_2 - update to new release by fcimport * Sat Jan 21 2012 Igor Vlasenko <viy@altlinux.ru> 1.0-alt3_11 - update to new release by fcimport * Wed Aug 24 2011 Igor Vlasenko <viy@altlinux.ru> 1.0-alt3_10 - rebuild with new rpm-build-fonts * Thu Aug 04 2011 Igor Vlasenko <viy@altlinux.ru> 1.0-alt2_10 - bugfix release by fcimport * Wed Aug 03 2011 Igor Vlasenko <viy@altlinux.ru> 1.0-alt1_10 - initial release by fcimport |