3 %bcond_with license_agreement # generates package (requires Windows license)
5 %define base_name fonts-TTF-microsoft-tahoma
7 Summary: Microsoft Tahoma TrueType font
8 Summary(pl.UTF-8): Font TrueType Tahoma firmy Microsoft
9 %if %{with license_agreement}
12 Name: %{base_name}-installer
15 Release: %{_rel}%{?with_license_agreement:wla}
16 # part of IE update - requires Windows license to use
19 %if %{with license_agreement}
20 Source0: http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/IELPKTH.CAB
21 # NoSource0-md5: 358584cddb75ac90472c25f01b308ebe
23 BuildRequires: cabextract
24 Requires(post,postun): fontpostinst
25 Requires: %{_fontsdir}/TTF
27 Source1: http://svn.pld-linux.org/svn/license-installer/license-installer.sh
28 # Source1-md5: 329c25f457fea66ec502b7ef70cb9ede
30 Requires: rpm-build-tools >= 4.4.37
31 Requires: rpmbuild(macros) >= 1.544
34 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 %define ttffontsdir %{_fontsdir}/TTF
39 Microsoft Tahoma TrueType font.
41 %description -l pl.UTF-8
42 Font TrueType Tahoma firmy Microsoft.
45 %if %{with license_agreement}
47 %{_bindir}/cabextract -L %{SOURCE0}
51 rm -rf $RPM_BUILD_ROOT
52 %if !%{with license_agreement}
53 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
56 s/@BASE_NAME@/%{base_name}/g
57 s/@TARGET_CPU@/%{_target_cpu}/g
58 s-@VERSION@-%{version}-g
59 s-@RELEASE@-%{release}-g
60 s,@USE_DISTFILES@,no,g
61 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
62 s,@DATADIR@,%{_datadir}/%{base_name},g
63 ' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
65 install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
68 install -d $RPM_BUILD_ROOT%{ttffontsdir}
69 install *.ttf $RPM_BUILD_ROOT%{ttffontsdir}
73 rm -rf $RPM_BUILD_ROOT
75 %if %{with license_agreement}
85 License issues made us not to include inherent files into this package
86 by default (You need Windows license). If you want to create full
87 working package please build it with the following command:
89 %{_bindir}/%{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
94 %defattr(644,root,root,755)
95 %if %{with license_agreement}
98 %attr(755,root,root) %{_bindir}/%{base_name}.install
99 %{_datadir}/%{base_name}