| 1 |
%define fontname %NAME% |
| 2 |
#%define fontconf ??-%{fontname}.conf |
| 3 |
|
| 4 |
Name: %{fontname}-fonts |
| 5 |
Version: %VERSION% |
| 6 |
Release: 1%{?dist} |
| 7 |
Summary: WenQuanYi Zen Hei - A Compact CJK Font Derived from Droid Family |
| 8 |
|
| 9 |
Group: User Interface/X |
| 10 |
License: GPLv3 with exceptions |
| 11 |
URL: http://wenq.org/enindex.cgi |
| 12 |
Source0: http://downloads.sourceforge.net/wqy/%{fontname}-%{version}.tar.gz |
| 13 |
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
| 14 |
|
| 15 |
BuildArch: noarch |
| 16 |
BuildRequires: fontpackages-devel |
| 17 |
Requires: fontpackages-filesystem |
| 18 |
|
| 19 |
%description |
| 20 |
%INFO% |
| 21 |
|
| 22 |
%prep |
| 23 |
%setup -q -n %{fontname} |
| 24 |
|
| 25 |
|
| 26 |
%build |
| 27 |
|
| 28 |
|
| 29 |
%install |
| 30 |
rm -fr %{buildroot} |
| 31 |
|
| 32 |
install -m 0755 -d %{buildroot}%{_fontdir} |
| 33 |
install -m 0644 -p *.ttc %{buildroot}%{_fontdir} |
| 34 |
|
| 35 |
#install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \ |
| 36 |
# %{buildroot}%{_fontconfig_confdir} |
| 37 |
|
| 38 |
#install -m 0644 -p %{fontconf} \ |
| 39 |
# %{buildroot}%{_fontconfig_templatedir}/%{fontconf} |
| 40 |
|
| 41 |
#ln -s %{_fontconfig_templatedir}/%{fontconf} \ |
| 42 |
# %{buildroot}%{_fontconfig_confdir}/%{fontconf} |
| 43 |
|
| 44 |
install -m 0755 -d %{buildroot}%{_bindir} |
| 45 |
|
| 46 |
|
| 47 |
%clean |
| 48 |
rm -fr %{buildroot} |
| 49 |
|
| 50 |
|
| 51 |
%_font_pkg -f ??-%{fontname}*.conf *.ttc |
| 52 |
|
| 53 |
%doc AUTHORS ChangeLog COPYING README INSTALL |
| 54 |
%dir %{_fontdir} |
| 55 |
%attr(744 ,root ,root) %{_bindir}/%{setscript} |
| 56 |
|
| 57 |
|
| 58 |
%changelog |
| 59 |
|