]>
Commit | Line | Data |
---|---|---|
77600197 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" | |
802fb5a0 ER |
4 | |
5 | %define pdir Memoize | |
52329c74 | 6 | Summary: Memoize perl module |
a2041f52 | 7 | Summary(pl.UTF-8): Moduł Perla Memoize |
52329c74 | 8 | Name: perl-Memoize |
056d8a5d | 9 | Version: 1.02 |
10 | Release: 1 | |
77600197 | 11 | # same as perl |
12 | License: GPL v1+ or Artistic | |
52329c74 | 13 | Group: Development/Languages/Perl |
86ca8e30 | 14 | Source0: http://www.cpan.org/modules/by-module/Memoize/Memoize-%{version}.tar.gz |
056d8a5d | 15 | # Source0-md5: ce26dedbc9058490f215106ddbed561d |
802fb5a0 | 16 | URL: http://search.cpan.org/dist/Memoize/ |
ae846b81 | 17 | BuildRequires: perl-devel >= 1:5.8.0 |
04fb142a | 18 | BuildRequires: rpm-perlprov |
d6404fb7 | 19 | BuildArch: noarch |
fce3393b | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52329c74 | 21 | |
6d7d4d5d | 22 | %define _noautoreq 'perl(NDBM_File)' |
23 | ||
52329c74 | 24 | %description |
25 | Memoize - makes your functions faster by trading space for time. | |
26 | ||
22b564de JR |
27 | %description -l pl.UTF-8 |
28 | Memoize - umożliwia przyspieszenie wykonywania funkcji kosztem | |
42894b33 | 29 | przestrzeni. |
52329c74 | 30 | |
31 | %prep | |
32 | %setup -q -n Memoize-%{version} | |
33 | ||
34 | %build | |
5e94ddbb | 35 | %{__perl} Makefile.PL \ |
6961187d | 36 | INSTALLDIRS=vendor |
05d3e895 | 37 | %{__make} |
52329c74 | 38 | |
77600197 | 39 | %{?with_tests:%{__make} test} |
40 | ||
52329c74 | 41 | %install |
42 | rm -rf $RPM_BUILD_ROOT | |
52329c74 | 43 | |
3c2d3db4 | 44 | %{__make} install \ |
45 | DESTDIR=$RPM_BUILD_ROOT | |
52329c74 | 46 | |
52329c74 | 47 | %clean |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
04fb142a | 52 | %doc README TODO *.html |
5e94ddbb | 53 | %{perl_vendorlib}/Memoize.pm |
54 | %{perl_vendorlib}/Memoize | |
52329c74 | 55 | %{_mandir}/man3/* |