File ozerocdoff.spec of Package ozerocdoff

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           ozerocdoff
BuildRequires:  libusb-devel hal udev
License:        GPL
Group:          System
Autoreqprov:    on
Version:        0.1
Release:        1
Summary:        Enable the modem ports on Option ZeroCD devices
Url:            http://www.pharscape.org/ozerocdoff.html
Source0:        udev.tar.gz
Patch:          ozerocdoff-makefile-libdir.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Packager:       Seife <seife@novell.com>

%description
This tool allows to switch so called "ZeroCD" devices from Option into modem mode, so that they can actually be used as intended.

%prep
%setup -n udev
%patch -p1

%build
export CFLAGS="$RPM_OPT_FLAGS"
%{__make} clean
%{__make}

%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
%{__make} DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
cp -v ozerocdoff.8 $RPM_BUILD_ROOT/%{_mandir}/man8/

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)   
%{_sbindir}/osetsuspend
%{_sbindir}/ozerocdoff
%{_libdir}/hal/scripts/hal-serial-hsotype
/usr/share/hal/fdi/information/20thirdparty/10-wwan-quirk.fdi
/usr/share/hal/fdi/preprobe/20thirdparty/10-wwan-hso-preprobe.fdi
%config(noreplace) /etc/hso-suspend.conf
%config /etc/udev/rules.d/51-hso-udev.rules
%doc %{_mandir}/man8/ozerocdoff.8.*

%dir %{_libdir}/hal
%dir %{_libdir}/hal/scripts
#%dir /usr/share/hal/fdi
#%dir /usr/share/hal/fdi/preprobe
#%dir /usr/share/hal/fdi/preprobe/20thirdparty
#%dir /usr/share/hal/fdi/information
#%dir /usr/share/hal/fdi/information/20thirdparty
#%dir /etc/udev
#%dir /etc/udev/rules.d
openSUSE Build Service is sponsored by