]> git.pld-linux.org Git - packages/fonts-TTF-microsoft.git/blame - fonts-TTF-microsoft.spec
- initial release
[packages/fonts-TTF-microsoft.git] / fonts-TTF-microsoft.spec
CommitLineData
5e6fde32 1Summary: Microsoft TTF fonts
2Summary(pl): Czcionki TTF firmy Microsoft
3Name: fonts-TTF-microsoft
4Version: 20020525
5Release: 1
6License: Microsoft EULA
7Group: X11/Fonts
8URL: http://www.microsoft.com/truetype/fontpack/
9Source0: http://www.eu.microsoft.com/typography/downloads/andale32.exe
10Source1: http://www.eu.microsoft.com/typography/downloads/arial32.exe
11Source2: http://www.eu.microsoft.com/typography/downloads/arialb32.exe
12Source3: http://www.eu.microsoft.com/typography/downloads/comic32.exe
13Source4: http://www.eu.microsoft.com/typography/downloads/courie32.exe
14Source5: http://www.eu.microsoft.com/typography/downloads/georgi32.exe
15Source6: http://www.eu.microsoft.com/typography/downloads/impact32.exe
16Source7: http://www.eu.microsoft.com/typography/downloads/times32.exe
17Source8: http://www.eu.microsoft.com/typography/downloads/trebuc32.exe
18Source9: http://www.eu.microsoft.com/typography/downloads/verdan32.exe
19Source10: http://www.eu.microsoft.com/typography/downloads/webdin32.exe
20NoSource: 0
21NoSource: 1
22NoSource: 2
23NoSource: 3
24NoSource: 4
25NoSource: 5
26NoSource: 6
27NoSource: 7
28NoSource: 8
29NoSource: 9
30NoSource: 10
31BuildRequires: cabextract
32BuildRequires: ttmkfdir
33BuildRequires: util-linux
34BuildRequires: textutils
35Requires(post,postun):fileutils
36Requires(post,postun):sed
37Buildarch: noarch
38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%define ttffontsdir %{_fontsdir}/TTF
41
42%define _prefix /usr/X11R6
43%define _mandir %{_prefix}/man
44
45%description
46%description -l pl
47Czcionki TTF firmy Microsoft
48
49%prep
50%setup -q -c -T
51/usr/bin/cabextract %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} \
52%{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} \
53%{SOURCE10}
54
55cat Licen.TXT |more
56
57reply=
58while [ x$reply = x ]; do
59 echo "Type a - Agree or d - Disagree and then press ENTER"
60 read reply leftover
61 case $reply in
62 a|A)
63 reply=1
64 ;;
65 d|D)
66 exit 1
67 ;;
68 esac
69done
70
71%install
72rm -rf $RPM_BUILD_ROOT
73install -d $RPM_BUILD_ROOT%{ttffontsdir}
74install *.ttf *.TTF $RPM_BUILD_ROOT%{ttffontsdir}
75cd $RPM_BUILD_ROOT%{ttffontsdir}
76/usr/bin/ttmkfdir |tail +2 >fonts.scale.fonts-TTF-microsoft
77cd -
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%post
82cd %{ttffontsdir}
83umask 022
84rm -f fonts.scale.bak
85cat fonts.scale.* | sort -u > fonts.scale.tmp
86cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale
87cat fonts.scale.tmp >> fonts.scale
88rm -f fonts.scale.tmp fonts.dir
89ln -sf fonts.scale fonts.dir
90if [ -x /usr/X11R6/bin/xftcache ]; then
91 /usr/X11R6/bin/xftcache .
92fi
93
94%postun
95cd %{ttffontsdir}
96umask 022
97rm -f fonts.scale.bak
98cat fonts.scale.* 2>/dev/null | sort -u > fonts.scale.tmp
99cat fonts.scale.tmp | wc -l | sed -e 's/ //g' > fonts.scale
100cat fonts.scale.tmp >> fonts.scale
101rm -f fonts.scale.tmp fonts.dir
102ln -sf fonts.scale fonts.dir
103if [ -x /usr/X11R6/bin/xftcache ]; then
104 /usr/X11R6/bin/xftcache .
105fi
106
107%files
108%defattr(644,root,root,755)
109%{ttffontsdir}/*
This page took 0.184756 seconds and 4 git commands to generate.