[packages/perl-Class-Refresh] - new

baggins baggins at pld-linux.org
Mon Mar 23 22:04:51 CET 2015


commit 6e09e84de355b3987d51ed96fff71dc597ed233d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Mon Mar 23 22:04:29 2015 +0100

    - new

 perl-Class-Refresh.spec | 65 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
---
diff --git a/perl-Class-Refresh.spec b/perl-Class-Refresh.spec
new file mode 100644
index 0000000..404293e
--- /dev/null
+++ b/perl-Class-Refresh.spec
@@ -0,0 +1,65 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	Class
+%define		pnam	Refresh
+%include	/usr/lib/rpm/macros.perl
+Summary:	Class::Refresh - refresh your classes during runtime
+#Summary(pl.UTF-8):	
+Name:		perl-Class-Refresh
+Version:	0.07
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	12d9332777c7654368010548386aa2d9
+URL:		http://search.cpan.org/dist/Class-Refresh/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl(Class::Unload)
+BuildRequires:	perl(Devel::OverrideGlobalRequire)
+BuildRequires:	perl-Class-Load
+BuildRequires:	perl-Try-Tiny
+BuildRequires:	perl-Test-Fatal
+BuildRequires:	perl-Test-Requires
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+During development, it is fairly common to cycle between writing code and
+testing that code. Generally the testing happens within the test suite, but
+frequently it is more convenient to test things by hand when tracking down a
+bug, or when doing some exploratory coding. In many situations, however, this
+becomes inconvenient - for instance, in a REPL, or in a stateful web
+application, restarting from the beginning after every code change can get
+pretty tedious. This module allows you to reload your application classes on
+the fly, so that the code/test cycle becomes a lot easier.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+	INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Class/Refresh.pm
+%{_mandir}/man3/*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Class-Refresh.git/commitdiff/6e09e84de355b3987d51ed96fff71dc597ed233d



More information about the pld-cvs-commit mailing list