]>
Commit | Line | Data |
---|---|---|
a9838ea9 | 1 | # |
2 | # Conditional build: | |
5434a61b | 3 | %bcond_without tests # Do not perform "make test" |
a9838ea9 | 4 | # |
351fb5e1 | 5 | %define pdir Crypt |
6 | %define pnam OpenSSL-DSA | |
e2241ca7 | 7 | Summary: Crypt::OpenSSL::DSA - Digital Signature Algorithm using OpenSSL |
fa6c3946 | 8 | Summary(pl.UTF-8): Crypt::OpenSSL::DSA - algorytm DSA używający OpenSSL |
cad5abc0 | 9 | Name: perl-Crypt-OpenSSL-DSA |
137a004e | 10 | Version: 0.20 |
81d94683 | 11 | Release: 5 |
212ff9ad | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
cad5abc0 | 14 | Group: Development/Languages/Perl |
bd64de41 | 15 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
137a004e JB |
16 | # Source0-md5: 8f11ba8db9dfbfff37a5df677af02538 |
17 | URL: https://metacpan.org/dist/Crypt-OpenSSL-DSA | |
e077b7db | 18 | BuildRequires: openssl-devel >= 0.9.7d |
e9139bf2 | 19 | BuildRequires: openssl-tools |
6f4ca656 | 20 | BuildRequires: perl-devel >= 1:5.8.0 |
eea78f8e | 21 | BuildRequires: rpm-perlprov >= 4.1-13 |
137a004e | 22 | BuildRequires: rpmbuild(macros) >= 1.745 |
e9139bf2 | 23 | BuildRequires: which |
cad5abc0 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
e2241ca7 | 27 | Crypt::OpenSSL::DSA implements the DSA (Digital Signature Algorithm) |
28 | signature verification system. | |
cad5abc0 | 29 | |
269b81ef JR |
30 | %description -l pl.UTF-8 |
31 | Moduł Crypt::OpenSSL::DSA jest implementacją systemu weryfikacji | |
32 | podpisów DSA (Digital Signature Algorithm). | |
7029dd49 | 33 | |
cad5abc0 | 34 | %prep |
35 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
36 | ||
37 | %build | |
eea78f8e | 38 | %{__perl} Makefile.PL \ |
408bb93b | 39 | INSTALLDIRS=vendor |
db357060 | 40 | %{__make} \ |
2e9093f9 | 41 | CC="%{__cc}" \ |
db357060 | 42 | OPTIMIZE="%{rpmcflags}" |
cad5abc0 | 43 | |
5434a61b | 44 | %{?with_tests:%{__make} test} |
7029dd49 | 45 | |
cad5abc0 | 46 | %install |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
db357060 | 49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
cad5abc0 | 51 | |
cc40e85c JB |
52 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/Crypt/OpenSSL/DSA/Signature.pod |
53 | ||
cad5abc0 | 54 | %clean |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changes README | |
eea78f8e | 60 | %{perl_vendorarch}/Crypt/OpenSSL/DSA.pm |
61 | %dir %{perl_vendorarch}/auto/Crypt/OpenSSL/DSA | |
cc40e85c JB |
62 | %attr(755,root,root) %{perl_vendorarch}/auto/Crypt/OpenSSL/DSA/DSA.so |
63 | %{_mandir}/man3/Crypt::OpenSSL::DSA*.3pm* |