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