%bcond_with license_agreement # generates package (requires Windows license)
#
%define base_name fonts-TTF-microsoft-tahoma
-Summary: Microsoft Tahoma True Type font
-Summary(pl.UTF-8): Font True Type Tahoma firmy Microsoft
+%define _rel 6
+Summary: Microsoft Tahoma TrueType font
+Summary(pl.UTF-8): Font TrueType Tahoma firmy Microsoft
%if %{with license_agreement}
Name: %{base_name}
%else
Name: %{base_name}-installer
%endif
Version: 20020525
-%define _rel 3
Release: %{_rel}%{?with_license_agreement:wla}
# part of IE update - requires Windows license to use
License: Windows EULA
Requires(post,postun): fontpostinst
Requires: %{_fontsdir}/TTF
%else
-Source1: license-installer.sh
+Source1: http://svn.pld-linux.org/svn/license-installer/license-installer.sh
+# Source1-md5: 329c25f457fea66ec502b7ef70cb9ede
Requires: cabextract
-Requires: rpm-build-tools
+Requires: rpm-build-tools >= 4.4.37
+Requires: rpmbuild(macros) >= 1.544
%endif
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define ttffontsdir %{_fontsdir}/TTF
%description
-Microsoft Tahoma True Type font.
+Microsoft Tahoma TrueType font.
%description -l pl.UTF-8
-Font True Type Tahoma firmy Microsoft.
+Font TrueType Tahoma firmy Microsoft.
%prep
%if %{with license_agreement}
s-@RELEASE@-%{release}-g
s,@USE_DISTFILES@,no,g
s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
+ s,@DATADIR@,%{_datadir}/%{base_name},g
' %{SOURCE1} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}