| 1 | %define fontname dejavu |
|---|
| 2 | %define archivename dejavu-fonts-ttf |
|---|
| 3 | %define _fontdir %{_datadir}/fonts/TrueType-%{fontname} |
|---|
| 4 | |
|---|
| 5 | Name: TrueType-%{fontname} |
|---|
| 6 | Version: 2.33 |
|---|
| 7 | Release: 1%{?_dist_release} |
|---|
| 8 | Summary: The DejaVu fonts are a font family based on the Vera Fonts |
|---|
| 9 | Summary(ja): DejaVu フォントは Vera フォントをベースとしたフォントファミリーです |
|---|
| 10 | |
|---|
| 11 | License: Bitstream Vera and Public Domain |
|---|
| 12 | Group: User Interface/X |
|---|
| 13 | BuildArch: noarch |
|---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 15 | URL: http://sourceforge.net/projects/dejavu/ |
|---|
| 16 | Source: %{archivename}-%{version}.tar.bz2 |
|---|
| 17 | |
|---|
| 18 | Requires: TrueType-%{fontname}-sans >= %{version} |
|---|
| 19 | Requires: TrueType-%{fontname}-serif >= %{version} |
|---|
| 20 | Requires: TrueType-%{fontname}-sans-mono >= %{version} |
|---|
| 21 | Requires: TrueType-%{fontname}-doc >= %{version} |
|---|
| 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 23 | BuildArch: noarch |
|---|
| 24 | Obsoletes: TrueType-DejaVu |
|---|
| 25 | |
|---|
| 26 | %description |
|---|
| 27 | The DejaVu fonts are a font family |
|---|
| 28 | based on the Vera Fonts (version 1.10). |
|---|
| 29 | |
|---|
| 30 | %description -l ja |
|---|
| 31 | DejaVu Fonts は Bitstream Vera Fonts (version 1.10) を |
|---|
| 32 | ベースにしたフォントファミリです。 |
|---|
| 33 | |
|---|
| 34 | このパッケージは DejaVu フォントのメタパッケージです。 |
|---|
| 35 | Sans・Serif・Sans-Mono の3書体をインストールします。 |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | %package sans |
|---|
| 39 | Summary: DejaVu sans TrueType Fonts |
|---|
| 40 | Summary(ja): DejaVu sans True Type フォント |
|---|
| 41 | Group: User Interface/X |
|---|
| 42 | Requires: TrueType-%{fontname}-doc |
|---|
| 43 | |
|---|
| 44 | %description sans |
|---|
| 45 | This package includes DejaVu sans TrueType fonts. |
|---|
| 46 | |
|---|
| 47 | %description -l ja sans |
|---|
| 48 | このパッケージには DejaVu sans フォントが含まれています。 |
|---|
| 49 | |
|---|
| 50 | - DejaVuSans-Bold |
|---|
| 51 | - DejaVuSans-BoldOblique |
|---|
| 52 | - DejaVuSans-ExtraLight |
|---|
| 53 | - DejaVuSans-Oblique |
|---|
| 54 | - DejaVuSans |
|---|
| 55 | - DejaVuSansCondensed-Bold |
|---|
| 56 | - DejaVuSansCondensed-BoldOblique |
|---|
| 57 | - DejaVuSansCondensed-Oblique |
|---|
| 58 | - DejaVuSansCondensed |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | %package serif |
|---|
| 62 | Summary: DejaVu serif TrueType Fonts |
|---|
| 63 | Summary(ja): DejaVu serif True Type フォント |
|---|
| 64 | Group: User Interface/X |
|---|
| 65 | Requires: TrueType-%{fontname}-doc |
|---|
| 66 | |
|---|
| 67 | %description serif |
|---|
| 68 | This package includes DejaVu serif TrueType fonts. |
|---|
| 69 | |
|---|
| 70 | %description -l ja serif |
|---|
| 71 | このパッケージには DejaVu serif フォントが含まれています。 |
|---|
| 72 | |
|---|
| 73 | - DejaVuSerif-Bold |
|---|
| 74 | - DejaVuSerif-BoldItalic |
|---|
| 75 | - DejaVuSerif-Italic |
|---|
| 76 | - DejaVuSerif |
|---|
| 77 | - DejaVuSerifCondensed-Bold |
|---|
| 78 | - DejaVuSerifCondensed-BoldItalic |
|---|
| 79 | - DejaVuSerifCondensed-Italic |
|---|
| 80 | - DejaVuSerifCondensed |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | %package sans-mono |
|---|
| 84 | Summary: DejaVu sans-mono TrueType Fonts |
|---|
| 85 | Summary(ja): DejaVu sans-mono True Type フォント |
|---|
| 86 | Group: User Interface/X |
|---|
| 87 | Requires: TrueType-%{fontname}-doc |
|---|
| 88 | |
|---|
| 89 | %description sans-mono |
|---|
| 90 | This package includes DejaVu sans-mono TrueType fonts. |
|---|
| 91 | |
|---|
| 92 | %description -l ja sans-mono |
|---|
| 93 | このパッケージには DejaVu sans-mono フォントが含まれています。 |
|---|
| 94 | |
|---|
| 95 | - DejaVuSansMono-Bold |
|---|
| 96 | - DejaVuSansMono-BoldOblique |
|---|
| 97 | - DejaVuSansMono-Oblique |
|---|
| 98 | - DejaVuSansMono |
|---|
| 99 | |
|---|
| 100 | %package doc |
|---|
| 101 | Summary: DejaVu Font Documents |
|---|
| 102 | Summary(ja): DejaVu フォントドキュメント |
|---|
| 103 | Group: User Interface/X |
|---|
| 104 | |
|---|
| 105 | %description doc |
|---|
| 106 | This package includes important documents for DejaVu fonts includes enduser |
|---|
| 107 | license. |
|---|
| 108 | |
|---|
| 109 | %description -l ja doc |
|---|
| 110 | このパッケージには DejaVu フォントのライセンスを含むドキュメント類が含まれています。 |
|---|
| 111 | |
|---|
| 112 | |
|---|
| 113 | %prep |
|---|
| 114 | %setup -q -n %{archivename}-%{version} |
|---|
| 115 | mv ttf/*.ttf . |
|---|
| 116 | |
|---|
| 117 | %build |
|---|
| 118 | |
|---|
| 119 | %install |
|---|
| 120 | %{__rm} -rf $RPM_BUILD_ROOT |
|---|
| 121 | |
|---|
| 122 | mkdir -p $RPM_BUILD_ROOT%{_fontdir} |
|---|
| 123 | cp -a *.ttf $RPM_BUILD_ROOT%{_fontdir} |
|---|
| 124 | |
|---|
| 125 | %clean |
|---|
| 126 | if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then |
|---|
| 127 | rm -rf ${RPM_BUILD_ROOT} |
|---|
| 128 | fi |
|---|
| 129 | |
|---|
| 130 | %post sans |
|---|
| 131 | %__font_install_post %{_fontdir} |
|---|
| 132 | |
|---|
| 133 | %post serif |
|---|
| 134 | %__font_install_post %{_fontdir} |
|---|
| 135 | |
|---|
| 136 | %post sans-mono |
|---|
| 137 | %__font_install_post %{_fontdir} |
|---|
| 138 | |
|---|
| 139 | |
|---|
| 140 | %postun sans |
|---|
| 141 | %__font_install_postun %{_fontdir} |
|---|
| 142 | |
|---|
| 143 | %postun serif |
|---|
| 144 | %__font_install_postun %{_fontdir} |
|---|
| 145 | |
|---|
| 146 | %postun sans-mono |
|---|
| 147 | %__font_install_postun %{_fontdir} |
|---|
| 148 | |
|---|
| 149 | %files |
|---|
| 150 | |
|---|
| 151 | %files sans |
|---|
| 152 | %{_fontdir}/DejaVuSans*.ttf |
|---|
| 153 | |
|---|
| 154 | %files serif |
|---|
| 155 | %{_fontdir}/DejaVuSerif*.ttf |
|---|
| 156 | |
|---|
| 157 | %files sans-mono |
|---|
| 158 | %{_fontdir}/DejaVuSansMono*.ttf |
|---|
| 159 | |
|---|
| 160 | %files doc |
|---|
| 161 | %doc *.txt |
|---|
| 162 | %doc AUTHORS BUGS LICENSE NEWS README |
|---|
| 163 | |
|---|
| 164 | |
|---|
| 165 | %changelog |
|---|
| 166 | * Fri Apr 29 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.33-1 |
|---|
| 167 | - new upstream release |
|---|
| 168 | |
|---|
| 169 | * Mon Aug 23 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.32-1 |
|---|
| 170 | - new upstream release |
|---|
| 171 | |
|---|
| 172 | * Sat May 29 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.31-1 |
|---|
| 173 | - new upstream release |
|---|
| 174 | - added Japanase summary, improved summary |
|---|
| 175 | - added Requires: TrueType-%{fontname}-doc in TrueType-%{fontname} package |
|---|
| 176 | |
|---|
| 177 | * Tue Sep 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.30-1 |
|---|
| 178 | - new upstream release |
|---|
| 179 | |
|---|
| 180 | * Sat May 9 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.29-3 |
|---|
| 181 | - added Obsoletes: TrueType-DejaVu |
|---|
| 182 | |
|---|
| 183 | * Wed Apr 29 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.29-2 |
|---|
| 184 | - spec rewrote mostly (compliant to TrueType-IPAfont.spec) |
|---|
| 185 | - renamed package name |
|---|
| 186 | - splitted sans, serif, sans-mono, and doc packages |
|---|
| 187 | - spec in UTF-8 |
|---|
| 188 | |
|---|
| 189 | * Thu Mar 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.29-1 |
|---|
| 190 | - new upstream release |
|---|
| 191 | |
|---|
| 192 | * Sat Jan 10 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.28-3 |
|---|
| 193 | - fixed Summary |
|---|
| 194 | - fixed Lisense |
|---|
| 195 | - modified description -l ja |
|---|
| 196 | |
|---|
| 197 | * Thu Jan 1 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.28-2 |
|---|
| 198 | - fixed fontdir name |
|---|
| 199 | |
|---|
| 200 | * Wed Dec 31 2008 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.28-1 |
|---|
| 201 | - initial build for VineSeed |
|---|