File gobi_loader.spec of Package gobi_loader

#
# spec file for package gobi_loader (Version 0.3)
#
# 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:		gobi_loader
Url:		http://www.codon.org.uk/~mjg59/gobi_loader/download/
License:	GPL v2
Group:		Hardware/Modem
Requires:	udev pm-utils
AutoReqProv:	on
Version:	0.7
Release:	0
Summary:	Firmware loader for Qualcomm 3G modems
Source:		http://www.codon.org.uk/~mjg59/gobi_loader/download/%{name}-%{version}.tar.gz
Source1:	pm-utils-hook
BuildRoot:	%{_tmppath}/%{name}-%{version}-build

%description
gobi_loader is a firmware loader for Qualcomm Gobi USB chipsets. These devices
appear in an uninitialised state when power is applied and require firmware
to be loaded before they can be used as modems. gobi_loader adds a udev rule
that will trigger loading of the firmware and make the modem usable.

The firmware is under a license that does not allow redistribution and we are
unable to include it. Help for locating the firmware is included in the README.

Authors:
--------
	Matthew Garrett <mjg@redhat.com>

%prep
%setup -q

%build
make

%install
install -D gobi_loader $RPM_BUILD_ROOT/usr/lib/udev/gobi_loader
install -D 60-gobi.rules $RPM_BUILD_ROOT/etc/udev/rules.d/60-gobi.rules
install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/pm/config.d/qcserial-reload

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%dir /usr/lib/udev
%dir /etc/udev
%dir /etc/udev/rules.d
%dir /etc/pm
%dir /etc/pm/config.d
%config /etc/pm/config.d/qcserial-reload
/usr/lib/udev/gobi_loader
/etc/udev/rules.d/60-gobi.rules

%changelog
openSUSE Build Service is sponsored by