]> git.pld-linux.org Git - SPECS.git/blob - afbinit.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / afbinit.spec
1 Summary:        Utility to load the microcode for Elite3D framebuffers to use X
2 Summary(pl.UTF-8):      Narzędzie do wczytywania mikrokodu framebufferów Elite3D potrzebnego dla X
3 Name:           afbinit
4 Version:        1.0.3
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/System
8 Source0:        http://ftp.debian.org/debian/pool/contrib/a/afbinit/%{name}_1.0.orig.tar.gz
9 # Source0-md5:  c126b3ebb72e5028fd5d35fb6128316f
10 Source1:        http://ftp.debian.org/debian/pool/contrib/a/afbinit/%{name}_1.0-3.diff.gz
11 # Source1-md5:  45dfdb91b3e259a06bc864ffb340580f
12 Source2:        %{name}.init
13 BuildRequires:  rpmbuild(macros) >= 1.228
14 Requires(post,preun):   /sbin/chkconfig
15 ExclusiveArch:  sparc sparcv9 sparc64
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 afbinit loads the microcode firmware onto Sun Microsystems AFB
20 Graphics Accelerators aka Sun Microsystems Elite 3D found in many
21 UltraSPARC systems. The microcode is necessary if you want to run X11
22 with acceleration on these cards.
23
24 Note: you need to obtain Sun proprietary microcode (e.g. from Solaris
25 or Sun website) and place it into /lib/firmware/afb.ucode file.
26
27 %description -l pl.UTF-8
28 afbinit wczytuje mikrokod do akceleratorów graficznych Sun
29 Microsystems AFB Graphics Accellerator, znanych także pod nazwą Sun
30 Microsystems Elite 3D, spotykanych w wielu systemach UltraSPARC.
31 Mikrokod ten jest niezbędny do uruchamiania na tych kartach X11 z w
32 akceleracją grafiki.
33
34 Uwaga: ten program wymaga zdobycia własnościowego mikrokodu Suna (np.
35 z Solarisa lub strony WWW Suna) i umieszczenia go w pliku
36 /lib/firmware/afb.ucode .
37
38 %prep
39 %setup -q -n %{name}-1.0.orig
40 %{__gzip} -dc %{SOURCE1} | patch -p1 -s
41
42 # extract copyright information and adapt for PLD
43 sed -ne '4,11p;$abe found in common-licenses package.' debian/copyright > LICENSE
44
45 %build
46 %{__cc} %{rpmldflags} %{rpmcflags} \
47 %ifarch sparc
48         -mv8plus \
49 %endif
50         afbinit.c -o afbinit
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,/etc/rc.d/init.d}
55
56 install afbinit $RPM_BUILD_ROOT%{_sbindir}
57 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/afbinit
58 install debian/afbinit.8 $RPM_BUILD_ROOT%{_mandir}/man8
59
60 %clean
61 rm -rf $RPM_BUILD_ROOT
62
63 %post
64 /sbin/chkconfig --add %{name}
65 %service %{name} restart
66
67 %preun
68 if [ "$1" = "0" ]; then
69         /sbin/chkconfig --del %{name}
70 fi
71
72 %files
73 %defattr(644,root,root,755)
74 %doc LICENSE
75 %attr(754,root,root) /etc/rc.d/init.d/afbinit
76 %attr(755,root,root) %{_sbindir}/afbinit
77 %{_mandir}/man8/afbinit.8*
This page took 0.188447 seconds and 3 git commands to generate.