Package fonts-ttf-kemie-bellota: 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 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 | Group: System/Fonts/True type # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-fedora-compat rpm-macros-fonts BuildRequires: rpm-build-fedora-compat-fonts # END SourceDeps(oneline) %define oldname kemie-bellota-fonts # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %define fontpkgname kemie-bellota-fonts # SPDX-License-Identifier: MIT %global forgeurl https://github.com/kemie/Bellota-Font/ Version: 4.1 # FedoraForgeMeta2ALT: generated meta %global forgeurl https://github.com/kemie/Bellota-Font/ %global forgesource https://github.com/kemie/Bellota-Font//archive/4.1/Bellota-Font-4.1.tar.gz %global archivename Bellota-Font-4.1 %global archiveext tar.gz %global archiveurl https://github.com/kemie/Bellota-Font//archive/4.1/Bellota-Font-4.1.tar.gz %global topdir Bellota-Font-4.1 %global extractdir Bellota-Font-4.1 %global repo Bellota-Font #global owner %nil #global namespace %nil %global scm git #global tag %nil #global commit %nil #global shortcommit %nil #global branch %nil %global version 4.1 #global date %nil #global distprefix %nil # FedoraForgeMeta2ALT: end generated meta Release: alt1_9 URL: %{forgeurl} %global foundry kemie %global fontlicense OFL %global fontlicenses OFL.txt %global fontdocs *txt *TXT *md %global fontdocsex %{fontlicenses} %global common_description \ The Bellota font families are ornamented, low contrast sans-serifs with text\ and swash alternates. Theya.'re just cute enough! They include stylistic\ alternates (for swash and non-ornamented characters) and ligatures available\ through OpenType features. %global fontfamily0 Bellota %global fontsummary0 An ornamented, cute, low contrast sans-serif font family %global fonts0 ttf/*ttf %global fontsex0 %{fonts1} %global fontdescription0 \ %{common_description}\ \ Bellota, is the most exuberant variation published by the project. %global fontfamily1 Bellota Text %global fontsummary1 An ornamented, slightly demure, cute, low contrast sans-serif font family %global fontpkgheader1 \ #Suggests: font(bellota)\ %global fonts1 ttf/BellotaText*ttf %global fontdescription1 \ %{common_description}\ \ Bellota Text is slightly more demure than Bellota itself. Source0: %{forgesource} Source10: 60-kemie-bellota-fonts.xml Source11: 60-kemie-bellota-text-fonts.xml Name: fonts-ttf-kemie-bellota Summary: %{fontsummary0} License: %{fontlicense} BuildArch: noarch BuildRequires: rpm-build-fonts %{?fontpkgheader0} Source44: import.info %description %{?fontdescription0} %package -n fonts-ttf-kemie-bellota-text Group: System/Fonts/True type Summary: %{fontsummary1} License: %{fontlicense} BuildArch: noarch BuildRequires: rpm-build-fonts %{?fontpkgheader1} %description -n fonts-ttf-kemie-bellota-text %{?fontdescription1} %package all Group: System/Fonts/True type Summary: All the font packages, generated from %{oldname} Requires: fonts-ttf-kemie-bellota = %EVR Requires: fonts-ttf-kemie-bellota-text = %EVR BuildArch: noarch %description all This meta-package installs all the font packages, generated from the %{oldname} source package. %files all %prep %global fontconfngs0 %{SOURCE10} %global fontconfngs1 %{SOURCE11} %setup -q -n Bellota-Font-4.1 %build # fontbuild 0 fontnames=$( for font in 'ttf/Bellota-Bold.ttf' 'ttf/Bellota-BoldItalic.ttf' 'ttf/Bellota-Italic.ttf' 'ttf/Bellota-Light.ttf' 'ttf/Bellota-LightItalic.ttf' 'ttf/Bellota-Regular.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 'ttf/Bellota-Bold.ttf' 'ttf/Bellota-BoldItalic.ttf' 'ttf/Bellota-Italic.ttf' 'ttf/Bellota-Light.ttf' 'ttf/Bellota-LightItalic.ttf' 'ttf/Bellota-Regular.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 kemie-bellota-fonts appstream file" cat > "org.altlinux.kemie-bellota-fonts.metainfo.xml" << EOF_APPSTREAM <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT --> <component type="font"> <id>org.altlinux.kemie-bellota-fonts</id> <metadata_license>MIT</metadata_license> <project_license>OFL</project_license> <name>kemie Bellota</name> <summary><![CDATA[An ornamented, cute, low contrast sans-serif font family]]></summary> <description> <p><![CDATA[The Bellota font families are ornamented, low contrast sans-serifs with text]]></p><p><![CDATA[and swash alternates. They’re just cute enough! They include stylistic]]></p><p><![CDATA[alternates (for swash and non-ornamented characters) and ligatures available]]></p><p><![CDATA[through OpenType features.]]></p> Bellota, is the most exuberant variation published by the project. </description> <updatecontact>devel@lists.altlinux.org</updatecontact> <url type="homepage">%{forgeurl}</url> <releases> <release version="%{version}-%{release}" date="$(date -d @$SOURCE_DATE_EPOCH -u --rfc-3339=d)"/> </releases>${fontnames}${fontlangs} </component> EOF_APPSTREAM # fontbuild 1 fontnames=$( for font in 'ttf/BellotaText-Bold.ttf' 'ttf/BellotaText-BoldItalic.ttf' 'ttf/BellotaText-Italic.ttf' 'ttf/BellotaText-Light.ttf' 'ttf/BellotaText-LightItalic.ttf' 'ttf/BellotaText-Regular.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 'ttf/BellotaText-Bold.ttf' 'ttf/BellotaText-BoldItalic.ttf' 'ttf/BellotaText-Italic.ttf' 'ttf/BellotaText-Light.ttf' 'ttf/BellotaText-LightItalic.ttf' 'ttf/BellotaText-Regular.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 kemie-bellota-text-fonts appstream file" cat > "org.altlinux.kemie-bellota-text-fonts.metainfo.xml" << EOF_APPSTREAM <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT --> <component type="font"> <id>org.altlinux.kemie-bellota-text-fonts</id> <metadata_license>MIT</metadata_license> <project_license>OFL</project_license> <name>kemie Bellota Text</name> <summary><![CDATA[An ornamented, slightly demure, cute, low contrast sans-serif font family]]></summary> <description> <p><![CDATA[The Bellota font families are ornamented, low contrast sans-serifs with text]]></p><p><![CDATA[and swash alternates. They’re just cute enough! They include stylistic]]></p><p><![CDATA[alternates (for swash and non-ornamented characters) and ligatures available]]></p><p><![CDATA[through OpenType features.]]></p> Bellota Text is slightly more demure than Bellota itself. </description> <updatecontact>devel@lists.altlinux.org</updatecontact> <url type="homepage">%{forgeurl}</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 kemie-bellota-fonts echo "" > "kemie-bellota-fonts0.list" install -m 0755 -vd %buildroot%_fontsdir/ttf/kemie-bellota/ echo "%%dir %_fontsdir/ttf/kemie-bellota" >> "kemie-bellota-fonts0.list" install -m 0644 -vp "ttf/Bellota-Bold.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/Bellota-Bold.ttf\" >> 'kemie-bellota-fonts0.list' install -m 0644 -vp "ttf/Bellota-BoldItalic.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/Bellota-BoldItalic.ttf\" >> 'kemie-bellota-fonts0.list' install -m 0644 -vp "ttf/Bellota-Italic.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/Bellota-Italic.ttf\" >> 'kemie-bellota-fonts0.list' install -m 0644 -vp "ttf/Bellota-Light.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/Bellota-Light.ttf\" >> 'kemie-bellota-fonts0.list' install -m 0644 -vp "ttf/Bellota-LightItalic.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/Bellota-LightItalic.ttf\" >> 'kemie-bellota-fonts0.list' install -m 0644 -vp "ttf/Bellota-Regular.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/Bellota-Regular.ttf\" >> 'kemie-bellota-fonts0.list' ( IFS= lines=$( for fontconfng in '%SOURCE10'; do gen-fontconf -x "${fontconfng}" -w -f 'ttf/Bellota-Bold.ttf' 'ttf/Bellota-BoldItalic.ttf' 'ttf/Bellota-Italic.ttf' 'ttf/Bellota-Light.ttf' 'ttf/Bellota-LightItalic.ttf' 'ttf/Bellota-Regular.ttf' done ) while IFS= read -r line; do [[ -n $line ]] && newfontconfs+=("$line") done <<< ${lines} install -m 0755 -vd "%{buildroot}%{_fontconfig_templatedir}" \ "%{buildroot}%{_fontconfig_confdir}" for fontconf in "${newfontconfs[@]}"; do if [[ -n $fontconf ]] ; then install -m 0644 -vp "${fontconf}" "%{buildroot}%{_fontconfig_templatedir}" echo \"%{_fontconfig_templatedir}/$(basename "${fontconf}")\" >> "kemie-bellota-fonts0.list" ln -vsr "%{buildroot}%{_fontconfig_templatedir}/$(basename "${fontconf}")" "%{buildroot}%{_fontconfig_confdir}" echo "%%config(noreplace)" \"%{_fontconfig_confdir}/$(basename "${fontconf}")\" >> "kemie-bellota-fonts0.list" fi done ) install -m 0755 -vd "%{buildroot}%{_metainfodir}" for fontappstream in 'org.altlinux.kemie-bellota-fonts.metainfo.xml'; do install -m 0644 -vp "${fontappstream}" "%{buildroot}%{_metainfodir}" echo \"%{_metainfodir}/$(basename "${fontappstream}")\" >> "kemie-bellota-fonts0.list" done for fontdoc in 'authors.txt' 'contributors.txt' 'FONTLOG.TXT' 'readme.md'; do echo %%doc "'${fontdoc}'" >> "kemie-bellota-fonts0.list" done for fontlicense in 'OFL.txt'; do echo %%doc "'${fontlicense}'" >> "kemie-bellota-fonts0.list" done echo Installing kemie-bellota-text-fonts echo "" > "kemie-bellota-text-fonts1.list" install -m 0755 -vd %buildroot%_fontsdir/ttf/kemie-bellota/ echo "%%dir %_fontsdir/ttf/kemie-bellota" >> "kemie-bellota-text-fonts1.list" install -m 0644 -vp "ttf/BellotaText-Bold.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/BellotaText-Bold.ttf\" >> 'kemie-bellota-text-fonts1.list' install -m 0644 -vp "ttf/BellotaText-BoldItalic.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/BellotaText-BoldItalic.ttf\" >> 'kemie-bellota-text-fonts1.list' install -m 0644 -vp "ttf/BellotaText-Italic.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/BellotaText-Italic.ttf\" >> 'kemie-bellota-text-fonts1.list' install -m 0644 -vp "ttf/BellotaText-Light.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/BellotaText-Light.ttf\" >> 'kemie-bellota-text-fonts1.list' install -m 0644 -vp "ttf/BellotaText-LightItalic.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/BellotaText-LightItalic.ttf\" >> 'kemie-bellota-text-fonts1.list' install -m 0644 -vp "ttf/BellotaText-Regular.ttf" %buildroot%_fontsdir/ttf/kemie-bellota/ echo \"%_fontsdir/ttf/kemie-bellota/BellotaText-Regular.ttf\" >> 'kemie-bellota-text-fonts1.list' ( IFS= lines=$( for fontconfng in '%SOURCE11'; do gen-fontconf -x "${fontconfng}" -w -f 'ttf/BellotaText-Bold.ttf' 'ttf/BellotaText-BoldItalic.ttf' 'ttf/BellotaText-Italic.ttf' 'ttf/BellotaText-Light.ttf' 'ttf/BellotaText-LightItalic.ttf' 'ttf/BellotaText-Regular.ttf' done ) while IFS= read -r line; do [[ -n $line ]] && newfontconfs+=("$line") done <<< ${lines} install -m 0755 -vd "%{buildroot}%{_fontconfig_templatedir}" \ "%{buildroot}%{_fontconfig_confdir}" for fontconf in "${newfontconfs[@]}"; do if [[ -n $fontconf ]] ; then install -m 0644 -vp "${fontconf}" "%{buildroot}%{_fontconfig_templatedir}" echo \"%{_fontconfig_templatedir}/$(basename "${fontconf}")\" >> "kemie-bellota-text-fonts1.list" ln -vsr "%{buildroot}%{_fontconfig_templatedir}/$(basename "${fontconf}")" "%{buildroot}%{_fontconfig_confdir}" echo "%%config(noreplace)" \"%{_fontconfig_confdir}/$(basename "${fontconf}")\" >> "kemie-bellota-text-fonts1.list" fi done ) install -m 0755 -vd "%{buildroot}%{_metainfodir}" for fontappstream in 'org.altlinux.kemie-bellota-text-fonts.metainfo.xml'; do install -m 0644 -vp "${fontappstream}" "%{buildroot}%{_metainfodir}" echo \"%{_metainfodir}/$(basename "${fontappstream}")\" >> "kemie-bellota-text-fonts1.list" done for fontdoc in 'authors.txt' 'contributors.txt' 'FONTLOG.TXT' 'readme.md'; do echo %%doc "'${fontdoc}'" >> "kemie-bellota-text-fonts1.list" done for fontlicense in 'OFL.txt'; do echo %%doc "'${fontlicense}'" >> "kemie-bellota-text-fonts1.list" done %check # fontcheck 0 grep -E '^"%{_fontconfig_templatedir}/.+\.conf"' 'kemie-bellota-fonts0.list' \ | xargs -I{} -- sh -c "xmllint --loaddtd --valid --nonet '%{buildroot}{}' >/dev/null && echo %{buildroot}{}: OK" grep -E '^"%{_datadir}/metainfo/.+\.xml"' 'kemie-bellota-fonts0.list' \ | xargs -I{} -- appstream-util validate-relax --nonet '%{buildroot}{}' # fontcheck 1 grep -E '^"%{_fontconfig_templatedir}/.+\.conf"' 'kemie-bellota-text-fonts1.list' \ | xargs -I{} -- sh -c "xmllint --loaddtd --valid --nonet '%{buildroot}{}' >/dev/null && echo %{buildroot}{}: OK" grep -E '^"%{_datadir}/metainfo/.+\.xml"' 'kemie-bellota-text-fonts1.list' \ | xargs -I{} -- appstream-util validate-relax --nonet '%{buildroot}{}' %files -n fonts-ttf-kemie-bellota -f kemie-bellota-fonts0.list %files -n fonts-ttf-kemie-bellota-text -f kemie-bellota-text-fonts1.list %changelog * Sat May 07 2022 Igor Vlasenko <viy@altlinux.org> 4.1-alt1_9 - update to new release by fcimport * Wed Feb 16 2022 Igor Vlasenko <viy@altlinux.org> 4.1-alt1_3 - new version |