3 %bcond_with license_agreement # generates package (may require MS Office license?)
5 %define base_name fonts-TTF-Microsoft-ArialUnicode
7 Summary: Microsoft Arial Unicode TrueType font
8 Summary(pl.UTF-8): Font TrueType Arial Unicode firmy Microsoft
9 %if %{with license_agreement}
12 Name: %{base_name}-installer
15 Release: %{rel}%{?with_license_agreement:wla}
16 # part of MS Office - may require Office license to use
19 %if %{with license_agreement}
20 # also at http://dl.sourceforge.net/corefonts/
21 Source0: http://orwell.ru/download/aruniupd.exe
22 # NoSource0-md5: 1bef548eb449a0b24ad1c0b8e9d5f2ba
23 BuildRequires: cabextract
24 Requires(post,postun): fontpostinst
25 Requires: %{_fontsdir}/TTF
27 Source0: http://svn.pld-linux.org/svn/license-installer/license-installer.sh
28 # Source0-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 Arial Unicode TrueType font.
40 %if !%{with license_agreement}
41 License issues made us not to include inherent files into this package
42 by default (it probably requires MS Office license). If you want to
43 create full working package please build it with one of the following
46 %{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
49 %description -l pl.UTF-8
50 Font TrueType Arial Unicode firmy Microsoft.
51 %if !%{with license_agreement}
52 Kwestie licencji zmusiły nas do niedołączania do tego pakietu istotnych
53 plików (prawdopodobnie wymaga licencji na MS Office). Jeśli chcesz stworzyć
54 w pełni funkcjonalny pakiet, zbuduj go za pomocą polecenia:
56 %{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
60 %if %{with license_agreement}
62 /usr/bin/cabextract -L %{SOURCE0}
66 rm -rf $RPM_BUILD_ROOT
67 %if !%{with license_agreement}
68 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}}
71 s/@BASE_NAME@/%{base_name}/g
72 s/@TARGET_CPU@/%{_target_cpu}/g
73 s-@VERSION@-%{version}-g
74 s-@RELEASE@-%{release}-g
75 s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g
76 s,@DATADIR@,%{_datadir}/%{base_name},g
77 ' %{SOURCE0} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install
79 install %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name}
82 install -d $RPM_BUILD_ROOT%{ttffontsdir}
83 install *.ttf $RPM_BUILD_ROOT%{ttffontsdir}
87 rm -rf $RPM_BUILD_ROOT
89 %if %{with license_agreement}
99 License issues made us not to include inherent files into this package
100 by default (it probably requires Windows license). If you want to
101 create full working package please build it with the following command:
103 %{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec
108 %defattr(644,root,root,755)
109 %if %{with license_agreement}
112 %attr(755,root,root) %{_bindir}/%{base_name}.install
113 %{_datadir}/%{base_name}