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