]>
Commit | Line | Data |
---|---|---|
6e09e84d JR |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Class | |
6 | %define pnam Refresh | |
7 | %include /usr/lib/rpm/macros.perl | |
8 | Summary: Class::Refresh - refresh your classes during runtime | |
6e09e84d JR |
9 | Name: perl-Class-Refresh |
10 | Version: 0.07 | |
11 | Release: 1 | |
12 | # same as perl | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Class/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 12d9332777c7654368010548386aa2d9 | |
17 | URL: http://search.cpan.org/dist/Class-Refresh/ | |
18 | BuildRequires: perl-devel >= 1:5.8.0 | |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
20 | %if %{with tests} | |
21 | BuildRequires: perl(Class::Unload) | |
22 | BuildRequires: perl(Devel::OverrideGlobalRequire) | |
23 | BuildRequires: perl-Class-Load | |
6e09e84d JR |
24 | BuildRequires: perl-Test-Fatal |
25 | BuildRequires: perl-Test-Requires | |
e65b4487 | 26 | BuildRequires: perl-Try-Tiny |
6e09e84d JR |
27 | %endif |
28 | BuildArch: noarch | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
e65b4487 JR |
32 | During development, it is fairly common to cycle between writing code |
33 | and testing that code. Generally the testing happens within the test | |
34 | suite, but frequently it is more convenient to test things by hand | |
35 | when tracking down a bug, or when doing some exploratory coding. In | |
36 | many situations, however, this becomes inconvenient - for instance, in | |
37 | a REPL, or in a stateful web application, restarting from the | |
38 | beginning after every code change can get pretty tedious. This module | |
39 | allows you to reload your application classes on the fly, so that the | |
40 | code/test cycle becomes a lot easier. | |
6e09e84d JR |
41 | |
42 | %prep | |
43 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
44 | ||
e65b4487 JR |
45 | # this does some temp dir hackery that fails on builders |
46 | %{__rm} t/moose-metaclasses.t | |
47 | ||
6e09e84d JR |
48 | %build |
49 | %{__perl} Makefile.PL \ | |
50 | INSTALLDIRS=vendor | |
51 | %{__make} | |
52 | ||
53 | %{?with_tests:%{__make} test} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %{__make} pure_install \ | |
59 | DESTDIR=$RPM_BUILD_ROOT | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
66 | %doc Changes README | |
67 | %{perl_vendorlib}/Class/Refresh.pm | |
68 | %{_mandir}/man3/* |