source: projects/specs/trunk/T/TrueType-ubuntufont/TrueType-ubuntufont-vl.spec @ 4853

Revision 4853, 2.8 KB checked in by kudoh, 13 years ago (diff)

%define fontname ubuntufont
%define _fontdir %{_datadir}/fonts/TrueType-%{fontname}

Name: TrueType?-%{fontname}
Summary: Ubuntu font family
Summary(ja): Ubuntu フォントファミリ
Version: 0.80
Release: 1%{?_dist_release}
License: Ubuntu Font License 1.0
Group: User Interface/X
URL:  http://font.ubuntu.com/

Source0: ubuntu-font-family-%{version}.zip
BuildRoot?: %{_tmppath}/%{name}-%{version}-root
BuildArch?: noarch

BuildRequires?: unzip
Requires: TrueType?-%{fontname}-mono
Requires: TrueType?-%{fontname}-sans
Requires: TrueType?-%{fontname}-doc

Obsoletes: TrueType?-%{fontname}-bold
Obsoletes: TrueType?-%{fontname}-italic
Obsoletes: TrueType?-%{fontname}-regular

%description
The Ubuntu Font Family are a set of matching new libre/open fonts in
development during 2010--2011.

%description -l ja
Ubuntu フォントファミリは2010年から2011年の間に開発された
自由でオープンな新しいフォントのセットです。

%package mono
Summary: Ubuntu font family monospace
Summary(ja): Ubuntu フォントファミリ 等幅
Group: User Interface/X

%description mono
This package includes Ubuntu font family monospace font.

%description -l ja mono
このパッケージには Ubuntu フォントファミリ 等幅フォントが含まれています。

%package sans
Summary: Ubuntu font family sanserif
Summary(ja): Ubuntu フォントファミリ サンセリフ
Group: User Interface/X

%description sans
This package includes Ubuntu font family sanserif fonts.

%description -l ja sans
このパッケージには Ubuntu フォントファミリ サンセリフフォントが含まれています。

%package doc
Summary: Ubuntu font family documents
Summary(ja): Ubuntu フォントファミリドキュメント
Group: User Interface/X

%description doc
This package includes important documents for Ubuntu font family
includes enduser license.

%description -l ja doc
このパッケージには Ubuntu フォントファミリのライセンスを含む
ドキュメント類が含まれています。

%prep
%setup -q -c -T
%{_bindir}/unzip -ojq %{SOURCE0}

%clean
if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then

rm -rf ${RPM_BUILD_ROOT}

fi

%build

%install
rm -rf %{buildroot}

mkdir -p $RPM_BUILD_ROOT%{_fontdir}
cp -a *.ttf $RPM_BUILD_ROOT%{_fontdir}

%post mono
%font_install_post %{_fontdir}

%post sans
%font_install_post %{_fontdir}

%postun mono
%font_install_postun %{_fontdir}

%postun sans
%font_install_postun %{_fontdir}

%files

%files mono
%{_fontdir}/UbuntuMono?*.ttf

%files sans
%{_fontdir}/Ubuntu-*.ttf

%files doc
%doc *.txt

%changelog

  • Sat Oct 01 2011 Toshiharu Kudoh <toshi.kd2@…> - 0.80-1
  • new upstream release
    • obsoleted bold, italic, regular packages
    • reorganized two packages, -mono and -sans
  • Sat Dec 25 2010 Toshiharu Kudoh <toshi.kd2@…> - 0.70.1-1
  • initial build for VineSeed
RevLine 
[2383]1%define fontname ubuntufont
2%define _fontdir %{_datadir}/fonts/TrueType-%{fontname}
3
4Name: TrueType-%{fontname}
5Summary: Ubuntu font family
6Summary(ja): Ubuntu フォントファミリ
[4853]7Version: 0.80
[2383]8Release: 1%{?_dist_release}
[4853]9License: Ubuntu Font License 1.0
[2383]10Group: User Interface/X
11URL: http://font.ubuntu.com/
12
13Source0: ubuntu-font-family-%{version}.zip
14BuildRoot: %{_tmppath}/%{name}-%{version}-root
15BuildArch: noarch
16
17BuildRequires: unzip
[4853]18Requires: TrueType-%{fontname}-mono
19Requires: TrueType-%{fontname}-sans
[2383]20Requires: TrueType-%{fontname}-doc
21
[4853]22Obsoletes: TrueType-%{fontname}-bold
23Obsoletes: TrueType-%{fontname}-italic
24Obsoletes: TrueType-%{fontname}-regular
25
[2383]26%description
27The Ubuntu Font Family are a set of matching new libre/open fonts in
28development during 2010--2011.
29
30%description -l ja
31Ubuntu フォントファミリは2010年から2011年の間に開発された
32自由でオープンな新しいフォントのセットです。
33
[4853]34%package mono
35Summary: Ubuntu font family monospace
36Summary(ja): Ubuntu フォントファミリ 等幅
[2383]37Group: User Interface/X
38
[4853]39%description mono
40This package includes Ubuntu font family monospace font.
[2383]41
[4853]42%description -l ja mono
43このパッケージには Ubuntu フォントファミリ 等幅フォントが含まれています。
[2383]44
[4853]45%package sans
46Summary: Ubuntu font family sanserif
47Summary(ja): Ubuntu フォントファミリ サンセリフ
[2383]48Group: User Interface/X
49
[4853]50%description sans
51This package includes Ubuntu font family sanserif fonts.
[2383]52
[4853]53%description -l ja sans
54このパッケージには Ubuntu フォントファミリ サンセリフフォントが含まれています。
[2383]55
56%package doc
57Summary: Ubuntu font family documents
58Summary(ja): Ubuntu フォントファミリドキュメント
59Group: User Interface/X
60
61%description doc
62This package includes important documents for Ubuntu font family
63includes enduser license.
64
65%description -l ja doc
66このパッケージには Ubuntu フォントファミリのライセンスを含む
67ドキュメント類が含まれています。
68
69
70%prep
71%setup -q -c -T
72%{_bindir}/unzip -ojq %{SOURCE0}
73
74%clean
75if test -n "${RPM_BUILD_ROOT}" && test "/" != "${RPM_BUILD_ROOT}"; then
76    rm -rf ${RPM_BUILD_ROOT}
77fi
78
79%build
80
81%install
82rm -rf %{buildroot}
83
84mkdir -p $RPM_BUILD_ROOT%{_fontdir}
85cp -a *.ttf $RPM_BUILD_ROOT%{_fontdir}
86
[4853]87%post mono
[2383]88%__font_install_post %{_fontdir}
89
[4853]90%post sans
[2383]91%__font_install_post %{_fontdir}
92
[4853]93%postun mono
[2383]94%__font_install_postun %{_fontdir}
95
[4853]96%postun sans
[2383]97%__font_install_postun %{_fontdir}
98
99%files
100
[4853]101%files mono
102%{_fontdir}/UbuntuMono*.ttf
[2383]103
[4853]104%files sans
105%{_fontdir}/Ubuntu-*.ttf
[2383]106
107%files doc
108%doc *.txt
109
110%changelog
[4853]111* Sat Oct 01 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.80-1
112- new upstream release
113  - obsoleted bold, italic, regular packages
114  - reorganized two packages, -mono and -sans
115
[2383]116* Sat Dec 25 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.70.1-1
117- initial build for VineSeed
Note: See TracBrowser for help on using the repository browser.