[meego-commits] 7486: New package Trunk:Testing/usb-modeswitch

Wang Quanxian no_reply at build.meego.com
Mon Sep 13 01:57:19 UTC 2010


Hi,
Adding new package usb-modeswitch in project Trunk:Testing. Please review and accept ASAP.

Justification for this new package:

Add package usb-modeswitch to fix bug #5663

Thank You,
Wang Quanxian

[This message was auto-generated]

---

Request #7486:

  submit:   home:quanxianwang/usb-modeswitch(r3) -> Trunk:Testing/usb-modeswitch


Message:
    Add package usb-modeswitch to fix bug #5663

State:   new          2010-09-12T18:57:18 quanxianwang
Comment: None


This is a NEW package in Trunk:Testing project.
The files in the new package:
usb-modeswitch/
  |__  usb-modeswitch-1.1.4.tar.bz2
  |__  usb-modeswitch.changes
  |__  usb-modeswitch.spec
  |__  usb-modeswitch.yaml

The content of the YAML file, usb-modeswitch.yaml:
===================================================================
Name: usb-modeswitch
Summary: USB Modeswitch gets 4G cards in operational mode
Version: 1.1.4
Release: 1
Group: Applications/System
License: GPLv2+
URL: http://www.draisberghof.de/usb-modeswitch/
Sources:
    - http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2
Description: |
    USB Modeswitch brings up your datacard into operational mode. When plugged
    in they identify themselves as cdrom and present some non-Linux compatible
    installation files. This tool deactivates this cdrom-devices and enables
    the real communication device. It supports most devices built and
    sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.

Requires:
    - usb-modeswitch-data
PkgBR:
    - libusb-devel
Configure: none
Builder: make
Summary(de):
    - USB Modeswitch aktiviert UMTS-Karten

===================================================================


The content of the spec file, usb-modeswitch.spec:
===================================================================
# 
# Do not Edit! Generated by:
# spectacle version 0.18
# 
# >> macros
%define source_name	usb-modeswitch
# << macros

Name:       usb-modeswitch
Summary:    USB Modeswitch gets 4G cards in operational mode
Version:    1.1.4
Release:    1
Group:      Applications/System
License:    GPLv2+
URL:        http://www.draisberghof.de/usb-modeswitch/
Source0:    http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2
Source100:  usb-modeswitch.yaml
Requires:   usb-modeswitch-data
BuildRequires:  libusb-devel


%description
USB Modeswitch brings up your datacard into operational mode. When plugged
in they identify themselves as cdrom and present some non-Linux compatible
installation files. This tool deactivates this cdrom-devices and enables
the real communication device. It supports most devices built and
sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.




%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre


make %{?jobs:-j%jobs}

# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%make_install 

# >> install post
mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d/
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}

install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_sbindir}/
install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/
gzip -9c usb_modeswitch.1 > usb_modeswitch.1.gz && install -m 644 usb_modeswitch.1.gz $RPM_BUILD_ROOT%{_datadir}/man/man1
install -p -m 755 usb_modeswitch.tcl $RPM_BUILD_ROOT/lib/udev/usb_modeswitch

# << install post






%files
%defattr(-,root,root,-)
# >> files
%{_sbindir}/usb_modeswitch
%{_sbindir}/usb_modeswitch_dispatcher
%{_mandir}/man1/usb_modeswitch.1.gz
/lib/udev/usb_modeswitch
%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
%doc COPYING README ChangeLog device_reference.txt
# << files



===================================================================




More information about the MeeGo-commits mailing list