]>
Commit | Line | Data |
---|---|---|
0904e439 | 1 | # |
0a70a715 | 2 | # Conditional build: |
fb2f8bb8 | 3 | %bcond_with tests # perform "make test" (uses network) |
0904e439 | 4 | # |
0a70a715 | 5 | %include /usr/lib/rpm/macros.perl |
39f667d8 | 6 | %define pdir Module |
7 | %define pnam Signature | |
9be60909 | 8 | Summary: Module::Signature - module signature file manipulation |
c1f887ce | 9 | Summary(pl.UTF-8): Module::Signature - obróbka pliku sygnatury modułu |
0a70a715 | 10 | Name: perl-Module-Signature |
923eee72 | 11 | Version: 0.81 |
958e93b5 | 12 | Release: 1 |
0b95632f | 13 | # same as perl |
fe8e9afb | 14 | License: GPL v1+ or Artistic |
0a70a715 | 15 | Group: Development/Languages/Perl |
605e323e | 16 | Source0: http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz |
923eee72 | 17 | # Source0-md5: cdc79f58ac56612edace3116c2805b97 |
605e323e | 18 | URL: http://search.cpan.org/dist/Module-Signature/ |
0904e439 JB |
19 | # gnupg or Crypt::OpenPGP |
20 | BuildRequires: gnupg | |
0a70a715 | 21 | %if %{with tests} |
d70e7cf6 | 22 | BuildRequires: gnupg-plugin-keys_hkp |
0a70a715 | 23 | BuildRequires: perl-Digest-SHA1 |
24 | %endif | |
0904e439 JB |
25 | BuildRequires: perl-devel >= 1:5.8.0 |
26 | BuildRequires: rpm-perlprov >= 4.1-13 | |
0a70a715 | 27 | BuildArch: noarch |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Module::Signature adds cryptographic authentications to CPAN | |
32 | distributions, via the special SIGNATURE file. | |
33 | ||
daf3cdca | 34 | %description -l pl.UTF-8 |
0b95632f JB |
35 | Module::Signature dodaje uwierzytelnianie kryptograficzne do |
36 | dystrybucji CPAN poprzez specjalny plik SIGNATURE. | |
37 | ||
0a70a715 | 38 | %prep |
39 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
40 | ||
41 | %build | |
54fce50c | 42 | echo n | %{__perl} Makefile.PL \ |
0a70a715 | 43 | INSTALLDIRS=vendor \ |
44 | --skipdeps | |
45 | ||
46 | %{__make} | |
47 | ||
daa1d9ee AG |
48 | %if %{with tests} |
49 | # ugly? | |
50 | mkdir -p ~/.gnupg | |
51 | %{__make} test | |
52 | %endif | |
0a70a715 | 53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %{__make} install \ | |
58 | DESTDIR=$RPM_BUILD_ROOT | |
59 | ||
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
010d40cd | 65 | %doc AUTHORS Changes README |
0b95632f | 66 | %attr(755,root,root) %{_bindir}/cpansign |
0904e439 | 67 | %{perl_vendorlib}/Module/Signature.pm |
010d40cd JB |
68 | %{_mandir}/man1/cpansign.1p* |
69 | %{_mandir}/man3/Module::Signature.3pm* |