]> git.pld-linux.org Git - packages/fonts-TTF-microsoft-tahoma.git/blame - fonts-TTF-microsoft-tahoma.spec
- updated to new CVS layout
[packages/fonts-TTF-microsoft-tahoma.git] / fonts-TTF-microsoft-tahoma.spec
CommitLineData
430dc27d
JB
1#
2# Conditional build:
ed7d13f3 3%bcond_with license_agreement # generates package (requires Windows license)
430dc27d 4#
ed7d13f3 5%define base_name fonts-TTF-microsoft-tahoma
bff50e90
JB
6Summary: Microsoft Tahoma TrueType font
7Summary(pl.UTF-8): Font TrueType Tahoma firmy Microsoft
d9e263e2 8%if %{with license_agreement}
9Name: %{base_name}
10%else
11Name: %{base_name}-installer
12%endif
430dc27d 13Version: 20020525
db6edc9b 14%define _rel 4
ed7d13f3
ER
15Release: %{_rel}%{?with_license_agreement:wla}
16# part of IE update - requires Windows license to use
17License: Windows EULA
430dc27d 18Group: Fonts
d9e263e2 19%if %{with license_agreement}
430dc27d
JB
20Source0: http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB
21# NoSource0-md5: 358584cddb75ac90472c25f01b308ebe
ed7d13f3 22NoSource: 0
430dc27d 23BuildRequires: cabextract
d9e263e2 24Requires(post,postun): fontpostinst
ed7d13f3 25Requires: %{_fontsdir}/TTF
d9e263e2 26%else
db6edc9b 27Source1: http://svn.pld-linux.org/svn/license-installer/license-installer.sh
28# Source1-md5: 4fb1600353dd57fe088e0b12fb0ecac2
635688be 29Requires: cabextract
db6edc9b 30Requires: rpm-build-tools >= 4.4.35
d9e263e2 31%endif
430dc27d
JB
32BuildArch: noarch
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%define ttffontsdir %{_fontsdir}/TTF
36
37%description
bff50e90 38Microsoft Tahoma TrueType font.
430dc27d 39
0c72036f 40%description -l pl.UTF-8
bff50e90 41Font TrueType Tahoma firmy Microsoft.
430dc27d
JB
42
43%prep
d9e263e2 44%if %{with license_agreement}
430dc27d 45%setup -q -c -T
ed7d13f3 46%{_bindir}/cabextract -L %{SOURCE0}
d9e263e2 47%endif
430dc27d
JB
48
49%install
50rm -rf $RPM_BUILD_ROOT
0bae8f75 51%if !%{with license_agreement}
d9e263e2 52install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
53
5cb78f9a
ER
54sed -e '
55 s/@BASE_NAME@/%{base_name}/g
56 s/@TARGET_CPU@/%{_target_cpu}/g
57 s-@VERSION@-%{version}-g
58 s-@RELEASE@-%{release}-g
ed7d13f3 59 s,@USE_DISTFILES@,no,g
5cb78f9a 60 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
db6edc9b 61 s,@DATADIR@,%{_datadir}/%{base_name},g
ed7d13f3 62' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
d9e263e2 63
64install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
65
66%else
430dc27d
JB
67install -d $RPM_BUILD_ROOT%{ttffontsdir}
68install *.ttf $RPM_BUILD_ROOT%{ttffontsdir}
d9e263e2 69%endif
430dc27d
JB
70
71%clean
72rm -rf $RPM_BUILD_ROOT
73
d9e263e2 74%if %{with license_agreement}
430dc27d
JB
75%post
76fontpostinst TTF
77
78%postun
79fontpostinst TTF
80
d9e263e2 81%else
498ed5b5 82%post
d9e263e2 83echo "
84License issues made us not to include inherent files into this package
ed7d13f3
ER
85by default (You need Windows license). If you want to create full
86working package please build it with the following command:
d9e263e2 87
ed7d13f3 88%{_bindir}/%{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
d9e263e2 89"
90%endif
91
430dc27d
JB
92%files
93%defattr(644,root,root,755)
d9e263e2 94%if %{with license_agreement}
430dc27d 95%{ttffontsdir}/*
d9e263e2 96%else
97%attr(755,root,root) %{_bindir}/%{base_name}.install
98%{_datadir}/%{base_name}
99%endif
This page took 0.049904 seconds and 4 git commands to generate.