]>
Commit | Line | Data |
---|---|---|
5a48e534 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Captcha | |
7 | %define pnam reCAPTCHA | |
8 | Summary: Captcha::reCAPTCHA - A Perl implementation of the reCAPTCHA API | |
9 | #Summary(pl.UTF-8): | |
10 | Name: perl-Captcha-reCAPTCHA | |
11 | Version: 0.92 | |
12 | Release: 1 | |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-authors/id/A/AN/ANDYA/Captcha-reCAPTCHA-0.92.tar.gz | |
17 | # Source0-md5: 36b00fa37fd8a17367e1aa2f3b218f34 | |
18 | URL: http://search.cpan.org/dist/Captcha-reCAPTCHA/ | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl(HTML::Tiny) >= 0.904 | |
23 | BuildRequires: perl-libwww | |
24 | %endif | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | reCAPTCHA is a hybrid mechanical turk and captcha that allows visitors | |
30 | who complete the captcha to assist in the digitization of books. | |
31 | ||
32 | See http://recaptcha.net/learnmore.html. | |
33 | ||
34 | # %description -l pl.UTF-8 | |
35 | # TODO | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} pure_install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
54 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc Changes | |
62 | %dir %{perl_vendorlib}/Captcha | |
63 | %{perl_vendorlib}/Captcha/*.pm | |
64 | %{_mandir}/man3/* | |
65 | %{_examplesdir}/%{name}-%{version} |