| 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.1.0 |
|---|
| 9 | Release: 1%{?_dist_release} |
|---|
| 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 -c -n %{fontname_cap}v%{version} |
|---|
| 42 | |
|---|
| 43 | %clean |
|---|
| 44 | if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then |
|---|
| 45 | rm -rf ${RPM_BUILD_ROOT} |
|---|
| 46 | fi |
|---|
| 47 | |
|---|
| 48 | %build |
|---|
| 49 | |
|---|
| 50 | %install |
|---|
| 51 | rm -rf %{buildroot} |
|---|
| 52 | |
|---|
| 53 | mkdir -p $RPM_BUILD_ROOT%{_fontdir} |
|---|
| 54 | cp -a Fonts/STIX-General/*.otf $RPM_BUILD_ROOT%{_fontdir} |
|---|
| 55 | cp -a Fonts/STIX-Word/*.otf $RPM_BUILD_ROOT%{_fontdir} |
|---|
| 56 | |
|---|
| 57 | %post |
|---|
| 58 | %__font_install_post %{_fontdir} |
|---|
| 59 | |
|---|
| 60 | %postun |
|---|
| 61 | %__font_install_postun %{_fontdir} |
|---|
| 62 | |
|---|
| 63 | %files |
|---|
| 64 | %{_fontdir}/*.otf |
|---|
| 65 | |
|---|
| 66 | %files doc |
|---|
| 67 | %doc License/STIX\ Font\ License\ 2010.pdf |
|---|
| 68 | %doc STIX\ Font\ 1.1.0\ Release\ Documentation.doc |
|---|
| 69 | |
|---|
| 70 | %changelog |
|---|
| 71 | * Wed Apr 25 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.1.0-1 |
|---|
| 72 | - new upstream release |
|---|
| 73 | |
|---|
| 74 | * Tue Aug 24 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.0.0-1 |
|---|
| 75 | - initial build for VineSeed |
|---|