[4047] | 1 | %define _fontdir %{_datadir}/fonts/%{name} |
---|
[7532] | 2 | %define migu_version 20121030 |
---|
[4047] | 3 | %define inconsolata_version 001.010 |
---|
| 4 | |
---|
| 5 | Summary: TrueType font designed for programing |
---|
| 6 | Summary(ja): プログラミング用 TrueType フォント |
---|
| 7 | Name: TrueType-ricty |
---|
[8172] | 8 | Version: 3.2.2 |
---|
[7532] | 9 | Release: 1%{?_dist_release} |
---|
[4047] | 10 | License: public domain, SIL OFL v1.1, M+ FONT LICENSE, IPA Font License v1.0 |
---|
| 11 | Group: User Interface/X |
---|
| 12 | URL: http://save.sys.t.u-tokyo.ac.jp/~yusa/fonts/ricty.html |
---|
[7532] | 13 | Source0: Ricty-%{version}.zip |
---|
[4047] | 14 | Requires: OpenType-inconsolata >= %{inconsolata_version} |
---|
| 15 | Requires: TrueType-migu >= %{migu_version} |
---|
| 16 | |
---|
| 17 | BuildRequires: fontforge |
---|
[4201] | 18 | Requires(post): fontforge |
---|
[4047] | 19 | |
---|
| 20 | BuildArch: noarch |
---|
| 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
---|
| 22 | |
---|
| 23 | %description |
---|
| 24 | Ricty is a free, TrueType font designed for programing. |
---|
| 25 | |
---|
| 26 | We remark that Ricty fonts is generated in the installation of this package. |
---|
| 27 | |
---|
| 28 | |
---|
| 29 | %description -l ja |
---|
| 30 | Ricty は Linux 環境での研究・開発に適したフリーのプログラミング用 |
---|
| 31 | TrueType フォントです。 |
---|
| 32 | |
---|
| 33 | Ricty フォントは、パッケージのインストール時に生成されます。 |
---|
| 34 | |
---|
| 35 | %prep |
---|
| 36 | %setup -q -n Ricty-%{version} |
---|
| 37 | |
---|
[7532] | 38 | %__sed -i -e "s,#!/usr/local/bin/fontforge,#!/usr/bin/fontforge," ricty_discord_patch.pe || exit 1 |
---|
| 39 | |
---|
[4047] | 40 | %build |
---|
| 41 | |
---|
| 42 | %install |
---|
| 43 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 44 | |
---|
| 45 | %__mkdir_p $RPM_BUILD_ROOT%{_datadir}/%{name} |
---|
| 46 | %__cp -a ricty_discord_patch.pe $RPM_BUILD_ROOT%{_datadir}/%{name}/ |
---|
| 47 | %__cp -a ricty_generator.sh $RPM_BUILD_ROOT%{_datadir}/%{name}/ |
---|
| 48 | |
---|
| 49 | %__mkdir_p $RPM_BUILD_ROOT%{_fontdir} |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | %clean |
---|
| 53 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 54 | |
---|
| 55 | %post |
---|
| 56 | #set -x |
---|
| 57 | echo "Generating Ricty fonts ... " |
---|
| 58 | (cd %{_fontdir} |
---|
| 59 | %__cp %{_datadir}/%{name}/ricty_discord_patch.pe . || exit 1 |
---|
| 60 | %__cp %{_datadir}/%{name}/ricty_generator.sh . || exit 1 |
---|
| 61 | sh ricty_generator.sh \ |
---|
| 62 | %{_datadir}/fonts/OpenType-inconsolata/Inconsolata.otf \ |
---|
[7532] | 63 | %{_datadir}/fonts/TrueType-migu/migu-1m-regular.ttf \ |
---|
| 64 | %{_datadir}/fonts/TrueType-migu/migu-1m-bold.ttf |
---|
[4047] | 65 | %__rm -f ricty_discord_patch.pe ricty_generator.sh ||: |
---|
| 66 | [ ! -f Ricty-Regular.ttf ] && echo "failed." && exit 1 |
---|
| 67 | [ ! -f Ricty-Bold.ttf ] && echo "failed." && exit 1 |
---|
| 68 | ) |
---|
| 69 | echo "done." |
---|
| 70 | %__font_install_post %{_fontdir} |
---|
| 71 | |
---|
| 72 | %preun |
---|
| 73 | if [ "$1" = 0 ]; then |
---|
| 74 | %__rm -f %{_fontdir}/Ricty{,Discord}-{Regular,Bold}.ttf ||: |
---|
| 75 | fi |
---|
| 76 | |
---|
| 77 | %postun |
---|
| 78 | %__font_install_postun %{_fontdir} |
---|
| 79 | |
---|
| 80 | %files |
---|
| 81 | %defattr(-,root,root,-) |
---|
[7532] | 82 | %doc README.md |
---|
[4047] | 83 | %{_datadir}/%{name}/ |
---|
| 84 | # %{_fontdir}/Ricty-Regular.ttf |
---|
| 85 | # %{_fontdir}/Ricty-Bold.ttf |
---|
| 86 | # %{_fontdir}/RictyDiscord-Regular.ttf |
---|
| 87 | # %{_fontdir}/RictyDiscord-Bold.ttf |
---|
| 88 | %{_fontdir}/ |
---|
| 89 | |
---|
| 90 | %changelog |
---|
[8172] | 91 | * Mon Jan 13 2014 Munehiro Yamamoto <munepi@vinelinux.org> 3.2.2-1 |
---|
| 92 | - new upstream release |
---|
| 93 | |
---|
[7532] | 94 | * Sat Mar 9 2013 Munehiro Yamamoto <munepi@vinelinux.org> 3.2.1-1 |
---|
| 95 | - new upstream release |
---|
| 96 | - supported the new naming rule for Migu fonts |
---|
| 97 | |
---|
| 98 | * Thu Jan 12 2012 Munehiro Yamamoto <munepi@vinelinux.org> 3.1.3-1 |
---|
| 99 | - new upstream release |
---|
| 100 | |
---|
| 101 | * Sat Oct 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.1.2-1 |
---|
| 102 | - new upstream release |
---|
| 103 | - set %%migu_version to 20111002 |
---|
| 104 | |
---|
[4201] | 105 | * Wed Jun 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.1.0-2 |
---|
| 106 | - added Requires(post): fontforge |
---|
| 107 | |
---|
[4200] | 108 | * Wed Jun 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.1.0-1 |
---|
| 109 | - new upstream release |
---|
| 110 | |
---|
[4047] | 111 | * Sun Jun 5 2011 Munehiro Yamamoto <munepi@vinelinux.org> 3.0.2-1 |
---|
| 112 | - Initial build. |
---|