]>
Commit | Line | Data |
---|---|---|
6e31d07b AG |
1 | # |
2 | # Conditional build: | |
938bdffd | 3 | %bcond_without tests # do not perform "make test" |
cdf7b394 | 4 | |
985ccd5f | 5 | %define pdir URI |
6 | %define pnam imaps | |
cdf7b394 | 7 | %include /usr/lib/rpm/macros.perl |
6e31d07b | 8 | Summary: URI::imaps - Support IMAPS URI |
863f6f43 | 9 | Summary(pl.UTF-8): URI::imaps - Wsparcie dla URI IMAPS |
6e31d07b AG |
10 | Name: perl-URI-imaps |
11 | Version: 1.01 | |
8e1efc82 | 12 | Release: 2 |
6e31d07b AG |
13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
17 | # Source0-md5: 0fdb2371e9f64ea7acbe385ca8d8a708 | |
cdf7b394 | 18 | URL: http://search.cpan.org/dist/URI-imaps/ |
6e31d07b AG |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl(URI) | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Support IMAPS schemas with URI. | |
29 | ||
0e665f14 JR |
30 | %description -l pl.UTF-8 |
31 | Wsparcie dla schematów IMAPS z URI. | |
6e31d07b AG |
32 | |
33 | %prep | |
34 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL \ | |
38 | INSTALLDIRS=vendor | |
39 | %{__make} | |
40 | ||
41 | %{?with_tests:%{__make} test} | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %{__make} install \ | |
47 | DESTDIR=$RPM_BUILD_ROOT | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc Changes README | |
55 | %{perl_vendorlib}/URI/*.pm | |
56 | %{_mandir}/man3/* |