[perl-String-Random] Fix upstream URL, various clean ups

Emmanuel Seyman eseyman at fedoraproject.org
Sun Oct 28 11:08:52 UTC 2012


commit 0caf5bff07875a3575f2ad6435fc8f24435a5a01
Author: Emmanuel Seyman <emmanuel.seyman at club-internet.fr>
Date:   Sun Oct 28 12:08:45 2012 +0100

    Fix upstream URL, various clean ups

 perl-String-Random.spec |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/perl-String-Random.spec b/perl-String-Random.spec
index d1c96a3..b9975fe 100644
--- a/perl-String-Random.spec
+++ b/perl-String-Random.spec
@@ -1,17 +1,16 @@
 Name:           perl-String-Random
 Version:        0.22
-Release:        13%{?dist}
+Release:        14%{?dist}
 Summary:        Perl module to generate random strings based on a pattern
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/String-Random/
-Source0:        http://www.perl.org//authors/id/S/ST/STEVE/String-Random-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0:        http://search.cpan.org/CPAN/authors/id/S/ST/STEVE/String-Random-%{version}.tar.gz
 BuildArch:      noarch
 BuildRequires:  perl(Module::Build)
 BuildRequires:  perl(Test::More)
 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
+%{?perl_default_filter}
 
 %description
 This module makes it trivial to generate random strings.
@@ -27,8 +26,6 @@ This module makes it trivial to generate random strings.
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
 ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 
@@ -39,18 +36,18 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
 ./Build test
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc Changes README TODO
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 
 %changelog
+* Sun Oct 28 2012 Emmanuel Seyman <emmanuel at seyman.fr> - 0.22-14
+- Fix upstream URL
+- Clean up spec file
+- Add perl default filter
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.22-13
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list