SPECS: perl-Net-MAC.spec (NEW) - new

adamg adamg at pld-linux.org
Thu Sep 7 10:54:13 CEST 2006


Author: adamg                        Date: Thu Sep  7 08:54:13 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   perl-Net-MAC.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/perl-Net-MAC.spec
diff -u /dev/null SPECS/perl-Net-MAC.spec:1.1
--- /dev/null	Thu Sep  7 10:54:13 2006
+++ SPECS/perl-Net-MAC.spec	Thu Sep  7 10:54:08 2006
@@ -0,0 +1,106 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%include	/usr/lib/rpm/macros.perl
+%define	pdir	Net
+%define	pnam	MAC
+Summary:	Net::MAC - Perl extension for representing and manipulating MAC addresses
+Summary(pl):	Net::MAC - rozszerzenie Perla do przedstawiania i obróbki adresów MAC
+Name:		perl-Net-MAC
+Version:	1.1
+Release:	0.1
+License:	GPL v2+
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	4cabec28069bb6f8765f4ee54b561b1b
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This is a module that allows you to
+
+  - store a MAC address in a Perl object
+  - find out information about a stored MAC address
+  - convert a MAC address into a specified format
+
+There are quite a few different ways that MAC addresses may be
+represented in textual form. The most common is arguably
+colon-delimited octets in hexadecimal form. When working with Cisco
+devices, however, you are more likely to encounter addresses that are
+dot-delimited 16-bit groups in hexadecimal form. In the Windows world,
+addresses are usually dash-delimited octets in hexadecimal form. MAC
+addresses in a Sun ethers file are usually non-zero-padded,
+colon-delimited hexadecimal octets. And sometimes, you come across the
+totally insane dot-delimited octets in decimal form (certain Cisco
+SNMP MIBS actually use this). Hence the need for a common way to
+represent and manipulate MAC addresses in Perl.
+
+There is a surprising amount of complexity involved in converting MAC
+addresses between types. This module does not attempt to understand
+all possible ways of representing a MAC address in a string, though
+most of the common ways of representing MAC addresses are supported.
+
+%description -l pl
+Moduł ten pozwala na:
+
+  - przechowywanie adresu MAC w postaci obiektu
+  - wyszukiwanie informacji na temat zapisanego adresu MAC
+  - konwersję adresu MAC w określony format
+
+Istnieje kilka sposobów na przedstawianie adresów MAC w postaci
+tekstowej. Prawdopodobnie najpopularniejszy to oddzielony dwukropkami
+oktety w postaci szesnastkowej. Pracując z urządzeniami Cisco można
+się jednak natknąć na na oddzielone kropkami 16-bitowe grupy w postaci
+szesnastkowej. W świecie Windows, adresy są zazwyczaj przedstawione w
+postaci oddzielonych myślnikami oktetów w postaci szesnastkowej.
+Adresy MAC w pliku ethers systemu SUN zazwyczaj są w postaci nie
+dopełnianych zerami, oddzielonych dwukropkami oktetów w postaci
+szesnastkowej. Wreszcie niekiedy można spotkać całkowicie szalony
+format oddzielonych kropkami oktektów w postaci dziesiętnej (niektóre
+MIBy Cisco SNMP korzystają z tego). Dlatego potrzebna jest wspólna dla
+wszystkich formatów metoda do wyświetlania i obróbki adresów MAC w
+Perlu.
+
+Istnieje zaskakująco duża złożoność w procesie konwersji adresu MAC
+pomiędzy róznymi formatami. Ten moduł nie próbuje zrozumieć wszystkich
+metod na przedstawienie adresu MAC w łańcuchu znaków, jednak większość
+z popularnych metod przedstawiania adresów jest wspierana.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{perl_vendorlib}/Net/*.pm
+%{_mandir}/man3/*
+
+%define	date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/09/07 08:54:08  adamg
+- new
+
================================================================


More information about the pld-cvs-commit mailing list