| | 32 | %define fontdir %{_datadir}/fonts/%{name}/ |
| | 33 | |
| | 34 | Summary: FooBar font family - Free Japanese True Type Font |
| | 35 | Summary(ja): FooBarフォントファミリ - フリーの日本語 True Type フォント |
| | 36 | Name: TrueType-foobar |
| | 37 | Version: 1.0 |
| | 38 | Release: 1%{?_dist_release} |
| | 39 | |
| | 40 | License: BSD Like |
| | 41 | Group: User Interface/X |
| | 42 | Url: http://foobar.example.com/ |
| | 43 | |
| | 44 | Source0: %{name}-%{version}.tar.bz2 |
| | 45 | Source10: foobar.ttfconf |
| | 46 | Source20: 60-foobar.conf |
| | 47 | Source30: cidfmap.ja.foobar |
| | 48 | |
| | 49 | BuildArch: noarch |
| | 50 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
| | 51 | Requires(post): mktcapdir >= 0.6.0 |
| | 52 | Requires(post): TrueType-base >= 4.4.1 |
| | 53 | Requires(post): fontconfig, xorg-x11-font-utils |
| | 54 | Requires(post): vutils >= 2.0.2 |
| | 55 | Requires: TrueType-base >= 4.4.1 |
| | 56 | Provides: TrueTypeFonts_jp = %{ttfjp_version} |
| | 57 | Obsoletes: TrueTypeFonts_jp < 4.1 |
| | 58 | Obsoletes: TrueType-kochi <= 4.4.1 |
| | 59 | Obsoletes: TrueType-sazanami < 3.0 |
| | 60 | |
| | 61 | %description |
| | 62 | FooBar font family - Free Japanese True Type Font |
| | 63 | |
| | 64 | %prep |
| | 65 | rm -rf ${RPM_BUILD_ROOT} |
| | 66 | |
| | 67 | %setup -q |
| | 68 | |
| | 69 | %install |
| | 70 | |
| | 71 | # install font files |
| | 72 | mkdir -p $RPM_BUILD_ROOT/%{fontdir} |
| | 73 | install -m664 *.ttf $RPM_BUILD_ROOT/%{fontdir} |
| | 74 | |
| | 75 | # install mktcapdir configs (ttfconf) |
| | 76 | install -m664 %{SOURCE10} $RPM_BUILD_ROOT/%{fontdir} |
| | 77 | |
| | 78 | # install fontconfig files |
| | 79 | mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.{avail,d} |
| | 80 | install -m664 %{SOURCE20} $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.avail/ |
| | 81 | for i in $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.avail/*.conf |
| | 82 | do |
| | 83 | ln -sf ../conf.avail/$(basename $i) $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.d/ |
| | 84 | done |
| | 85 | |
| | 86 | # install ghostscript8 cidfmap |
| | 87 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/ghostscript/conf.d |
| | 88 | install -m644 %{SOURCE30} $RPM_BUILD_ROOT%{_datadir}/ghostscript/conf.d |
| | 89 | |