]>
Commit | Line | Data |
---|---|---|
427e4904 ER |
1 | # NOTE |
2 | # according to EULA we *can* store the .exe's in distfiles in | |
3 | # unaltered form (that is those .exe files), while can't distribute | |
4 | # resulting rpm. | |
ad7883a7 | 5 | # |
6 | # Conditional build: | |
e9cdd5ee | 7 | %bcond_with license_agreement # generates package |
737a0423 | 8 | |
427e4904 | 9 | %define base_name fonts-TTF-microsoft |
102f1eae | 10 | %define rel 11 |
96a3b669 JB |
11 | Summary: Microsoft TrueType fonts |
12 | Summary(pl.UTF-8): Fonty TrueType firmy Microsoft | |
7152a5cf | 13 | %if %{with license_agreement} |
14 | Name: %{base_name} | |
15 | %else | |
16 | Name: %{base_name}-installer | |
17 | %endif | |
5e6fde32 | 18 | Version: 20020525 |
737a0423 | 19 | Release: %{rel}%{?with_license_agreement:wla} |
ad7883a7 | 20 | License: Microsoft EULA (for non-commercial use) |
0dd2af23 | 21 | Group: Fonts |
7152a5cf | 22 | %if %{with license_agreement} |
b2a452b6 | 23 | Source0: http://downloads.sourceforge.net/corefonts/andale32.exe |
427e4904 | 24 | # Source0-md5: cbdc2fdd7d2ed0832795e86a8b9ee19a |
b2a452b6 | 25 | Source1: http://downloads.sourceforge.net/corefonts/arial32.exe |
427e4904 | 26 | # Source1-md5: 9637df0e91703179f0723ec095a36cb5 |
b2a452b6 | 27 | Source2: http://downloads.sourceforge.net/corefonts/arialb32.exe |
427e4904 | 28 | # Source2-md5: c9089ae0c3b3d0d8c4b0a95979bb9ff0 |
b2a452b6 | 29 | Source3: http://downloads.sourceforge.net/corefonts/comic32.exe |
427e4904 | 30 | # Source3-md5: 2b30de40bb5e803a0452c7715fc835d1 |
b2a452b6 | 31 | Source4: http://downloads.sourceforge.net/corefonts/courie32.exe |
427e4904 | 32 | # Source4-md5: 4e412c772294403ab62fb2d247d85c60 |
b2a452b6 | 33 | Source5: http://downloads.sourceforge.net/corefonts/georgi32.exe |
427e4904 | 34 | # Source5-md5: 4d90016026e2da447593b41a8d8fa8bd |
b2a452b6 | 35 | Source6: http://downloads.sourceforge.net/corefonts/impact32.exe |
427e4904 | 36 | # Source6-md5: 7907c7dd6684e9bade91cff82683d9d7 |
b2a452b6 | 37 | Source7: http://downloads.sourceforge.net/corefonts/times32.exe |
427e4904 | 38 | # Source7-md5: ed39c8ef91b9fb80f76f702568291bd5 |
b2a452b6 | 39 | Source8: http://downloads.sourceforge.net/corefonts/trebuc32.exe |
427e4904 | 40 | # Source8-md5: 0d7ea16cac6261f8513a061fbfcdb2b5 |
b2a452b6 | 41 | Source9: http://downloads.sourceforge.net/corefonts/verdan32.exe |
427e4904 | 42 | # Source9-md5: 12d2a75f8156e10607be1eaa8e8ef120 |
b2a452b6 | 43 | Source10: http://downloads.sourceforge.net/corefonts/webdin32.exe |
427e4904 | 44 | # Source10-md5: 230a1d13a365b22815f502eb24d9149b |
7152a5cf | 45 | %else |
209acadd | 46 | Source21: http://svn.pld-linux.org/svn/license-installer/license-installer.sh |
102f1eae | 47 | # Source21-md5: 329c25f457fea66ec502b7ef70cb9ede |
7152a5cf | 48 | # extracted from one of the above |
49 | Source20: Microsoft-EULA.txt | |
ad7883a7 | 50 | %endif |
d9d5f319 | 51 | URL: http://corefonts.sourceforge.net/ |
7152a5cf | 52 | %if %{with license_agreement} |
5e6fde32 | 53 | BuildRequires: cabextract |
7152a5cf | 54 | Requires(post,postun): fontpostinst |
427e4904 | 55 | Requires: %{_fontsdir}/TTF |
b2a452b6 | 56 | Requires: %{name}-ariblk |
f515789a | 57 | Requires: fontpostinst |
7152a5cf | 58 | %else |
4b0c12c9 | 59 | Requires: cabextract |
0410e77e | 60 | Requires: mktemp > 1.5-18 |
102f1eae | 61 | Requires: rpm-build-tools >= 4.4.37 |
3d28dfe6 | 62 | Requires: rpmbuild(macros) >= 1.544 |
7152a5cf | 63 | %endif |
fb613dbd | 64 | BuildArch: noarch |
5e6fde32 | 65 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
66 | ||
67 | %define ttffontsdir %{_fontsdir}/TTF | |
68 | ||
5e6fde32 | 69 | %description |
96a3b669 | 70 | Microsoft free TrueType fonts collection. |
1ed1a3e7 | 71 | |
7fed25b6 | 72 | %description -l pl.UTF-8 |
96a3b669 | 73 | Kolekcja darmowych fontów TrueType firmy Microsoft. |
5e6fde32 | 74 | |
b2a452b6 ER |
75 | %package ariblk |
76 | Summary: Microsoft TrueType fonts - Arial Black | |
77 | Group: Fonts | |
78 | Requires(post,postun): fontpostinst | |
79 | Requires: %{_fontsdir}/TTF | |
80 | Requires: fontpostinst | |
81 | ||
82 | %description ariblk | |
83 | Microsoft TrueType fonts - Arial Black. | |
84 | ||
5e6fde32 | 85 | %prep |
7152a5cf | 86 | %if %{with license_agreement} |
5e6fde32 | 87 | %setup -q -c -T |
427e4904 | 88 | %{_bindir}/cabextract -L %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \ |
5e6fde32 | 89 | %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \ |
90 | %{SOURCE10} | |
b2a452b6 | 91 | mv licen.txt Microsoft-EULA.txt |
7152a5cf | 92 | %endif |
5e6fde32 | 93 | |
7152a5cf | 94 | %install |
95 | rm -rf $RPM_BUILD_ROOT | |
b2a452b6 | 96 | %if %{without license_agreement} |
7152a5cf | 97 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{base_name}} |
ad7883a7 | 98 | |
11e9721d ER |
99 | sed -e ' |
100 | s/@BASE_NAME@/%{base_name}/g | |
101 | s/@TARGET_CPU@/%{_target_cpu}/g | |
102 | s-@VERSION@-%{version}-g | |
103 | s-@RELEASE@-%{release}-g | |
104 | s,@SPECFILE@,%{_datadir}/%{base_name}/%{base_name}.spec,g | |
a78c593b | 105 | s,@DATADIR@,%{_datadir}/%{base_name},g |
11e9721d | 106 | s,@LICENSE@,%{_datadir}/%{base_name}/Microsoft-EULA.txt, |
066d48b7 | 107 | ' %{SOURCE21} > $RPM_BUILD_ROOT%{_bindir}/%{base_name}.install |
5e6fde32 | 108 | |
b2a452b6 ER |
109 | cp -a %{_specdir}/%{base_name}.spec $RPM_BUILD_ROOT%{_datadir}/%{base_name} |
110 | install -p %{SOURCE20} $RPM_BUILD_ROOT%{_datadir}/%{base_name} | |
7152a5cf | 111 | |
112 | %else | |
5e6fde32 | 113 | install -d $RPM_BUILD_ROOT%{ttffontsdir} |
b2a452b6 | 114 | cp -a *.ttf $RPM_BUILD_ROOT%{ttffontsdir} |
7152a5cf | 115 | %endif |
1ed1a3e7 | 116 | |
5e6fde32 | 117 | %clean |
118 | rm -rf $RPM_BUILD_ROOT | |
119 | ||
7152a5cf | 120 | %if %{with license_agreement} |
5e6fde32 | 121 | %post |
c9e67209 | 122 | fontpostinst TTF |
5e6fde32 | 123 | |
124 | %postun | |
c9e67209 | 125 | fontpostinst TTF |
5e6fde32 | 126 | |
b2a452b6 ER |
127 | %post ariblk |
128 | fontpostinst TTF | |
129 | ||
130 | %postun ariblk | |
131 | fontpostinst TTF | |
132 | ||
7152a5cf | 133 | %else |
2d6092d3 | 134 | %post |
7152a5cf | 135 | echo " |
136 | If you accept the license enclosed in the file | |
137 | %{_datadir}/%{base_name}/Microsoft-EULA.txt | |
138 | and want to install real fonts, then rebuild the package with the | |
139 | following command: | |
140 | ||
427e4904 | 141 | %{_bindir}/%{base_name}.install --with license_agreement %{_datadir}/%{base_name}/%{base_name}.spec |
7152a5cf | 142 | " |
143 | %endif | |
144 | ||
5e6fde32 | 145 | %files |
146 | %defattr(644,root,root,755) | |
7152a5cf | 147 | %if %{with license_agreement} |
b2a452b6 ER |
148 | %doc Microsoft-EULA.txt |
149 | %{ttffontsdir}/andalemo.ttf | |
150 | %{ttffontsdir}/arial.ttf | |
151 | %{ttffontsdir}/arialbd.ttf | |
152 | %{ttffontsdir}/arialbi.ttf | |
153 | %{ttffontsdir}/ariali.ttf | |
154 | %{ttffontsdir}/comic*.ttf | |
155 | %{ttffontsdir}/cour*.ttf | |
156 | %{ttffontsdir}/georgia*.ttf | |
157 | %{ttffontsdir}/impact.ttf | |
158 | %{ttffontsdir}/times*.ttf | |
159 | %{ttffontsdir}/trebuc*.ttf | |
160 | %{ttffontsdir}/verdana*.ttf | |
161 | %{ttffontsdir}/webdings.ttf | |
7152a5cf | 162 | %else |
163 | %attr(755,root,root) %{_bindir}/%{base_name}.install | |
164 | %{_datadir}/%{base_name} | |
165 | %endif | |
b2a452b6 ER |
166 | |
167 | %if %{with license_agreement} | |
168 | %files ariblk | |
169 | %defattr(644,root,root,755) | |
170 | %{ttffontsdir}/ariblk.ttf | |
171 | %endif |