[packages/perl-Getopt-Auto] Up to 2.0

arekm arekm at pld-linux.org
Thu Nov 19 11:33:26 CET 2026


commit 556c8fa9b1c66495ef694f028da89449b266d190
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 19 00:30:02 2026 +0100

    Up to 2.0

 perl-Getopt-Auto.spec | 28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)
---
diff --git a/perl-Getopt-Auto.spec b/perl-Getopt-Auto.spec
index 6f8dd8a..b5c8e69 100644
--- a/perl-Getopt-Auto.spec
+++ b/perl-Getopt-Auto.spec
@@ -7,17 +7,22 @@
 Summary:	Getopt::Auto - framework for command-line applications
 Summary(pl.UTF-8):	Getopt::Auto - szkielet do aplikacji działających z linii poleceń
 Name:		perl-Getopt-Auto
-Version:	1.00
-Release:	4
-License:	unknown
+Version:	2.0
+Release:	1
+# same as perl 5
+License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
-Source0:	http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5:	f3362fa348d4ef2770b691d5d261f60d
+Source0:	https://www.cpan.org/authors/id/G/GL/GLEACH/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	5407bf36ed88ff8b22c6f1fd1658ad2d
 URL:		http://search.cpan.org/dist/Getopt-Auto/
+BuildRequires:	perl-Module-Build >= 0.42
 BuildRequires:	perl-devel >= 1:5.8.0
 BuildRequires:	rpm-perlprov >= 4.1-13
 %if %{with tests}
 BuildRequires:	perl(Pod::Parser)
+BuildRequires:	perl(Readonly)
+BuildRequires:	perl(Test::More)
+BuildRequires:	perl(Test::Output)
 %endif
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -45,22 +50,23 @@ funkcjonalnej.
 %setup -q -n %{pdir}-%{pnam}-%{version}
 
 %build
-%{__perl} Makefile.PL \
-	INSTALLDIRS=vendor
-%{__make}
+%{__perl} Build.PL \
+	installdirs=vendor
+./Build
 
-%{?with_tests:%{__make} test}
+%{?with_tests:./Build test}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
-	DESTDIR=$RPM_BUILD_ROOT
+./Build install \
+	destdir=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc Changes README
 %{perl_vendorlib}/%{pdir}/*.pm
 %{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Getopt-Auto.git/commitdiff/556c8fa9b1c66495ef694f028da89449b266d190



More information about the pld-cvs-commit mailing list