commit f8b1b91545569fadafac1e90749a6369646a573b Author: Jan Klepek <jan.klepek@xxxxxxxxx> Date: Thu Jul 28 20:16:40 2011 +0200 fixed license .gitignore | 1 + perl-NetPacket-SpanningTree.spec | 64 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 66 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..445e099 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/NetPacket-SpanningTree-0.01.tar.gz diff --git a/perl-NetPacket-SpanningTree.spec b/perl-NetPacket-SpanningTree.spec new file mode 100644 index 0000000..c2ea173 --- /dev/null +++ b/perl-NetPacket-SpanningTree.spec @@ -0,0 +1,64 @@ +Name: perl-NetPacket-SpanningTree +Version: 0.01 +Release: 3%{?dist} +Summary: Assemble and disassemble IEEE 802.1D Spanning Tree protocol packets +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/NetPacket-SpanningTree/ +Source0: http://www.cpan.org/authors/id/C/CG/CGANESAN/NetPacket-SpanningTree-%{version}.tar.gz +# email from author with permissions to relicense sources under Artistic or GPL +Source1: %{name}.email +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(NetPacket::Ethernet) >= 0.04 +BuildRequires: perl(NetPacket::LLC) >= 0.01 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +NetPacket::SpanningTree provides a set of routines for assembling and +disassembling packets using the IEEE standard Spanning Tree Protocol. +Spanning Tree is a layer 2 protocol defined by the IEEE 802.1D +specification. + +%prep +%setup -q -n NetPacket-SpanningTree-%{version} +cp %{SOURCE1} . + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes README %{name}.email +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Sat Jul 23 2011 Jan Klepek <jan.klepek at, gmail.com> - 0.01-3 +- fixed license + +* Tue Jan 11 2011 Jan Klepek <jan.klepek at, gmail.com> - 0.01-2 +- fixed license + +* Mon Mar 15 2010 Jan Klepek 0.01-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..85d8467 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bd657ce34022611b22f1882413a74184 NetPacket-SpanningTree-0.01.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel