From caddf6e14bb932e894468ae02b28b252247d0822 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Tue, 27 Jun 2017 15:08:04 +0200
Subject: 1.0.0 bump

---
 .gitignore  |  1 +
 perl-L.spec | 30 ++++++++++++++++++++----------
 sources     |  2 +-
 3 files changed, 22 insertions(+), 11 deletions(-)

diff --git a/.gitignore b/.gitignore
index 8c737e0..2c7cfff 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
 /L-0.01.tar.gz
+/L-v1.0.0.tar.gz
diff --git a/perl-L.spec b/perl-L.spec
index 29ed80d..c44b828 100644
--- a/perl-L.spec
+++ b/perl-L.spec
@@ -1,25 +1,31 @@
 Name:           perl-L
-Version:        0.01
-Release:        10%{?dist}
+Version:        1.0.0
+%global cpan_version v%{version}
+Release:        1%{?dist}
 Summary:        Perl extension to load module automatically in one-liner
 License:        GPL+ or Artistic
-Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/L/
-Source0:        http://www.cpan.org/authors/id/S/SO/SONGMU/L-%{version}.tar.gz
+Source0:        
http://www.cpan.org/authors/id/S/SO/SONGMU/L-%{cpan_version}.tar.gz
 BuildArch:      noarch
 BuildRequires:  perl
 BuildRequires:  perl-generators
-BuildRequires:  perl(Module::Build) >= 0.38
+BuildRequires:  perl(Module::Build::Tiny) >= 0.035
 BuildRequires:  perl(strict)
-BuildRequires:  perl(warnings)
 # Run-time:
+BuildRequires:  perl(:VERSION) >= 5.8.1
 BuildRequires:  perl(Carp)
 BuildRequires:  perl(Module::Load)
+BuildRequires:  perl(version) >= 0.77
+BuildRequires:  perl(warnings)
 # Tests:
 BuildRequires:  perl(Data::Dumper)
 BuildRequires:  perl(List::Util)
 BuildRequires:  perl(Test::More) >= 0.98
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Provides:       perl(L) = %{version}
+
+# Remove under-specified provides
+%global __provides_exclude 
%{?__provides_exclude:%{__provides_exclude}|}^perl\\(L\\)$
 
 %description
 This loads perl modules automatically for use in one-liners.
@@ -28,25 +34,29 @@ The module is dangerous, so don't use this module in other 
perl modules,
 scripts or production-ready code. This should be used only in one-liners.
 
 %prep
-%setup -q -n L-%{version}
+%setup -q -n L-%{cpan_version}
 
 %build
-perl Build.PL installdirs=vendor
+perl Build.PL --installdirs=vendor
 ./Build
 
 %install
-./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+./Build install --destdir=$RPM_BUILD_ROOT --create_packlist=0
 %{_fixperms} $RPM_BUILD_ROOT/*
 
 %check
 ./Build test
 
 %files
-%doc Changes LICENSE README
+%license LICENSE
+%doc Changes README.md
 %{perl_vendorlib}/*
 %{_mandir}/man3/*
 
 %changelog
+* Tue Jun 27 2017 Petr Pisar <ppi...@redhat.com> - 1.0.0-1
+- 1.0.0 bump
+
 * Sat Feb 11 2017 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.01-10
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
 
diff --git a/sources b/sources
index f870f02..5cade06 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-d8fe3f9e18720e722fe6d9fa4d88fb62  L-0.01.tar.gz
+SHA512 (L-v1.0.0.tar.gz) = 
af22f868006ed469dfc63ed6de904d14262bef2d880c195c4820a79e772b629e29ee08f1b2b84b1401d7bb0a54b3cbb4cd34fcbd7319ca7e6eddc8ce71761957
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-L.git/commit/?h=f26&id=caddf6e14bb932e894468ae02b28b252247d0822
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to