]> git.pld-linux.org Git - SPECS.git/blob - perl-Module-Signature.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / perl-Module-Signature.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # perform "make test" (uses network)
4 #
5 %define         pdir    Module
6 %define         pnam    Signature
7 Summary:        Module::Signature - module signature file manipulation
8 Summary(pl.UTF-8):      Module::Signature - obróbka pliku sygnatury modułu
9 Name:           perl-Module-Signature
10 Version:        0.81
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/Module/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  cdc79f58ac56612edace3116c2805b97
17 URL:            http://search.cpan.org/dist/Module-Signature/
18 # gnupg or Crypt::OpenPGP
19 BuildRequires:  gnupg
20 %if %{with tests}
21 BuildRequires:  gnupg-plugin-keys_hkp
22 BuildRequires:  perl-Digest-SHA1
23 %endif
24 BuildRequires:  perl-devel >= 1:5.8.0
25 BuildRequires:  rpm-perlprov >= 4.1-13
26 BuildArch:      noarch
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Module::Signature adds cryptographic authentications to CPAN
31 distributions, via the special SIGNATURE file.
32
33 %description -l pl.UTF-8
34 Module::Signature dodaje uwierzytelnianie kryptograficzne do
35 dystrybucji CPAN poprzez specjalny plik SIGNATURE.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
39
40 %build
41 echo n | %{__perl} Makefile.PL \
42         INSTALLDIRS=vendor \
43         --skipdeps
44
45 %{__make}
46
47 %if %{with tests}
48 # ugly?
49 mkdir -p ~/.gnupg
50 %{__make} test
51 %endif 
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc AUTHORS Changes README
65 %attr(755,root,root) %{_bindir}/cpansign
66 %{perl_vendorlib}/Module/Signature.pm
67 %{_mandir}/man1/cpansign.1p*
68 %{_mandir}/man3/Module::Signature.3pm*
This page took 0.040369 seconds and 3 git commands to generate.