Пакет fonts-ttf-ecolier-court: 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 | 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 ecolier-court-fonts # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %define fontpkgname ecolier-court-fonts # SPDX-License-Identifier: MIT Version: 20070702 Release: alt3_33 # This used to be published here, copies are all over the web now #URL: http://perso.orange.fr/jm.douteau/page_ecolier.htm %global fontlicense OFL %global fontlicenses lisez_moi.txt %global fontdocs README-Fedora.txt %global common_description \ The A.colier court font families were created by Jean-Marie Douteau to mimic the\ traditional cursive writing French children are taught in school.\ \ He kindly released two of them under the OFL, which are redistributed in this\ package. %global fontfamily0 Ecolier Court %global fontsummary0 A.colier Court, a schoolchildren cursive Latin font family %global fontpkgheader0 \ Obsoletes: ecolier-court-fonts-common < %{version}-%{release}\ %global fontdescription0 \ %{common_description} %global fontfamily1 Ecolier Lignes Court %global fontsummary1 A.colier Lignes Court, a schoolchildren cursive Latin font family with lines %global fontpkgheader1 \ Obsoletes: ecolier-court-lignes-fonts < %{version}-%{release}\ %global fontdescription1 \ %{common_description}\ \ The A. lignes A. (lines) A.colier Court font variant includes the Seyes lining\ commonly used on schoolchildren notepads. Source0: lisez_moi.txt Source1: README-Fedora.txt Source10: ec_cour.ttf Source11: ecl_cour.ttf Source20: 61-ecolier-court-fonts.xml Source21: 61-ecolier-lignes-court-fonts.xml Name: fonts-ttf-ecolier-court Summary: %{fontsummary0} License: %{fontlicense} BuildArch: noarch BuildRequires: rpm-build-fonts %{?fontpkgheader0} Source44: import.info Url: http://perso.orange.fr/jm.douteau/page_ecolier.htm %description %{?fontdescription0} %package -n fonts-ttf-ecolier-court-lignes Group: System/Fonts/True type Summary: %{fontsummary1} License: %{fontlicense} BuildArch: noarch BuildRequires: rpm-build-fonts %{?fontpkgheader1} %description -n fonts-ttf-ecolier-court-lignes %{?fontdescription1} %package all Group: System/Fonts/True type Summary: All the font packages, generated from %{oldname} Requires: fonts-ttf-ecolier-court = %EVR Requires: fonts-ttf-ecolier-court-lignes = %EVR BuildArch: noarch %description all This meta-package installs all the font packages, generated from the %{oldname} source package. %files all %prep %global fonts0 %{SOURCE10} %global fontconfngs0 %{SOURCE20} %global fonts1 %{SOURCE11} %global fontconfngs1 %{SOURCE21} %setup -n %{oldname}-%{version} -q -c -T install -m 0644 -p %{SOURCE0} %{SOURCE1} . %linuxtext *.txt %build # fontbuild 0 fontnames=$( for font in '%SOURCE10'; 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 '%SOURCE10'; 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 ecolier-court-fonts appstream file" cat > "org.altlinux.ecolier-court-fonts.metainfo.xml" << EOF_APPSTREAM <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT --> <component type="font"> <id>org.altlinux.ecolier-court-fonts</id> <metadata_license>MIT</metadata_license> <project_license>OFL</project_license> <name>Ecolier Court</name> <summary><![CDATA[Écolier Court, a schoolchildren cursive Latin font family]]></summary> <description> <p><![CDATA[The Écolier court font families were created by Jean-Marie Douteau to mimic the]]></p><p><![CDATA[traditional cursive writing French children are taught in school.]]></p> He kindly released two of them under the OFL, which are redistributed in this </description> <updatecontact>devel@lists.altlinux.org</updatecontact> <url type="homepage">http://perso.orange.fr/jm.douteau/page_ecolier.htm</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 '%SOURCE11'; 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 '%SOURCE11'; 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 ecolier-lignes-court-fonts appstream file" cat > "org.altlinux.ecolier-lignes-court-fonts.metainfo.xml" << EOF_APPSTREAM <?xml version="1.0" encoding="UTF-8"?> <!-- SPDX-License-Identifier: MIT --> <component type="font"> <id>org.altlinux.ecolier-lignes-court-fonts</id> <metadata_license>MIT</metadata_license> <project_license>OFL</project_license> <name>Ecolier Lignes Court</name> <summary><![CDATA[Écolier Lignes Court, a schoolchildren cursive Latin font family with lines]]></summary> <description> <p><![CDATA[The Écolier court font families were created by Jean-Marie Douteau to mimic the]]></p><p><![CDATA[traditional cursive writing French children are taught in school.]]></p> He kindly released two of them under the OFL, which are redistributed in this package. The « lignes » (lines) Écolier Court font variant includes the Seyes lining </description> <updatecontact>devel@lists.altlinux.org</updatecontact> <url type="homepage">http://perso.orange.fr/jm.douteau/page_ecolier.htm</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 ecolier-court-fonts echo "" > "ecolier-court-fonts0.list" install -m 0755 -vd %buildroot%_fontsdir/ttf/ecolier-court/ echo "%%dir %_fontsdir/ttf/ecolier-court" >> "ecolier-court-fonts0.list" install -m 0644 -vp "%SOURCE10" %buildroot%_fontsdir/ttf/ecolier-court/ echo \"%_fontsdir/ttf/ecolier-court//$(basename "%SOURCE10")\" >> 'ecolier-court-fonts0.list' ( IFS= lines=$( for fontconfng in '%SOURCE20'; do gen-fontconf -x "${fontconfng}" -w -f '%SOURCE10' 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}")\" >> "ecolier-court-fonts0.list" ln -vsr "%{buildroot}%{_fontconfig_templatedir}/$(basename "${fontconf}")" "%{buildroot}%{_fontconfig_confdir}" echo "%%config(noreplace)" \"%{_fontconfig_confdir}/$(basename "${fontconf}")\" >> "ecolier-court-fonts0.list" fi done ) install -m 0755 -vd "%{buildroot}%{_metainfodir}" for fontappstream in 'org.altlinux.ecolier-court-fonts.metainfo.xml'; do install -m 0644 -vp "${fontappstream}" "%{buildroot}%{_metainfodir}" echo \"%{_metainfodir}/$(basename "${fontappstream}")\" >> "ecolier-court-fonts0.list" done for fontdoc in 'README-Fedora.txt'; do echo %%doc "'${fontdoc}'" >> "ecolier-court-fonts0.list" done for fontlicense in 'lisez_moi.txt'; do echo %%doc "'${fontlicense}'" >> "ecolier-court-fonts0.list" done echo Installing ecolier-lignes-court-fonts echo "" > "ecolier-lignes-court-fonts1.list" install -m 0755 -vd %buildroot%_fontsdir/ttf/ecolier-court/ echo "%%dir %_fontsdir/ttf/ecolier-court" >> "ecolier-lignes-court-fonts1.list" install -m 0644 -vp "%SOURCE11" %buildroot%_fontsdir/ttf/ecolier-court/ echo \"%_fontsdir/ttf/ecolier-court//$(basename "%SOURCE11")\" >> 'ecolier-lignes-court-fonts1.list' ( IFS= lines=$( for fontconfng in '%SOURCE21'; do gen-fontconf -x "${fontconfng}" -w -f '%SOURCE11' 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}")\" >> "ecolier-lignes-court-fonts1.list" ln -vsr "%{buildroot}%{_fontconfig_templatedir}/$(basename "${fontconf}")" "%{buildroot}%{_fontconfig_confdir}" echo "%%config(noreplace)" \"%{_fontconfig_confdir}/$(basename "${fontconf}")\" >> "ecolier-lignes-court-fonts1.list" fi done ) install -m 0755 -vd "%{buildroot}%{_metainfodir}" for fontappstream in 'org.altlinux.ecolier-lignes-court-fonts.metainfo.xml'; do install -m 0644 -vp "${fontappstream}" "%{buildroot}%{_metainfodir}" echo \"%{_metainfodir}/$(basename "${fontappstream}")\" >> "ecolier-lignes-court-fonts1.list" done for fontdoc in 'README-Fedora.txt'; do echo %%doc "'${fontdoc}'" >> "ecolier-lignes-court-fonts1.list" done for fontlicense in 'lisez_moi.txt'; do echo %%doc "'${fontlicense}'" >> "ecolier-lignes-court-fonts1.list" done %check # fontcheck 0 grep -E '^"%{_fontconfig_templatedir}/.+\.conf"' 'ecolier-court-fonts0.list' \ | xargs -I{} -- sh -c "xmllint --loaddtd --valid --nonet '%{buildroot}{}' >/dev/null && echo %{buildroot}{}: OK" grep -E '^"%{_datadir}/metainfo/.+\.xml"' 'ecolier-court-fonts0.list' \ | xargs -I{} -- appstream-util validate-relax --nonet '%{buildroot}{}' # fontcheck 1 grep -E '^"%{_fontconfig_templatedir}/.+\.conf"' 'ecolier-lignes-court-fonts1.list' \ | xargs -I{} -- sh -c "xmllint --loaddtd --valid --nonet '%{buildroot}{}' >/dev/null && echo %{buildroot}{}: OK" grep -E '^"%{_datadir}/metainfo/.+\.xml"' 'ecolier-lignes-court-fonts1.list' \ | xargs -I{} -- appstream-util validate-relax --nonet '%{buildroot}{}' %files -n fonts-ttf-ecolier-court -f ecolier-court-fonts0.list %files -n fonts-ttf-ecolier-court-lignes -f ecolier-lignes-court-fonts1.list %changelog * Mon Feb 07 2022 Igor Vlasenko <viy@altlinux.org> 20070702-alt3_33 - update * Fri Oct 20 2017 Igor Vlasenko <viy@altlinux.ru> 20070702-alt3_23 - update to new release by fcimport * Tue Jul 26 2016 Igor Vlasenko <viy@altlinux.ru> 20070702-alt3_21 - update to new release by fcimport * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 20070702-alt3_20 - update to new release by fcimport * Mon Oct 27 2014 Igor Vlasenko <viy@altlinux.ru> 20070702-alt3_19 - update to new release by fcimport * Thu Jun 26 2014 Igor Vlasenko <viy@altlinux.ru> 20070702-alt3_18 - update to new release by fcimport * Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 20070702-alt3_17 - update to new release by fcimport * Fri Feb 22 2013 Igor Vlasenko <viy@altlinux.ru> 20070702-alt3_16 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 20070702-alt3_15 - update to new release by fcimport * Wed Mar 21 2012 Igor Vlasenko <viy@altlinux.ru> 20070702-alt3_14 - rebuild to get rid of #27020 * Sat Jan 21 2012 Igor Vlasenko <viy@altlinux.ru> 20070702-alt2_14 - update to new release by fcimport * Wed Aug 24 2011 Igor Vlasenko <viy@altlinux.ru> 20070702-alt2_13 - rebuild with new rpm-build-fonts * Tue Aug 09 2011 Igor Vlasenko <viy@altlinux.ru> 20070702-alt1_13 - initial release by fcimport |