SPECS: ks-959.spec - more
shadzik
shadzik at pld-linux.org
Wed Dec 5 21:51:24 CET 2007
Author: shadzik Date: Wed Dec 5 20:51:24 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- more
---- Files affected:
SPECS:
ks-959.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SPECS/ks-959.spec
diff -u SPECS/ks-959.spec:1.5 SPECS/ks-959.spec:1.6
--- SPECS/ks-959.spec:1.5 Wed Dec 5 21:43:02 2007
+++ SPECS/ks-959.spec Wed Dec 5 21:51:19 2007
@@ -4,103 +4,64 @@
# Conditional build:
%bcond_without dist_kernel # allow non-distribution kernel
-%bcond_without kernel # don't build kernel modules
%bcond_without userspace # don't build userspace programs
%bcond_with verbose # verbose build (V=1)
-%if %{without kernel}
-%undefine with_dist_kernel
-%endif
-
#
# main package.
#
%define rel 0.1
-###### Unknown group!
+%define _mod_name ks959-sir
Summary: Kingsun KS-959 IrDA dongle driver for Linux 2.6.x
Summary(pl.UTF-8): Sterownik Kingsun KS-959 IrDA dla Linuxa 2.6.x
-Name: ks-959
+Name: kernel%{_alt_kernel}-usb-ks959-sir
Version: 0.1
Release: %{rel}
Epoch: 0
License: GPL
Group: Kernel
-##Source0: %{name}-%{version}.tar.gz
-Source0: http://palosanto.com/~a_villacis/codeprojects/%{name}.tar.bz2
+Source0: http://palosanto.com/~a_villacis/codeprojects/ks-959.tar.bz2
# Source0-md5: 26d42a148095215fe174e90ce5960cce
-#Source1: -
URL: http://palosanto.com/~a_villacis/codeprojects/kingsun-linux.en.html#ks959
%if %{with kernel}
%{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
BuildRequires: rpmbuild(macros) >= 1.379
%endif
-#BuildRequires: -
-#Requires(postun): -
-#Requires(pre,post): -
-#Requires(preun): -
-#Requires: -
-#Provides: -
-#Obsoletes: -
-#Conflicts: -
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-
-%description -l pl.UTF-8
-
-# kernel subpackages.
-
-%package -n kernel%{_alt_kernel}-usb-ks959-sir
-Summary: Linux driver for ks959-sir
-Summary(pl.UTF-8): Sterownik dla Linuksa do ks959-sir
-Release: %{rel}@%{_kernel_ver_str}
-Group: Base/Kernel
-Requires(post,postun): /sbin/depmod
-%if %{with dist_kernel}
-%requires_releq_kernel
-Requires(postun): %releq_kernel
-%endif
-
-%description -n kernel%{_alt_kernel}-usb-ks959-sir
Kingsun KS-959 IrDA dongle driver for Linux 2.6.x This dongle is
(currently) a SIR-only device, and supports speed from 2400 to 57600
bps. This package contains Linux module.
-%description -n kernel%{_alt_kernel}-usb-ks959-sir -l pl.UTF-8
+%description -l pl.UTF-8
Sterownik Linuksa 2.6.x dla Kingsun KS-959 IrDA. Aktualnie
obsługiwany jest tylko tryb SIR w prędkościach od 2400 do 57600
bps. Ten pakiet zawiera moduł jądra Linuksa.
%prep
-%setup -n %{name}
+%setup -n ks-959
%build
-%if %{with kernel}
-%build_kernel_modules -m ks959-sir
-%endif
+%build_kernel_modules -m %{_mod_name}
%install
rm -rf $RPM_BUILD_ROOT
-%if %{with kernel}
-%install_kernel_modules -m ks959-sir -d kernel/drivers/usb
-%endif
+%install_kernel_modules -m %{_mod_name} -d kernel/drivers/usb
%clean
rm -rf $RPM_BUILD_ROOT
-%post -n kernel%{_alt_kernel}-usb-ks959-sir
+%post
%depmod %{_kernel_ver}
-%postun -n kernel%{_alt_kernel}-usb-ks959-sir
+%postun
%depmod %{_kernel_ver}
-%if %{with kernel}
-%files -n kernel%{_alt_kernel}-usb-ks959-sir
+%files
%defattr(644,root,root,755)
-/etc/modprobe.d/%{_kernel_ver}/ks959-sir.conf
/lib/modules/%{_kernel_ver}/kernel/drivers/usb/*.ko*
-%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -108,8 +69,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
-Revision 1.5 2007-12-05 20:43:02 shadzik
-- some cleanup
+Revision 1.6 2007-12-05 20:51:19 shadzik
+- more
Revision 1.4 2007-12-05 20:25:26 shadzik
- pack .conf file
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ks-959.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list