Package fonts-ttf-smc: 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 | %define oldname smc-fonts %define fontname smc # Common description %define common_desc \ The SMC Fonts package contains fonts for the display of\ traditional and new Malayalam Script. Name: fonts-ttf-smc Version: 5.0.1 Release: alt1_5 Summary: Open Type Fonts for Malayalam script Group: System/Fonts/True type License: GPLv3+ with exceptions and GPLv2+ with exceptions and GPLv2+ and GPLv2 and GPL+ URL: http://savannah.nongnu.org/projects/smc Source0: http://download.savannah.gnu.org/releases-noredirect/smc/fonts/malayalam-fonts-%{version}.tar.gz Source1: 65-0-smc-meera.conf Source2: 67-smc-anjalioldlipi.conf Source3: 67-smc-dyuthi.conf Source4: 67-smc-kalyani.conf Source5: 65-0-smc-rachana.conf Source6: 67-smc-raghumalayalam.conf Source7: 67-smc-suruma.conf Source8: AnjaliOldLipi-license-confirmation-email.txt BuildArch: noarch BuildRequires: fontpackages-devel > 1.13 BuildRequires: fontforge >= 20080429 Patch1: bug-803234.patch Source44: import.info %description %common_desc %package common Summary: Common files for smc-fonts Group: System/Fonts/True type %description common %common_desc %package -n fonts-ttf-smc-dyuthi Summary: Open Type Fonts for Malayalam script Group: System/Fonts/True type Requires: %{name}-common = %{version}-%{release} License: GPLv3+ with exceptions %description -n fonts-ttf-smc-dyuthi The Dyuthi font package contains fonts for the display of traditional Malayalam Scripts. %files -n fonts-ttf-smc-dyuthi %{_fontconfig_templatedir}/67-smc-dyuthi.conf %config(noreplace) %{_fontconfig_confdir}/67-smc-dyuthi.conf %{_fontbasedir}/*/%{_fontstem}/Dyuthi*.ttf %package -n fonts-ttf-smc-meera Summary: Open Type Fonts for Malayalam script Group: System/Fonts/True type Requires: %{name}-common = %{version}-%{release} License: GPLv2+ with exceptions %description -n fonts-ttf-smc-meera The Meera font package contains fonts for the display of traditional Malayalam Scripts. %files -n fonts-ttf-smc-meera %{_fontconfig_templatedir}/65-0-smc-meera.conf %config(noreplace) %{_fontconfig_confdir}/65-0-smc-meera.conf %{_fontbasedir}/*/%{_fontstem}/Meera.ttf %doc Meera/COPYING Meera/README %package -n fonts-ttf-smc-rachana Summary: Open Type Fonts for Malayalam script Group: System/Fonts/True type Requires: %{name}-common = %{version}-%{release} License: GPLv2+ %description -n fonts-ttf-smc-rachana The Rachana font package contains fonts for the display of traditional Malayalam Scripts. %files -n fonts-ttf-smc-rachana %{_fontconfig_templatedir}/65-0-smc-rachana.conf %config(noreplace) %{_fontconfig_confdir}/65-0-smc-rachana.conf %{_fontbasedir}/*/%{_fontstem}/Rachana.ttf %doc Rachana/COPYING Rachana/LICENSE Rachana/README %package -n fonts-ttf-smc-raghumalayalam Summary: Open Type Fonts for Malayalam script Group: System/Fonts/True type Requires: %{name}-common = %{version}-%{release} License: GPLv2 %description -n fonts-ttf-smc-raghumalayalam The SMC Malayalam fonts package contains fonts for the display of new Malayalam Scripts. %files -n fonts-ttf-smc-raghumalayalam %{_fontconfig_templatedir}/67-smc-raghumalayalam.conf %config(noreplace) %{_fontconfig_confdir}/67-smc-raghumalayalam.conf %{_fontbasedir}/*/%{_fontstem}/RaghuMalayalamSans.ttf %package -n fonts-ttf-smc-suruma Summary: Open Type Fonts for Malayalam script Group: System/Fonts/True type Requires: %{name}-common = %{version}-%{release} License: GPLv3 with exceptions %description -n fonts-ttf-smc-suruma The Suruma font package contains fonts for the display of traditional Malayalam Scripts. %files -n fonts-ttf-smc-suruma %{_fontconfig_templatedir}/67-smc-suruma.conf %config(noreplace) %{_fontconfig_confdir}/67-smc-suruma.conf %{_fontbasedir}/*/%{_fontstem}/Suruma.ttf %package -n fonts-ttf-smc-kalyani Summary: Open Type Fonts for Malayalam script Group: System/Fonts/True type Requires: %{name}-common = %{version}-%{release} License: GPLv3+ with exceptions %description -n fonts-ttf-smc-kalyani The Kalyani font package contains fonts for the display of new Malayalam Scripts. %files -n fonts-ttf-smc-kalyani %{_fontconfig_templatedir}/67-smc-kalyani.conf %config(noreplace) %{_fontconfig_confdir}/67-smc-kalyani.conf %{_fontbasedir}/*/%{_fontstem}/Kalyani.ttf %package -n fonts-ttf-smc-anjalioldlipi Summary: Open Type Fonts for Malayalam script Group: System/Fonts/True type Requires: %{name}-common = %{version}-%{release} License: GPL+ %description -n fonts-ttf-smc-anjalioldlipi The Anjali OldLipi package contains fonts for the display of traditional Malayalam Scripts. %files -n fonts-ttf-smc-anjalioldlipi %{_fontconfig_templatedir}/67-smc-anjalioldlipi.conf %config(noreplace) %{_fontconfig_confdir}/67-smc-anjalioldlipi.conf %{_fontbasedir}/*/%{_fontstem}/AnjaliOldLipi.ttf #%{_fontbasedir}/*/%{_fontstem} is shared by following packages since they all are for malayalam script only %prep %setup -q -n malayalam-fonts-%{version} %patch1 -p1 -b .1-panose-setting %build chmod +x generate.pe make %install install -m 0755 -d %{buildroot}%{_fontdir} install -m 0644 -p AnjaliOldLipi/*.ttf %{buildroot}%{_fontdir} install -m 0644 -p Dyuthi/*.ttf %{buildroot}%{_fontdir} install -m 0644 -p Kalyani/*.ttf %{buildroot}%{_fontdir} install -m 0644 -p Meera/*.ttf %{buildroot}%{_fontdir} install -m 0644 -p Rachana/*.ttf %{buildroot}%{_fontdir} install -m 0644 -p RaghuMalayalamSans/*.ttf %{buildroot}%{_fontdir} install -m 0644 -p Suruma/*.ttf %{buildroot}%{_fontdir} install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ %{buildroot}%{_fontconfig_confdir} install -m 0644 -p %{SOURCE1} \ %{buildroot}%{_fontconfig_templatedir}/65-0-smc-meera.conf install -m 0644 -p %{SOURCE2} \ %{buildroot}%{_fontconfig_templatedir}/67-smc-anjalioldlipi.conf install -m 0644 -p %{SOURCE3} \ %{buildroot}%{_fontconfig_templatedir}/67-smc-dyuthi.conf install -m 0644 -p %{SOURCE4} \ %{buildroot}%{_fontconfig_templatedir}/67-smc-kalyani.conf install -m 0644 -p %{SOURCE5} \ %{buildroot}%{_fontconfig_templatedir}/65-0-smc-rachana.conf install -m 0644 -p %{SOURCE6} \ %{buildroot}%{_fontconfig_templatedir}/67-smc-raghumalayalam.conf install -m 0644 -p %{SOURCE7} \ %{buildroot}%{_fontconfig_templatedir}/67-smc-suruma.conf for fconf in 65-0-smc-meera.conf \ 67-smc-anjalioldlipi.conf \ 67-smc-dyuthi.conf \ 67-smc-kalyani.conf \ 65-0-smc-rachana.conf \ 67-smc-raghumalayalam.conf \ 67-smc-suruma.conf ; do ln -s %{_fontconfig_templatedir}/$fconf \ %{buildroot}%{_fontconfig_confdir}/$fconf done # 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 common %doc ChangeLog %changelog * Fri Feb 22 2013 Igor Vlasenko <viy@altlinux.ru> 5.0.1-alt1_5 - update to new release by fcimport * Mon Dec 03 2012 Igor Vlasenko <viy@altlinux.ru> 5.0.1-alt1_4 - update to new release by fcimport * Fri Jul 27 2012 Igor Vlasenko <viy@altlinux.ru> 5.0.1-alt1_3 - update to new release by fcimport * Wed May 09 2012 Igor Vlasenko <viy@altlinux.ru> 5.0.1-alt1_2 - update to new release by fcimport * Wed Mar 21 2012 Igor Vlasenko <viy@altlinux.ru> 4.4-alt3_7 - rebuild to get rid of #27020 * Sat Jan 21 2012 Igor Vlasenko <viy@altlinux.ru> 4.4-alt2_7 - update to new release by fcimport * Wed Aug 24 2011 Igor Vlasenko <viy@altlinux.ru> 4.4-alt2_5 - rebuild with new rpm-build-fonts * Sat Aug 06 2011 Igor Vlasenko <viy@altlinux.ru> 4.4-alt1_5 - initial release by fcimport |