move binary + package .setup
This commit is contained in:
parent
7bbefe6080
commit
7ecb72edcb
@ -2,14 +2,13 @@
|
|||||||
|
|
||||||
Name: usb_modeswitch
|
Name: usb_modeswitch
|
||||||
Version: 1.1.2
|
Version: 1.1.2
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: USB Modeswitch gets 4G cards in operational mode
|
Summary: USB Modeswitch gets 4G cards in operational mode
|
||||||
Summary(de): USB Modeswitch aktiviert UMTS-Karten
|
Summary(de): USB Modeswitch aktiviert UMTS-Karten
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.draisberghof.de/usb_modeswitch/
|
URL: http://www.draisberghof.de/usb_modeswitch/
|
||||||
Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2
|
Source0: http://www.draisberghof.de/%{name}/%{source_name}-%{version}.tar.bz2
|
||||||
Patch0: usb_modeswitch-dir.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Requires: usb_modeswitch-data
|
Requires: usb_modeswitch-data
|
||||||
BuildRequires: libusb-devel
|
BuildRequires: libusb-devel
|
||||||
@ -30,7 +29,6 @@ Vodafone, Option, ZTE und Novatell werden unterstützt.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{source_name}-%{version}
|
%setup -q -n %{source_name}-%{version}
|
||||||
%patch0 -p1 -b .dir
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags}
|
CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags}
|
||||||
@ -45,6 +43,7 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
|||||||
|
|
||||||
install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_bindir}/
|
install -p -m 755 usb_modeswitch $RPM_BUILD_ROOT%{_bindir}/
|
||||||
install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/
|
install -p -m 644 usb_modeswitch.conf $RPM_BUILD_ROOT%{_sysconfdir}/
|
||||||
|
install -p -m 644 usb_modeswitch.setup $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
|
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 -p -m 755 usb_modeswitch.tcl $RPM_BUILD_ROOT/lib/udev/usb_modeswitch
|
||||||
|
|
||||||
@ -57,10 +56,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/usb_modeswitch.1.gz
|
%{_mandir}/man1/usb_modeswitch.1.gz
|
||||||
/lib/udev/usb_modeswitch
|
/lib/udev/usb_modeswitch
|
||||||
%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
|
%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/usb_modeswitch.setup
|
||||||
%doc COPYING README ChangeLog
|
%doc COPYING README ChangeLog
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 23 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.1.2-2
|
||||||
|
- Move usb_modeswitch binary back to /usr/sbin
|
||||||
|
- Package /etc/usb_modeswitch.setup for manual mode
|
||||||
|
|
||||||
* Tue Apr 20 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.1.2-1
|
* Tue Apr 20 2010 Huzaifa Sidhpurwala <huzaifas@redhat.com> - 1.1.2-1
|
||||||
- New upstream
|
- New upstream
|
||||||
- Split data and main package
|
- Split data and main package
|
||||||
|
Loading…
Reference in New Issue
Block a user