Package fonts-ttf-baekmuk: 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 | Group: System/Fonts/True type # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-macros-fedora-compat # END SourceDeps(oneline) %define oldname baekmuk-ttf-fonts # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} # %%version is ahead of its definition. Predefining for rpm 4.0 compatibility. %define version 2.2 %global priority 68 %global fontname baekmuk-ttf %global archivename %{fontname}-%{version} %global common_desc \ This package provides the free Korean TrueType fonts. %global catalogue %{_sysconfdir}/X11/fontpath.d Name: fonts-ttf-baekmuk Version: 2.2 Release: alt2_54 Summary: Free Korean TrueType fonts License: Baekmuk URL: http://kldp.net/projects/baekmuk/ Source0: http://kldp.net/baekmuk/release/865-%{archivename}.tar.gz#/%{archivename}.tar.gz Source3: baekmuk-ttf-batang.conf Source4: baekmuk-ttf-dotum.conf Source5: baekmuk-ttf-gulim.conf Source6: baekmuk-ttf-hline.conf Source7: %{fontname}-batang.metainfo.xml Source8: %{fontname}-dotum.metainfo.xml Source9: %{fontname}-gulim.metainfo.xml Source10: %{fontname}-hline.metainfo.xml Source11: %{fontname}.metainfo.xml Provides: fonts-ttf-korean = %{version}-%{release} BuildArch: noarch BuildRequires: fontpackages-devel >= 1.13 BuildRequires: mkfontdir BuildRequires: ttmkfdir >= 3.0.6 Source44: import.info %description %common_desc %package -n fonts-ttf-baekmuk-batang Group: System/Fonts/True type Summary: Korean Baekmuk TrueType Batang typeface Provides: %{oldname}-batang = %{version}-%{release} Requires: fonts-ttf-baekmuk-common = %{version}-%{release} %description -n fonts-ttf-baekmuk-batang %common_desc Batang is Korean TrueType font in Serif typeface. %files -n fonts-ttf-baekmuk-batang %{_fontconfig_templatedir}/*-%{fontname}-batang*.conf %config(noreplace) %{_fontconfig_confdir}/*-%{fontname}-batang*.conf %dir %{_fontbasedir}/*/%{_fontstem}/ %{_fontbasedir}/*/%{_fontstem}/batang.ttf %{_metainfodir}/%{fontname}-batang.metainfo.xml %package -n fonts-ttf-baekmuk-dotum Group: System/Fonts/True type Summary: Korean Baekmuk TrueType Dotum typeface Provides: %{oldname}-dotum = %{version}-%{release} Requires: fonts-ttf-baekmuk-common = %{version}-%{release} %description -n fonts-ttf-baekmuk-dotum %common_desc Dotum is Korean TrueType font in San-serif typeface. %files -n fonts-ttf-baekmuk-dotum %{_fontconfig_templatedir}/*-%{fontname}-dotum*.conf %config(noreplace) %{_fontconfig_confdir}/*-%{fontname}-dotum*.conf %dir %{_fontbasedir}/*/%{_fontstem}/ %{_fontbasedir}/*/%{_fontstem}/dotum.ttf %{_metainfodir}/%{fontname}-dotum.metainfo.xml %package -n fonts-ttf-baekmuk-gulim Group: System/Fonts/True type Summary: Korean Baekmuk TrueType Gulim typeface Provides: %{oldname}-gulim = %{version}-%{release} Requires: fonts-ttf-baekmuk-common = %{version}-%{release} %description -n fonts-ttf-baekmuk-gulim %common_desc Gulim is Korean TrueType font in Monospace typeface. %files -n fonts-ttf-baekmuk-gulim %{_fontconfig_templatedir}/*-%{fontname}-gulim*.conf %config(noreplace) %{_fontconfig_confdir}/*-%{fontname}-gulim*.conf %dir %{_fontbasedir}/*/%{_fontstem}/ %{_fontbasedir}/*/%{_fontstem}/gulim.ttf %{_metainfodir}/%{fontname}-gulim.metainfo.xml %package -n fonts-ttf-baekmuk-hline Group: System/Fonts/True type Summary: Korean Baekmuk TrueType Headline typeface Provides: %{oldname}-hline = %{version}-%{release} Requires: fonts-ttf-baekmuk-common = %{version}-%{release} %description -n fonts-ttf-baekmuk-hline %common_desc Headline is Korean TrueType font in Black face. %files -n fonts-ttf-baekmuk-hline %{_fontconfig_templatedir}/*-%{fontname}-hline*.conf %config(noreplace) %{_fontconfig_confdir}/*-%{fontname}-hline*.conf %dir %{_fontbasedir}/*/%{_fontstem}/ %{_fontbasedir}/*/%{_fontstem}/hline.ttf %{_metainfodir}/%{fontname}-hline.metainfo.xml %package -n fonts-ttf-baekmuk-common Group: System/Fonts/True type Summary: Common files for Korean Baekmuk TrueType fonts Provides: baekmuk-ttf-common-fonts = %{version}-%{release} Provides: fonts-korean = %{version}-%{release} Provides: ttfonts-ko = %{version}-%{release} Provides: %{fontname}-fonts-ghostscript = %{version}-%{release} %description -n fonts-ttf-baekmuk-common %common_desc This is common files for Baekmuk Korean TrueType fonts. %files -n fonts-ttf-baekmuk-common %doc README %doc --no-dereference COPYRIGHT COPYRIGHT.ko %dir %{_fontbasedir}/*/%{_fontstem} %verify(not md5 size mtime) %{_fontbasedir}/*/%{_fontstem}/fonts.dir %verify(not md5 size mtime) %{_fontbasedir}/*/%{_fontstem}/fonts.scale %verify(not md5 size mtime) %{catalogue}/%{fontname}* %{_metainfodir}/%{fontname}.metainfo.xml %prep %setup -q -n %{archivename} %build %{nil} %install # font install -d -m 0755 %{buildroot}%{_fontdir} for i in batang dotum gulim hline; do install -p -m 0644 ttf/$i.ttf %{buildroot}%{_fontdir} done # fontconfig conf install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} install -m 0755 -d %{buildroot}%{_fontconfig_confdir} cd ../ for fconf in %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} do install -m 0644 $fconf %{buildroot}%{_fontconfig_templatedir}/%{priority}-$(basename $fconf) ln -s %{_fontconfig_templatedir}/%{priority}-$(basename $fconf) \ %{buildroot}%{_fontconfig_confdir}/%{priority}-$(basename $fconf) done cd - # fonts.{scale,dir} %{_bindir}/ttmkfdir -d %{buildroot}%{_fontdir} \ -o %{buildroot}%{_fontdir}/fonts.scale %{_bindir}/mkfontdir %{buildroot}%{_fontdir} # catalogue install -d -m 0755 %{buildroot}%{catalogue} ln -s %{_fontdir} %{buildroot}%{catalogue}/%{fontname} # convert Korean copyright file to utf8 %{_bindir}/iconv -f EUC-KR -t UTF-8 COPYRIGHT.ks > COPYRIGHT.ko # Add AppStream metadata install -Dm 0644 -p %{SOURCE7} \ %{buildroot}%{_metainfodir}/%{fontname}-batang.metainfo.xml install -Dm 0644 -p %{SOURCE8} \ %{buildroot}%{_metainfodir}/%{fontname}-dotum.metainfo.xml install -Dm 0644 -p %{SOURCE9} \ %{buildroot}%{_metainfodir}/%{fontname}-gulim.metainfo.xml install -Dm 0644 -p %{SOURCE10} \ %{buildroot}%{_metainfodir}/%{fontname}-hline.metainfo.xml install -Dm 0644 -p %{SOURCE11} \ %{buildroot}%{_metainfodir}/%{fontname}.metainfo.xml # delete-non-ascii lines (differ on i586 and x86_64) test -e %buildroot%{_datadir}/fonts/%{fontname}/fonts.scale perl -i -ne 'print unless /[^-a-zA-Z0-9\. \n]/' %buildroot%{_datadir}/fonts/%{fontname}/fonts.{dir,scale} # 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 %changelog * Thu Jul 08 2021 Igor Vlasenko <viy@altlinux.org> 2.2-alt2_54 - update to new release by fcimport * Sun Mar 29 2020 Igor Vlasenko <viy@altlinux.ru> 2.2-alt2_51 - update * Sun Nov 05 2017 Igor Vlasenko <viy@altlinux.ru> 2.2-alt2_43 - added appdata * Sun Sep 20 2015 Igor Vlasenko <viy@altlinux.ru> 2.2-alt2_39 - update to new release by fcimport * Wed Dec 17 2014 Igor Vlasenko <viy@altlinux.ru> 2.2-alt2_38 - update to new release by fcimport * Thu Jun 26 2014 Igor Vlasenko <viy@altlinux.ru> 2.2-alt2_37 - update to new release by fcimport * Mon Aug 12 2013 Igor Vlasenko <viy@altlinux.ru> 2.2-alt2_36 - update to new release by fcimport * Fri Feb 22 2013 Igor Vlasenko <viy@altlinux.ru> 2.2-alt2_35 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 2.2-alt2_34 - update to new release by fcimport * Thu Jul 19 2012 Igor Vlasenko <viy@altlinux.ru> 2.2-alt2_33 - update to new release by fcimport * Wed Mar 21 2012 Igor Vlasenko <viy@altlinux.ru> 2.2-alt2_32 - rebuild to get rid of #27020 * Tue Feb 21 2012 Igor Vlasenko <viy@altlinux.ru> 2.2-alt1_32 - update to new release by fcimport * Sat Jan 21 2012 Igor Vlasenko <viy@altlinux.ru> 2.2-alt1_31 - update to new release by fcimport * Tue Aug 23 2011 Igor Vlasenko <viy@altlinux.ru> 2.2-alt1_30 - initial release by fcimport |