]> git.pld-linux.org Git - packages/fonts-TTF-microsoft-tahoma.git/blame - fonts-TTF-microsoft-tahoma.spec
- release 6 (by relup.sh)
[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
5694b28c 6%define _rel 6
bff50e90
JB
7Summary: Microsoft Tahoma TrueType font
8Summary(pl.UTF-8): Font TrueType Tahoma firmy Microsoft
d9e263e2 9%if %{with license_agreement}
10Name: %{base_name}
11%else
12Name: %{base_name}-installer
13%endif
430dc27d 14Version: 20020525
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
9e1b89f3 28# Source1-md5: 329c25f457fea66ec502b7ef70cb9ede
635688be 29Requires: cabextract
9e1b89f3 30Requires: rpm-build-tools >= 4.4.37
622cf5a4 31Requires: rpmbuild(macros) >= 1.544
d9e263e2 32%endif
430dc27d
JB
33BuildArch: noarch
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%define ttffontsdir %{_fontsdir}/TTF
37
38%description
bff50e90 39Microsoft Tahoma TrueType font.
430dc27d 40
0c72036f 41%description -l pl.UTF-8
bff50e90 42Font TrueType Tahoma firmy Microsoft.
430dc27d
JB
43
44%prep
d9e263e2 45%if %{with license_agreement}
430dc27d 46%setup -q -c -T
ed7d13f3 47%{_bindir}/cabextract -L %{SOURCE0}
d9e263e2 48%endif
430dc27d
JB
49
50%install
51rm -rf $RPM_BUILD_ROOT
0bae8f75 52%if !%{with license_agreement}
d9e263e2 53install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
54
5cb78f9a
ER
55sed -e '
56 s/@BASE_NAME@/%{base_name}/g
57 s/@TARGET_CPU@/%{_target_cpu}/g
58 s-@VERSION@-%{version}-g
59 s-@RELEASE@-%{release}-g
ed7d13f3 60 s,@USE_DISTFILES@,no,g
5cb78f9a 61 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
db6edc9b 62 s,@DATADIR@,%{_datadir}/%{base_name},g
ed7d13f3 63' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
d9e263e2 64
65install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
66
67%else
430dc27d
JB
68install -d $RPM_BUILD_ROOT%{ttffontsdir}
69install *.ttf $RPM_BUILD_ROOT%{ttffontsdir}
d9e263e2 70%endif
430dc27d
JB
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
d9e263e2 75%if %{with license_agreement}
430dc27d
JB
76%post
77fontpostinst TTF
78
79%postun
80fontpostinst TTF
81
d9e263e2 82%else
498ed5b5 83%post
d9e263e2 84echo "
85License issues made us not to include inherent files into this package
ed7d13f3
ER
86by default (You need Windows license). If you want to create full
87working package please build it with the following command:
d9e263e2 88
ed7d13f3 89%{_bindir}/%{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
d9e263e2 90"
91%endif
92
430dc27d
JB
93%files
94%defattr(644,root,root,755)
d9e263e2 95%if %{with license_agreement}
430dc27d 96%{ttffontsdir}/*
d9e263e2 97%else
98%attr(755,root,root) %{_bindir}/%{base_name}.install
99%{_datadir}/%{base_name}
100%endif
This page took 0.044554 seconds and 4 git commands to generate.