Name: ozerocdoff Version: 0.4 Release: 1%{?dist} Summary: Disables the Option ZERO-CD device Group: System Environment/Base License: GPLv2+ URL: http://www.pharscape.org/ozerocdoff.html # Download source from this web discussion board post: # http://www.pharscape.org/forum/index.php?topic=545.0 Source0: udev.tar.gz Source1: 51-hso-udev.rules Patch0: ozerocdoff-0.4-Makefile.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libusb-devel Requires: hal Requires: udev %description ozerocdoff is used for Option WWAN modem cards to switch off the ZERO-CD device. Therefore a SCSI rezero command will be send to the SCSI mass storage device of the WWAN modem without the usage of the usb mass storage driver itself, but with the support of the usb lib. The ZERO-CD device will be found normally for driver installation just after plugging-in an Option WWAN modem. %prep %setup -q -n udev %patch0 -p1 fmt -w 75 README > README.new mv README.new README %build make clean make %{?_smp_mflags} CFLAGS="%{optflags}" %install rm -rf %{buildroot} make install LIBDIR=%{_libdir} DESTDIR=%{buildroot} cp %{SOURCE1} %{buildroot}%{_sysconfdir}/udev/rules.d/51-hso-udev.rules %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc README %config(noreplace) %{_sysconfdir}/hso-suspend.conf %config(noreplace) %{_sysconfdir}/udev/rules.d/51-hso-udev.rules %{_sbindir}/osetsuspend %{_sbindir}/ozerocdoff %{_libexecdir}/scripts/hal-serial-hsotype %{_datadir}/hal/fdi/information/20thirdparty/10-wwan-quirk.fdi %{_datadir}/hal/fdi/preprobe/20thirdparty/10-wwan-hso-preprobe.fdi %changelog * Mon Jul 12 2010 David Cantrell - 0.4-1 - Initial package