commit 40b83104b6a18e93d75c72a7fa00446babb3ac33 Author: Kevin Fenzi <kevin@xxxxxxxxx> Date: Sat Aug 25 17:47:07 2012 -0600 Update to 2.006 upstream release - Redo spec with current guidelines. .gitignore | 1 + perl-Net-Server.spec | 79 +++++++++++++++++++++---------------------------- sources | 2 +- 3 files changed, 36 insertions(+), 46 deletions(-) --- diff --git a/.gitignore b/.gitignore index 3f15520..b414fa7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ Net-Server-0.97.tar.gz +/Net-Server-2.006.tar.gz diff --git a/perl-Net-Server.spec b/perl-Net-Server.spec index 8584f7f..dd1a545 100644 --- a/perl-Net-Server.spec +++ b/perl-Net-Server.spec @@ -1,23 +1,17 @@ -%define cpanname Net-Server - -Name: perl-%{cpanname} -Version: 0.97 -Release: 15%{?dist} -Summary: Extensible, general Perl server engine - -Group: Development/Libraries -License: GPL+ or Artistic -URL: http://search.cpan.org/dist/%{cpanname}/ -Source0: http://cpan.org/authors/id/R/RH/RHANDOM/%{cpanname}-%{version}.tar.gz -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) - -BuildArch: noarch -BuildRequires: perl(ExtUtils::MakeMaker) -# Check requirements -BuildRequires: perl(IO::Multiplex) -BuildRequires: perl(Test::Builder) - -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Name: perl-Net-Server +Version: 2.006 +Release: 1%{?dist} +Summary: Extensible, general Perl server engine +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Net-Server/ +Source0: http://www.cpan.org/modules/by-module/Net/Net-Server-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Socket) +Requires: perl(Socket) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) # IO::Multiplex support is optional, but since it's in Fedora and not # including it causes build problems in some packages… Requires: perl(IO::Multiplex) @@ -26,49 +20,44 @@ Requires: perl(IO::Multiplex) An extensible, class oriented module written in perl and intended to be the back end layer of internet protocol servers. - %prep -%setup -q -n %{cpanname}-%{version} -chmod u+rw-x,go-rwx examples/* +%setup -q -n Net-Server-%{version} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} - +# Do not want to pull in any packaging deps here. +chmod 644 examples/* %install -rm -fr %{buildroot} -make pure_install PERL_INSTALL_ROOT=%{buildroot} +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find %{buildroot} -type f -name .packlist -exec rm -f {} ';' -find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' -find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';' +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; -chmod -R u+rwX,go-rwx %{buildroot}/* +%{_fixperms} $RPM_BUILD_ROOT/* %check make test - %clean -rm -fr %{buildroot} - +rm -rf $RPM_BUILD_ROOT %files -%defattr(0644,root,root,0755) -%doc README Changes examples - -%dir %{perl_vendorlib}/Net/ -%dir %{perl_vendorlib}/Net/Server - -%{perl_vendorlib}/Net/Server.pm -%{perl_vendorlib}/Net/Server.pod -%{perl_vendorlib}/Net/Server/* - -%{_mandir}/man?/Net::Server* - +%defattr(-,root,root,-) +%doc Changes README examples +%{perl_vendorlib}/* +%{_mandir}/man3/* +%{_bindir}/net-server +%{_mandir}/man1/net-server.1* %changelog +* Sat Aug 25 2012 Kevin Fenzi <kevin@xxxxxxxxx> 2.006-1 +- Update to 2.006 upstream release +- Redo spec with current guidelines. + * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@xxxxxxxxxxxxxxxxxxxxxxx> - 0.97-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild diff --git a/sources b/sources index e0dfbbd..f57f016 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f884b6c5b1d2698a82bbc7ba659690a1 Net-Server-0.97.tar.gz +74779e005acf97197799d936fe8a72d8 Net-Server-2.006.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