LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File moxa.spec of Package moxa (Project home:dstoecker)

# norootforbuild

Name:         moxa
BuildRequires: kernel-source kernel-syms module-init-tools udev
License:      GPL
Group:        System/Kernel
Summary:      Kernel modules for MOXA UPort devices
Version:      1.2_12071314
Release:      0
Source0:      driv_linux_uport_v1.2_build_12071314.tgz
Source1:      99-moxa_uport.rules
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Url:          http://www.moxa.com/support/sarch_result.aspx?type=soft&prod_id=381&type_id=9

%suse_kernel_module_package kdump um

%description
This package contains the kernel modules to support MOXA UPort servers.

%package KMP
Summary: Kernel modules for MOXA UPort devices
Group: System/Kernel

%description KMP
This package contains the kernel modules to support MOXA UPort servers.

%prep
%setup -n mxuport
mkdir obj

%build
for flavor in %flavors_to_build; do
    rm -rf obj/$flavor
    cp -r driver obj/$flavor
    make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
	M=$PWD/obj/$flavor
done

%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
for flavor in %flavors_to_build; do
    make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
	 M=$PWD/obj/$flavor
done
mkdir -p %{buildroot}/etc/udev/rules.d
cp %{SOURCE1} %{buildroot}/etc/udev/rules.d/

%files
%defattr(-,root,root)
/etc/udev/rules.d/*

%changelog