[1667] | 1 | %define fontname stix |
---|
| 2 | %define fontname_cap STIX |
---|
| 3 | %define _fontdir %{_datadir}/fonts/OpenType-%{fontname} |
---|
| 4 | |
---|
| 5 | Name: OpenType-%{fontname} |
---|
| 6 | Summary: the Scientific and Technical Information eXchange fonts |
---|
| 7 | Summary(ja): 数式用のフリーなフォント STIX フォント |
---|
| 8 | Version: 1.0.0 |
---|
[5456] | 9 | Release: 2%{?_dist_release} |
---|
[1667] | 10 | License: OFL |
---|
| 11 | Group: User Interface/X |
---|
| 12 | URL: http://www.stixfonts.org/ |
---|
| 13 | |
---|
| 14 | Source0: %{fontname_cap}v%{version}.zip |
---|
| 15 | |
---|
| 16 | BuildRequires: unzip |
---|
| 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | BuildArch: noarch |
---|
| 19 | Requires: OpenType-%{fontname}-doc |
---|
| 20 | |
---|
| 21 | %description |
---|
| 22 | The mission of the Scientific and Technical Information Exchange (STIX) font |
---|
| 23 | creation project is the preparation of a comprehensive set of fonts that |
---|
| 24 | serve the scientific and engineering community in the process from manuscript |
---|
| 25 | creation through final publication, both in electronic and print formats. |
---|
| 26 | |
---|
| 27 | %package doc |
---|
| 28 | Summary: STIX font Document |
---|
| 29 | Summary(ja): STIX フォントドキュメント |
---|
| 30 | Group: User Interface/X |
---|
| 31 | |
---|
| 32 | %description doc |
---|
| 33 | This package includes important documents for STIX font |
---|
| 34 | includes enduser license. |
---|
| 35 | |
---|
| 36 | %description -l ja doc |
---|
| 37 | このパッケージには STIX フォントのライセンスを含む |
---|
| 38 | ドキュメント類が含まれています。 |
---|
| 39 | |
---|
| 40 | %prep |
---|
| 41 | %setup -q -n %{fontname_cap}v%{version} |
---|
| 42 | %__tar cjf %{name}-documents.tar.bz2 Blocks/ Glyphs/ HTML/ \ |
---|
| 43 | STIX\ Font\ Release\ Documentation\ 2010.pdf |
---|
| 44 | |
---|
| 45 | %clean |
---|
| 46 | if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then |
---|
| 47 | rm -rf ${RPM_BUILD_ROOT} |
---|
| 48 | fi |
---|
| 49 | |
---|
| 50 | %build |
---|
| 51 | |
---|
| 52 | %install |
---|
| 53 | rm -rf %{buildroot} |
---|
| 54 | |
---|
| 55 | mkdir -p $RPM_BUILD_ROOT%{_fontdir} |
---|
| 56 | cp -a Fonts/*.otf $RPM_BUILD_ROOT%{_fontdir} |
---|
| 57 | |
---|
| 58 | %post |
---|
| 59 | %__font_install_post %{_fontdir} |
---|
| 60 | |
---|
| 61 | %postun |
---|
| 62 | %__font_install_postun %{_fontdir} |
---|
| 63 | |
---|
| 64 | %files |
---|
| 65 | %{_fontdir}/*.otf |
---|
| 66 | |
---|
| 67 | %files doc |
---|
| 68 | %doc License/STIX\ Font\ License\ 2010.pdf |
---|
| 69 | %doc %{name}-documents.tar.bz2 |
---|
| 70 | |
---|
| 71 | %changelog |
---|
[5456] | 72 | * Sun Jan 22 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-2 |
---|
| 73 | - rebuilt with rpm-4.8.1 |
---|
| 74 | |
---|
[1667] | 75 | * Tue Aug 24 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1 |
---|
| 76 | - initial build for VineSeed |
---|