[packages/perl-Readonly] - updated to 2.05

qboosh qboosh at pld-linux.org
Tue Nov 8 21:43:09 CET 2016


commit 25a6cd6bc7902988ef871f7f87c84254db509bfd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Nov 8 21:43:09 2016 +0100

    - updated to 2.05

 perl-Readonly.spec | 40 +++++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 19 deletions(-)
---
diff --git a/perl-Readonly.spec b/perl-Readonly.spec
index 0525c09..5a939e1 100644
--- a/perl-Readonly.spec
+++ b/perl-Readonly.spec
@@ -7,16 +7,17 @@
 Summary:	Readonly - facility for creating read-only scalars, arrays, hashes
 Summary(pl.UTF-8):	Readonly - udogodnienie do tworzenia zmiennych tylko do odczytu
 Name:		perl-Readonly
-Version:	1.03
-Release:	3
-# same as perl
+Version:	2.05
+Release:	1
+# same as perl 5
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
-Source0:	http://www.cpan.org/modules/by-authors/id/R/RO/ROODE/%{pdir}-%{version}.tar.gz
-# Source0-md5:	0acef3a995ac9ecf575f66a726d638f4
+Source0:	http://www.cpan.org/modules/by-authors/id/S/SA/SANKO/%{pdir}-%{version}.tar.gz
+# Source0-md5:	acae851d7d55c509f5f00a8849597e54
 URL:		http://search.cpan.org/dist/Readonly/
+BuildRequires:	perl-Module-Build-Tiny >= 0.035
+BuildRequires:	perl-devel >= 1:5.8.1
 BuildRequires:	rpm-perlprov >= 4.1-13
-BuildRequires:	perl-devel >= 1:5.8.0
 %if %{with tests}
 BuildRequires:	perl-Test-Simple
 BuildRequires:	perl-Test-Harness
@@ -25,39 +26,40 @@ BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This is a facility for creating non-modifiable variables.  This is
-useful for configuration files, headers, etc.  It can also be useful as
-a development and debugging tool, for catching updates to variables that
-should not be changed.
+This is a facility for creating non-modifiable variables. This is
+useful for configuration files, headers, etc. It can also be useful as
+a development and debugging tool, for catching updates to variables
+that should not be changed.
 
 %description -l pl.UTF-8
 Readonly umożliwia tworzenie niemodyfikowalnych zmiennych.  Jest to
 użyteczne w plikach konfiguracyjnych, nagłówkach, itp.  Może być także
-przydatne jako narzędzie do rozwijania programów i wyszukiwania błędów,
-wyłapując próby zapisu do zmiennych, które nie powinny być zmieniane.
+przydatne jako narzędzie do rozwijania programów i wyszukiwania
+błędów, wyłapując próby zapisu do zmiennych, które nie powinny być
+zmieniane.
 
 %prep
 %setup -q -n %{pdir}-%{version}
 
 %build
-%{__perl} Makefile.PL \
-	INSTALLDIRS=vendor
+%{__perl} Build.PL
 
-%{__make}
+./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 \
+	--installdirs=vendor
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Changes README
+%doc Changes README.md
 %{perl_vendorlib}/Readonly.pm
 %{_mandir}/man3/Readonly.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Readonly.git/commitdiff/25a6cd6bc7902988ef871f7f87c84254db509bfd



More information about the pld-cvs-commit mailing list