ALT Linux repositórios
Group :: Sistema/Kernel e hardware
RPM: wireless-tools
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Name: wireless-tools
Version: 28
Release: alt7.1
%define fullname wireless_tools.%version
Summary: Wireless ethernet configuration tools
Summary(ru_RU.KOI8-R): õÔÉÌÉÔÙ ÄÌÑ ÎÁÓÔÒÏÊËÉ ÂÅÓÐÒÏ×ÏÄÎÙÈ ÓÅÔÅÊ
Group: System/Kernel and hardware
License: GPL
URL: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
Source: ftp://sourceforge.org/pcmcia/contrib/%fullname.tar.gz
Source1: ifrename
Patch0: ifrename-28pre10-alt-eth0nowarn.patch
Patch1: Makefile.patch
Requires: libwireless = %version-%release
%description
This package contain the Wireless tools, used to manipulate
the Wireless Extensions. The Wireless Extension is an interface
allowing you to set Wireless LAN specific parameters and get the
specific stats for wireless networking equipment.
This is specifically useful since it allows manipulation of encryption
parameters possible with the GPL WaveLAN cards.
%description -l ru_RU.KOI8-R
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÁÂÏÒ ÐÒÏÇÒÁÍÍ, ËÏÔÏÒÙÅ ÐÒÅÄÎÁÚÎÁÞÅÎÙ ÄÌÑ ÎÁÓÔÒÏÊËÉ
É ÕÐÒÁ×ÌÅÎÉÑ ÂÅÓÐÒÏ×ÏÄÎÙÍÉ ÓÅÔÅ×ÙÍÉ ÐÌÁÔÁÍÉ ÐÏÄ Linux.
%package -n ifrename
Group: System/Kernel and hardware
Summary: %name tool renames network interfaces
Summary(ru_RU.KOI8-R): ÕÔÉÌÉÔÁ %name ÐÅÒÅÉÍÅÎÏ×Ù×ÁÅÔ ÓÅÔÅ×ÙÅ ÉÎÔÅÒÆÅÊÓÙ
Requires: libwireless = %version-%release
%description -n ifrename
This package contains ifrename. It's purpose is to rename network interfaces
considering different criterias consisting of: MAC address, link type, module
name, bus information, memory base address, irq line and wireless protocol.
ifrename is used by etcnet and hotplug packages, although can be used
standalone.
%description -l ru_RU.KOI8-R
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ifrename. õÔÉÌÉÔÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÐÅÒÅÉÍÅÎÏ×ÁÎÉÑ
ÉÎÔÅÒÆÅÊÓÏ× ÎÁ ÏÓÎÏ×ÁÎÉÉ ËÒÉÔÅÒÉÅ×, ËÏÔÏÒÙÅ ×ËÌÀÞÁÀÔ MAC-ÁÄÒÅÓ, ËÁÎÁÌØÎÙÊ
ÔÉÐ ÉÎÔÅÒÆÅÊÓÁ, ÉÍÑ ÍÏÄÕÌÑ, ÒÁÓÐÏÌÏÖÅÎÉÅ ÎÁ ÓÉÓÔÅÍÎÏÊ ÛÉÎÅ, ÂÁÚÏ×ÙÊ ÁÄÒÅÓ
ÒÁÚÄÅÌÑÅÍÏÊ ÐÁÍÑÔÉ, ÎÏÍÅÒ ÐÒÅÒÙ×ÁÎÉÑ É ÂÅÓÐÒÏ×ÏÄÎÙÊ ÐÒÏÔÏËÏÌ. õÔÉÌÉÔÁ
ifrename, × ÞÁÓÔÎÏÓÔÉ, ÉÓÐÏÌØÚÕÅÔÓÑ ÐÁËÅÔÁÍÉ etcnet É hotplug, ÈÏÔÑ ÍÏÖÅÔ
ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎÁ É ÓÁÍÏÓÔÏÑÔÅÌØÎÏ.
%package -n libwireless
Group: System/Libraries
Summary: Librairies for %name
%description -n libwireless
Librairies for %name
%package -n libwireless-devel
Group: Development/C
Summary: Development files for %name
Requires: libwireless = %version-%release
Obsoletes: %name-devel
Provides: %name-devel
%description -n libwireless-devel
Development files for %name
%prep
%setup -n %fullname -q
%patch0 -p1
%patch1 -p1
%build
%make clean
%make CFLAGS="%optflags -I." IWLIBS="-L. -liw" BUILD_SHARED=1
%install
mkdir -p %buildroot{/sbin,/%_lib,%_mandir/man8,%_includedir,%_libdir}
make install INSTALL_DIR=%buildroot/sbin \
INSTALL_LIB=%buildroot/%_lib \
INSTALL_INC=%buildroot%_includedir \
INSTALL_MAN=%buildroot%_mandir
rm -f %buildroot/%_lib/libiw.a
ln -snf ../../%_lib/libiw.so.%version %buildroot/%_libdir/libiw.so
install -pD -m755 %SOURCE1 %buildroot%_initdir/ifrename
%post -n ifrename
%post_service ifrename
%triggerpostun -n ifrename -- ifrename < 0:28-alt7.1
/sbin/chkconfig --add ifrename
%files
%doc INSTALL README DISTRIBUTIONS.txt
/sbin/*
%exclude /sbin/ifrename
%_mandir/man*/*
%exclude %_mandir/man8/ifrename*
%exclude %_mandir/man5/iftab*
%files -n ifrename
%_initdir/*
/sbin/ifrename
%_mandir/man8/ifrename*
%_mandir/man5/iftab*
%files -n libwireless
/%_lib/*.so.*
%files -n libwireless-devel
%_libdir/*.so
%_includedir/*
%changelog
…
Todas as alterações você pod ver aqui
Version: 28
Release: alt7.1
%define fullname wireless_tools.%version
Summary: Wireless ethernet configuration tools
Summary(ru_RU.KOI8-R): õÔÉÌÉÔÙ ÄÌÑ ÎÁÓÔÒÏÊËÉ ÂÅÓÐÒÏ×ÏÄÎÙÈ ÓÅÔÅÊ
Group: System/Kernel and hardware
License: GPL
URL: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
Source: ftp://sourceforge.org/pcmcia/contrib/%fullname.tar.gz
Source1: ifrename
Patch0: ifrename-28pre10-alt-eth0nowarn.patch
Patch1: Makefile.patch
Requires: libwireless = %version-%release
%description
This package contain the Wireless tools, used to manipulate
the Wireless Extensions. The Wireless Extension is an interface
allowing you to set Wireless LAN specific parameters and get the
specific stats for wireless networking equipment.
This is specifically useful since it allows manipulation of encryption
parameters possible with the GPL WaveLAN cards.
%description -l ru_RU.KOI8-R
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÎÁÂÏÒ ÐÒÏÇÒÁÍÍ, ËÏÔÏÒÙÅ ÐÒÅÄÎÁÚÎÁÞÅÎÙ ÄÌÑ ÎÁÓÔÒÏÊËÉ
É ÕÐÒÁ×ÌÅÎÉÑ ÂÅÓÐÒÏ×ÏÄÎÙÍÉ ÓÅÔÅ×ÙÍÉ ÐÌÁÔÁÍÉ ÐÏÄ Linux.
%package -n ifrename
Group: System/Kernel and hardware
Summary: %name tool renames network interfaces
Summary(ru_RU.KOI8-R): ÕÔÉÌÉÔÁ %name ÐÅÒÅÉÍÅÎÏ×Ù×ÁÅÔ ÓÅÔÅ×ÙÅ ÉÎÔÅÒÆÅÊÓÙ
Requires: libwireless = %version-%release
%description -n ifrename
This package contains ifrename. It's purpose is to rename network interfaces
considering different criterias consisting of: MAC address, link type, module
name, bus information, memory base address, irq line and wireless protocol.
ifrename is used by etcnet and hotplug packages, although can be used
standalone.
%description -l ru_RU.KOI8-R
üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ifrename. õÔÉÌÉÔÁ ÐÒÅÄÎÁÚÎÁÞÅÎÁ ÄÌÑ ÐÅÒÅÉÍÅÎÏ×ÁÎÉÑ
ÉÎÔÅÒÆÅÊÓÏ× ÎÁ ÏÓÎÏ×ÁÎÉÉ ËÒÉÔÅÒÉÅ×, ËÏÔÏÒÙÅ ×ËÌÀÞÁÀÔ MAC-ÁÄÒÅÓ, ËÁÎÁÌØÎÙÊ
ÔÉÐ ÉÎÔÅÒÆÅÊÓÁ, ÉÍÑ ÍÏÄÕÌÑ, ÒÁÓÐÏÌÏÖÅÎÉÅ ÎÁ ÓÉÓÔÅÍÎÏÊ ÛÉÎÅ, ÂÁÚÏ×ÙÊ ÁÄÒÅÓ
ÒÁÚÄÅÌÑÅÍÏÊ ÐÁÍÑÔÉ, ÎÏÍÅÒ ÐÒÅÒÙ×ÁÎÉÑ É ÂÅÓÐÒÏ×ÏÄÎÙÊ ÐÒÏÔÏËÏÌ. õÔÉÌÉÔÁ
ifrename, × ÞÁÓÔÎÏÓÔÉ, ÉÓÐÏÌØÚÕÅÔÓÑ ÐÁËÅÔÁÍÉ etcnet É hotplug, ÈÏÔÑ ÍÏÖÅÔ
ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎÁ É ÓÁÍÏÓÔÏÑÔÅÌØÎÏ.
%package -n libwireless
Group: System/Libraries
Summary: Librairies for %name
%description -n libwireless
Librairies for %name
%package -n libwireless-devel
Group: Development/C
Summary: Development files for %name
Requires: libwireless = %version-%release
Obsoletes: %name-devel
Provides: %name-devel
%description -n libwireless-devel
Development files for %name
%prep
%setup -n %fullname -q
%patch0 -p1
%patch1 -p1
%build
%make clean
%make CFLAGS="%optflags -I." IWLIBS="-L. -liw" BUILD_SHARED=1
%install
mkdir -p %buildroot{/sbin,/%_lib,%_mandir/man8,%_includedir,%_libdir}
make install INSTALL_DIR=%buildroot/sbin \
INSTALL_LIB=%buildroot/%_lib \
INSTALL_INC=%buildroot%_includedir \
INSTALL_MAN=%buildroot%_mandir
rm -f %buildroot/%_lib/libiw.a
ln -snf ../../%_lib/libiw.so.%version %buildroot/%_libdir/libiw.so
install -pD -m755 %SOURCE1 %buildroot%_initdir/ifrename
%post -n ifrename
%post_service ifrename
%triggerpostun -n ifrename -- ifrename < 0:28-alt7.1
/sbin/chkconfig --add ifrename
%files
%doc INSTALL README DISTRIBUTIONS.txt
/sbin/*
%exclude /sbin/ifrename
%_mandir/man*/*
%exclude %_mandir/man8/ifrename*
%exclude %_mandir/man5/iftab*
%files -n ifrename
%_initdir/*
/sbin/ifrename
%_mandir/man8/ifrename*
%_mandir/man5/iftab*
%files -n libwireless
/%_lib/*.so.*
%files -n libwireless-devel
%_libdir/*.so
%_includedir/*
%changelog
…
Todas as alterações você pod ver aqui