3 %bcond_with license_agreement # generates package (may require MS Office license?)
5 Summary: Microsoft Arial Unicode True Type font
6 Summary(pl): Font True Type Arial Unicode firmy Microsoft
7 %define base_name fonts-TTF-Microsoft-ArialUnicode
8 %if %{with license_agreement}
11 Name: %{base_name}-installer
14 Release: 2%{?with_license_agreement:wla}
15 # part of MS Office - may require Office license to use
18 %if %{with license_agreement}
19 # also at http://dl.sourceforge.net/corefonts/
20 Source0: http://orwell.ru/download/aruniupd.exe
21 # NoSource0-md5: 1bef548eb449a0b24ad1c0b8e9d5f2ba
22 BuildRequires: cabextract
23 Requires: %{_fontsdir}/TTF
24 Requires(post,postun): fontpostinst
26 Source0: license-installer.sh
28 Requires: rpm-build-tools
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define ttffontsdir %{_fontsdir}/TTF
37 Microsoft Arial Unicode True Type font.
38 %if %{without license_agreement}
39 License issues made us not to include inherent files into this package
40 by default (it probably requires MS Office license). If you want to
41 create full working package please build it with one of the following
44 %{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
48 Font True Type Arial Unicode firmy Microsoft.
49 %if %{without license_agreement}
50 Kwestie licencji zmusi³y nas do niedo³±czania do tego pakietu istotnych
51 plików (prawdopodobnie wymaga licencji na MS Office). Je¶li chcesz stworzyæ
52 w pe³ni funkcjonalny pakiet, zbuduj go za pomoc± polecenia:
54 %{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
58 %if %{with license_agreement}
60 /usr/bin/cabextract -L %{SOURCE0}
64 rm -rf $RPM_BUILD_ROOT
65 %if %{without license_agreement}
66 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
69 s/@BASE_NAME@/%{base_name}/g
70 s/@TARGET_CPU@/%{_target_cpu}/g
71 s-@VERSION@-%{version}-g
72 s-@RELEASE@-%{release}-g
73 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
74 ' %{SOURCE0} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
76 install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
79 install -d $RPM_BUILD_ROOT%{ttffontsdir}
80 install *.ttf $RPM_BUILD_ROOT%{ttffontsdir}
84 rm -rf $RPM_BUILD_ROOT
86 %if %{with license_agreement}
96 License issues made us not to include inherent files into this package
97 by default (it probably requires Windows license). If you want to
98 create full working package please build it with the following command:
100 %{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
105 %defattr(644,root,root,755)
106 %if %{with license_agreement}
109 %attr(755,root,root) %{_bindir}/%{base_name}.install
110 %{_datadir}/%{base_name}