SPECS: spicctrl.spec - cleanup, md5, pl, optflags

qboosh qboosh at pld-linux.org
Sun Jun 11 20:13:12 CEST 2006


Author: qboosh                       Date: Sun Jun 11 18:13:12 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- cleanup, md5, pl, optflags

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

---- Diffs:

================================================================
Index: SPECS/spicctrl.spec
diff -u SPECS/spicctrl.spec:1.1 SPECS/spicctrl.spec:1.2
--- SPECS/spicctrl.spec:1.1	Sun Jun  4 08:03:37 2006
+++ SPECS/spicctrl.spec	Sun Jun 11 20:13:07 2006
@@ -1,13 +1,15 @@
 # $Revision$, $Date$
 Summary:	Sony Vaio SPIC Control Program
+Summary(pl):	Program do sterowania Sony Vaio SPIC
 Name:		spicctrl
 Version:	1.9
 Release:	1
 License:	GPL
 Group:		Applications/System
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Source0:	http://popies.net/sonypi/%{name}-%{version}.tar.bz2
+# Source0-md5:	775a1959c03e59830303b8320ca379d2
 URL:		http://popies.net/sonypi/
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 This utility allows one to query and set a variety of parameters on
@@ -18,25 +20,40 @@
  - Screen brightness
  - Bluetooth device power status
 
+%description -l pl
+To narzędzie pozwala sprawdzać i ustawiać różne parametry laptopa Sony
+Vaio, w tym:
+
+ - stan zasilania AC
+ - stan baterii
+ - jasność ekranu
+ - stan zasilania urzędzenia Bluetooth
+
 %prep
 %setup -q
-bzip2 -dc  %{_sourcedir}/%{name}-%{version}.tar.bz2 | tar xvf -
+
 %build
-%{__make}
-%clean
-rm -rf $RPM_BUILD_ROOT
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} -Wall -W"
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_sbindir}
-install -d $RPM_BUILD_ROOT/%{_mandir}/man1
-install %{_builddir}/%{name}-%{version}/spicctrl $RPM_BUILD_ROOT%{_sbindir}
-install %{_builddir}/%{name}-%{version}/spicctrl.1 $RPM_BUILD_ROOT/%{_mandir}/man1
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
+
+install spicctrl $RPM_BUILD_ROOT%{_sbindir}
+install spicctrl.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
+# TODO: move to dev
 if [ ! -c /dev/sonypi ]; then
 	rm -f /dev/sonypi
 	mknod /dev/sonypi c 10 250
 fi
+# TODO: use modprobe.d
 if [ -e %{_sysconfdir}/modules.conf ]; then
 grep 'alias char-major-10-250 sonypi' %{_sysconfdir}/modules.conf > /dev/null
 	RETVAL=$?
@@ -53,13 +70,12 @@
 echo 'options sonypi minor=250' >> %{_sysconfdir}/modprobe.conf
 	fi
 fi
+
 %files
 %defattr(644,root,root,755)
+%doc AUTHORS CHANGES
 %attr(755,root,root) %{_sbindir}/spicctrl
 %{_mandir}/man1/spicctrl.1*
-%doc %attr(644,root,root) AUTHORS
-%doc %attr(444,root,root) LICENSE
-%doc %attr(444,root,root) CHANGES
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -67,6 +83,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2006/06/11 18:13:07  qboosh
+- cleanup, md5, pl, optflags
+
 Revision 1.1  2006/06/04 06:03:37  aredridel
 - added
-
================================================================

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



More information about the pld-cvs-commit mailing list