SPECS: afbinit.spec - cleaned up init script, added status, force-...

qboosh qboosh at pld-linux.org
Fri Feb 8 19:20:36 CET 2008


Author: qboosh                       Date: Fri Feb  8 18:20:36 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- cleaned up init script, added status, force-reload and try-restart actions
- pl, package licensing information (acc. to debian/copyright it's on GPL v2)

---- Files affected:
SPECS:
   afbinit.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/afbinit.spec
diff -u SPECS/afbinit.spec:1.1 SPECS/afbinit.spec:1.2
--- SPECS/afbinit.spec:1.1	Tue Jan 29 21:23:10 2008
+++ SPECS/afbinit.spec	Fri Feb  8 19:20:31 2008
@@ -1,9 +1,10 @@
 # $Revision$, $Date$
-Summary:	Loads the microcode for Elite3D framebuffers to use X
+Summary:	Utility to load the microcode for Elite3D framebuffers to use X
+Summary(pl.UTF-8):	Narzędzie do wczytywania mikrokodu framebufferów Elite3D potrzebnego dla X
 Name:		afbinit
 Version:	1.0.3
 Release:	1
-License:	GPL/MIT
+License:	GPL v2
 Group:		Applications/System
 Source0:	http://ftp.pl.debian.org/debian/pool/contrib/a/afbinit/%{name}_1.0.orig.tar.gz
 # Source0-md5:	c126b3ebb72e5028fd5d35fb6128316f
@@ -21,30 +22,44 @@
 UltraSPARC systems. The microcode is necessary if you want to run X11
 with acceleration on these cards.
 
-%prep
+Note: you need to obtain Sun proprietary microcode (e.g. from Solaris
+or Sun website) and place it into /lib/firmware/afb.ucode file.
+
+%description -l pl.UTF-8
+afbinit wczytuje mikrokod do akceleratorów graficznych Sun
+Microsystems AFB Graphics Accellerator, znanych także pod nazwą Sun
+Microsystems Elite 3D, spotykanych w wielu systemach UltraSPARC.
+Mikrokod ten jest niezbędny do uruchamiania na tych kartach X11 z
+w akceleracją grafiki.
+
+Uwaga: ten program wymaga zdobycia własnościowego mikrokodu Suna (np.
+z Solarisa lub strony WWW Suna) i umieszczenia go w pliku
+/lib/firmware/afb.ucode .
 
+%prep
 %setup -q -n %{name}-1.0.orig
 %{__gzip} -dc %{SOURCE1} | patch -p1 -s
 
+# extract copyright information and adapt for PLD
+sed -ne '4,11p;$abe found in common-licenses package.' debian/copyright > LICENSE
 
 %build
-%{__cc} %{rpmcflags} \
+%{__cc} %{rpmldflags} %{rpmcflags} \
 %ifarch sparc
-    -mv8plus \
+	-mv8plus \
 %endif
-    afbinit.c -o afbinit
+	afbinit.c -o afbinit
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8,/etc/rc.d/init.d}
 
-install -d $RPM_BUILD_ROOT/%{_sbindir}
-install afbinit $RPM_BUILD_ROOT/%{_sbindir}
+install afbinit $RPM_BUILD_ROOT%{_sbindir}
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/afbinit
+install debian/afbinit.8 $RPM_BUILD_ROOT%{_mandir}/man8
 
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
-install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/afbinit
-
-install -d $RPM_BUILD_ROOT%{_mandir}/man8
-install debian/afbinit.8 $RPM_BUILD_ROOT%{_mandir}/man8/
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add %{name}
@@ -55,13 +70,11 @@
 	/sbin/chkconfig --del %{name}
 fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
+%doc LICENSE
 %attr(754,root,root) /etc/rc.d/init.d/afbinit
-%attr(755,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_sbindir}/afbinit
 %{_mandir}/man8/afbinit.8*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -70,6 +83,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2008-02-08 18:20:31  qboosh
+- cleaned up init script, added status, force-reload and try-restart actions
+- pl, package licensing information (acc. to debian/copyright it's on GPL v2)
+
 Revision 1.1  2008-01-29 20:23:10  tommat
 - initial
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/afbinit.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list