File ozerocdoff.spec of Package ozerocdoff
#
# spec file for package ozerocdoff (Version 0.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: ozerocdoff
BuildRequires: libusb-devel licenses
# for directory ownership
BuildRequires: hal udev
License: GPL v2 or later
Group: Hardware/Modem
Version: 0.4
Release: 3
Summary: Enable the modem ports on Option ZeroCD devices
Url: http://www.pharscape.org/ozerocdoff.html
Source0: udev.tar.gz
Patch0: ozerocdoff-makefile-libdir.diff
Patch1: ozerocdoff-udevinfo.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
AutoReqProv: on
Requires: hal udev licenses
%description
This tool allows to switch so called "ZeroCD" devices from Option into
modem mode, so that they can actually be used as intended.
Authors:
--------
Peter Henn (support@option.com)
%prep
%setup -n udev
%patch0 -p1
%patch1 -p1
ln -s /usr/share/doc/licenses/GPL-2.0.txt COPYING
%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
export CFLAGS="$RPM_OPT_FLAGS"
%{__make} clean
%{__make}
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
%{__make} DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install
install -d $RPM_BUILD_ROOT%{_mandir}/man8
install -m0644 osetsuspend.8 $RPM_BUILD_ROOT%{_mandir}/man8/
install -m0644 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/*.*
%doc COPYING README
%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
%changelog
* Fri Jun 19 2009 coolo@novell.com
- disable as-needed for this package as it fails to build with it
* Fri Jan 16 2009 seife@suse.de
- Add the README to the documentation directory. (bnc#459767)
* Fri Dec 05 2008 seife@suse.de
- added a link to the GPL v2 in the documentation directory
* Fri Dec 05 2008 seife@suse.de
- fix udevinfo usage in the hal-serial-hsotype callout script
- add hal and udev to Requires:
- add osetsuspend manpage
- use correct version number in the spec file
* Thu Dec 04 2008 seife@suse.de
- initial package submission, version 0.4