]> git.pld-linux.org Git - packages/em8300.git/blobdiff - em8300.spec
- updated to 0.18.0 (kernel part not verified)
[packages/em8300.git] / em8300.spec
index 25bb88bd7b510c7c2598b058893408acf61a9a6b..ec72f83ffc718b18f2d7c2a8e3406ce516039d02 100644 (file)
@@ -7,42 +7,46 @@
 %bcond_without userspace       # don't build userspace tools
 %bcond_with    verbose         # verbose build (V=1)
 
-%if %{without kernel}
-%undefine      with_dist_kernel
-%endif
-
 %ifarch sparc
 # kernel modules won't build on sparc32, no I2C in kernel
 %undefine      with_kernel
 %endif
 
+%if %{without kernel}
+%undefine      with_dist_kernel
+%endif
 %if "%{_alt_kernel}" != "%{nil}"
 %undefine      with_userspace
 %endif
+%if %{without userspace}
+# nothing to be placed to debuginfo package
+%define                _enable_debug_packages  0
+%endif
 
 %define                pname   em8300
+%define                rel             1
 Summary:       DXR3 and H+ driver
 Summary(pl.UTF-8):     Sterowniki dla DXR3 i H+
 Name:          %{pname}%{_alt_kernel}
-Version:       0.16.0
-Release:       3
-License:       GPL
+Version:       0.18.0
+Release:       %{rel}
+License:       GPL v2+
 Group:         Applications/System
-Source0:       http://dl.sourceforge.net/dxr3/%{pname}-%{version}.tar.gz
-# Source0-md5: 9e9b769b99927079b4fd6ec423d95049
+Source0:       http://downloads.sourceforge.net/dxr3/%{pname}-%{version}.tar.gz
+# Source0-md5: 2ef10f5159508a31a877e7e6d18c6896
 Source1:       %{pname}.init
 Source2:       %{pname}.sysconf
 Patch0:                %{pname}-make.patch
 URL:           http://dxr3.sourceforge.net/
 %if %{with userspace}
-BuildRequires: autoconf >= 2.13
+BuildRequires: autoconf >= 2.50
 BuildRequires: automake
 BuildRequires: gtk+2-devel >= 1:2.0.0
 BuildRequires: pkgconfig
 %endif
 %if %{with kernel}
 %{?with_dist_kernel:BuildRequires:     kernel%{_alt_kernel}-module-build >= 3:2.6.14}
-BuildRequires: rpmbuild(macros) >= 1.308
+BuildRequires: rpmbuild(macros) >= 1.379
 %endif
 Requires(post,preun):  /sbin/chkconfig
 Requires:      rc-scripts
@@ -95,12 +99,14 @@ Programy użytkowe em8300 używające biblioteki GTK+.
 %package -n kernel%{_alt_kernel}-video-em8300
 Summary:       em8300 Linux kernel modules
 Summary(pl.UTF-8):     Moduły jądra Linuksa em8300
+Release:       %{rel}@%{_kernel_ver_str}
 Group:         Base/Kernel
 Requires(post,postun): /sbin/depmod
 %if %{with dist_kernel}
 %requires_releq_kernel_up
 Requires(postun):      %releq_kernel_up
 %endif
+Obsoletes:     kernel%{_alt_kernel}-smp-video-em8300
 
 %description -n kernel%{_alt_kernel}-video-em8300
 em8300 Linux kernel modules.
@@ -110,7 +116,7 @@ Moduły jądra Linuksa em8300.
 
 %prep
 %setup -q -n %{pname}-%{version}
-%patch0 -p0
+%patch0 -p1
 
 %build
 %if %{with userspace}
@@ -126,6 +132,7 @@ Moduły jądra Linuksa em8300.
 %build_kernel_modules -C modules -m em8300,adv717x,bt865 <<'EOF'
        cp ../include/linux/em8300.h o/include/linux/em8300.h
 EOF
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -139,11 +146,7 @@ install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{pname}
 %endif
 
 %if %{with kernel}
-install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/drivers/video
-for i in adv717x bt865 em8300; do
-       install modules/$i-%{?with_dist_kernel:dist}%{!?with_dist_kernel:nondist}.ko \
-               $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/kernel/drivers/video/$i.ko
-done
+%install_kernel_modules -m modules/{em8300,adv717x,bt865} -d kernel/drivers/video
 %endif
 
 %clean
This page took 0.484023 seconds and 4 git commands to generate.