#
Summary: Linux driver for WLAN card base on ACX100
Summary(pl): Sterownik dla Linuksa do kart bezprzewodowych na uk³adzie ACX100
-Name: kernel-net-acx100
-Version: 0.2.0pre8_plus_fixes_8
-%define _rel 1
-Release: %{_rel}@%{_kernel_ver_str}
+Name: acx100
+Version: 0.2.0pre8_plus_fixes_18
+%define _rel 2
+Release: %{_rel}
License: MPL or GPL
Group: Base/Kernel
-Source0: http://rhlx01.fht-esslingen.de/~andi/acx100/acx100-%{version}.tar.bz2
-# Source0-md5: 6bc8a7f94fcb079643e18b3d6fd301a6
+Source0: http://rhlx01.fht-esslingen.de/~andi/acx100/%{name}-%{version}.tar.bz2
+#Source0-MD5: 430aa98bc3cc3e7ee0cb0e0c170f4f8c
URL: http://acx100.sourcefroge.net/index.html
%{?with_dist_kernel:BuildRequires: kernel-headers >= 2.4.0}
BuildRequires: %{kgcc_package}
BuildRequires: rpmbuild(macros) >= 1.118
-%{?with_dist_kernel:%requires_releq_kernel_up}
-Requires(post,postun): /sbin/depmod
-Obsoletes: kernel-net-acx100
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%description -l pl
Sterownik dla Linuksa do kart WLAN opartych o uk³ad ACX100.
+%package -n kernel-net-acx100
+Summary: Linux driver for WLAN card base on ACX100
+Summary(pl): Sterownik dla Linuksa do kart bezprzewodowych na uk³adzie ACX100
+Release: %{_rel}@%{_kernel_ver_str}
+Group: Base/Kernel
+%{?with_dist_kernel:%requires_releq_kernel_up}
+Requires(post,postun): /sbin/depmod
+
+%description -n kernel-net-acx100
+This is driver for WLAN card based on ACX100 for Linux.
+
+%description -n kernel-net-acx100 -l pl
+Sterownik dla Linuksa do kart WLAN opartych o uk³ad ACX100.
+
%package -n kernel-smp-net-acx100
Summary: Linux SMP driver for WLAN card base on ACX100
Summary(pl): Sterownik dla Linuksa SMP do kart bezprzewodowych na uk³adzie ACX100
+Release: %{_rel}@%{_kernel_ver_str}
Group: Base/Kernel
%{?with_dist_kernel:%requires_releq_kernel_smp}
Requires(post,postun): /sbin/depmod
Sterownik dla Linuksa SMP do kart bezprzewodowych na uk³adzie ACX100.
%prep
-%setup -q -n acx100-%{version}
+%setup -q
%build
cat > config.mk <<EOF
%{__make} \
CC="%{kgcc}" \
CPPFLAGS="-D__KERNEL__ -DMODULE -DACX_DEBUG=1 -DWLAN_HOSTIF=WLAN_PCI -I%{_kernelsrcdir}/include -I../include" \
- CFLAGS="%{rpmcflags} -fno-strict-aliasing -fno-common -fomit-frame-pointer -Wall -Wstrict-prototypes -Wno-trigraphs"
+ CFLAGS="%{rpmcflags} -fno-strict-aliasing -fno-common -fomit-frame-pointer -Wall -Wstrict-prototypes -Wno-trigraphs -mpreferred-stack-boundary=4 -pipe -DACX_IO_WIDTH=32"
+
mv -f src/acx_pci.o acx_pci-up.o
mv -f src/acx_usb.o acx_usb-up.o
%{__make} \
CC="%{kgcc}" \
CPPFLAGS="-D__KERNEL__ -D__KERNEL_SMP -DMODULE -DACX_DEBUG=1 -DWLAN_HOSTIF=WLAN_PCI -I%{_kernelsrcdir}/include -I../include" \
- CFLAGS="%{rpmcflags} -fno-strict-aliasing -fno-common -fomit-frame-pointer -Wall -Wstrict-prototypes -Wno-trigraphs"
+ CFLAGS="%{rpmcflags} -fno-strict-aliasing -fno-common -fomit-frame-pointer -Wall -Wstrict-prototypes -Wno-trigraphs -mpreferred-stack-boundary=4 -pipe -DACX_IO_WIDTH=32"
%install
rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%post
+%post -n kernel-net-acx100
%depmod %{_kernel_ver}
-%postun
+%postun -n kernel-net-acx100
%depmod %{_kernel_ver}
%post -n kernel-smp-net-acx100
%postun -n kernel-smp-net-acx100
%depmod %{_kernel_ver}smp
-%files
+%files -n kernel-net-acx100
%defattr(644,root,root,755)
%doc ChangeLog README TODO doc/*
/lib/modules/%{_kernel_ver}/misc/*.o*