]>
Commit | Line | Data |
---|---|---|
e0d9af93 MK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # Do not perform "make test" | |
4 | # | |
e0d9af93 MK |
5 | %define pdir Crypt |
6 | %define pnam OpenSSL-Guess | |
7 | Summary: Crypt::OpenSSL::Guess - Guess OpenSSL include path | |
50f14aa7 | 8 | Summary(pl.UTF-8): Crypt::OpenSSL::Guess - zgadywanie ścieżki nagłówków OpenSSL |
e0d9af93 | 9 | Name: perl-Crypt-OpenSSL-Guess |
50f14aa7 | 10 | Version: 0.13 |
a4b2b310 | 11 | Release: 2 |
e0d9af93 MK |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
50f14aa7 JB |
15 | Source0: http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | # Source0-md5: a126716a88c9e16ef5b9e4216820d322 | |
17 | URL: https://metacpan.org/dist/Crypt-OpenSSL-Guess | |
18 | BuildRequires: perl-ExtUtils-MakeMaker >= 6.64 | |
19 | %if %{with tests} | |
20 | BuildRequires: perl-Test-Simple >= 0.98 | |
21 | %endif | |
22 | BuildRequires: perl-devel >= 1:5.8.1 | |
e0d9af93 | 23 | BuildRequires: rpm-perlprov >= 4.1-13 |
50f14aa7 | 24 | BuildRequires: rpmbuild(macros) >= 1.745 |
a4b2b310 | 25 | BuildArch: noarch |
e0d9af93 MK |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
50f14aa7 JB |
29 | Crypt::OpenSSL::Guess provides helpers to guess OpenSSL include path |
30 | on any platforms. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | Crypt::OpenSSL::Guess udostępnia funkcje pomocnicze do zgadywania | |
34 | ścieżki nagłówków na dowolnej platformie. | |
e0d9af93 MK |
35 | |
36 | %prep | |
37 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
38 | ||
39 | %build | |
40 | %{__perl} Makefile.PL \ | |
41 | INSTALLDIRS=vendor | |
42 | %{__make} \ | |
43 | CC="%{__cc}" \ | |
44 | OPTIMIZE="%{rpmcflags}" | |
45 | ||
46 | %{?with_tests:%{__make} test} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changes | |
60 | %{perl_vendorlib}/Crypt/OpenSSL/Guess.pm | |
50f14aa7 | 61 | %{_mandir}/man3/Crypt::OpenSSL::Guess.3pm* |