]>
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 |
e0d9af93 MK |
11 | Release: 1 |
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 |
e0d9af93 MK |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
50f14aa7 JB |
28 | Crypt::OpenSSL::Guess provides helpers to guess OpenSSL include path |
29 | on any platforms. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Crypt::OpenSSL::Guess udostępnia funkcje pomocnicze do zgadywania | |
33 | ścieżki nagłówków na dowolnej platformie. | |
e0d9af93 MK |
34 | |
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
37 | ||
38 | %build | |
39 | %{__perl} Makefile.PL \ | |
40 | INSTALLDIRS=vendor | |
41 | %{__make} \ | |
42 | CC="%{__cc}" \ | |
43 | OPTIMIZE="%{rpmcflags}" | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc Changes | |
59 | %{perl_vendorlib}/Crypt/OpenSSL/Guess.pm | |
50f14aa7 | 60 | %{_mandir}/man3/Crypt::OpenSSL::Guess.3pm* |