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