]>
Commit | Line | Data |
---|---|---|
75167fcc | 1 | # |
b4f47bcd | 2 | # Conditional build: |
23bcc939 | 3 | %bcond_without tests # do not perform "make test" |
75167fcc | 4 | # |
36ef3332 | 5 | %include /usr/lib/rpm/macros.perl |
21305460 | 6 | %define pdir Archive |
7 | %define pnam Zip | |
fc260946 | 8 | Summary: Archive::Zip - module for manipulation of ZIP archives |
8c2e8973 | 9 | Summary(pl.UTF-8): Archive::Zip - moduł do manipulacji archiwami ZIP |
36ef3332 | 10 | Name: perl-Archive-Zip |
a416a6ec | 11 | Version: 1.46 |
9b67f57b | 12 | Release: 1 |
792b18d0 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
36ef3332 | 15 | Group: Development/Languages/Perl |
b2c7cfd6 | 16 | Source0: http://www.cpan.org/modules/by-module/Archive/%{pdir}-%{pnam}-%{version}.tar.gz |
a416a6ec | 17 | # Source0-md5: 44830965095d3ab66beff48eddb1c478 |
b2c7cfd6 | 18 | URL: http://search.cpan.org/dist/Archive-Zip/ |
d89445fc | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
23bcc939 | 20 | %if %{with tests} |
b2c7cfd6 | 21 | BuildRequires: perl(File::Spec) >= 0.80 |
289fe81b | 22 | BuildRequires: perl-Compress-Raw-Zlib >= 2.017 |
b2c7cfd6 | 23 | BuildRequires: perl-File-Which >= 0.05 |
289fe81b JB |
24 | BuildRequires: perl-IO-Compress |
25 | BuildRequires: perl-Test-Simple >= 0.88 | |
b4f47bcd | 26 | %endif |
5600f281 | 27 | BuildRequires: rpm-perlprov >= 4.1-13 |
83820ef3 | 28 | BuildArch: noarch |
36ef3332 JR |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
fc260946 | 32 | The Archive::Zip module allows a Perl program to create, manipulate, |
33 | read, and write ZIP archive files. | |
36ef3332 | 34 | |
df05ab82 JR |
35 | %description -l pl.UTF-8 |
36 | Moduł Archive::Zip udostępnia programom w Perlu możliwość tworzenia, | |
37 | manipulowania, czytania i zapisywania archiwów ZIP. | |
36ef3332 JR |
38 | |
39 | %prep | |
0aa8c264 | 40 | %setup -q -n %{pdir}-%{pnam}-%{version} |
36ef3332 JR |
41 | |
42 | %build | |
5600f281 | 43 | %{__perl} Makefile.PL \ |
2780cb1a | 44 | INSTALLDIRS=vendor |
36ef3332 JR |
45 | %{__make} |
46 | ||
23bcc939 | 47 | %{?with_tests:%{__make} test} |
b4f47bcd | 48 | |
36ef3332 JR |
49 | %install |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | install -d $RPM_BUILD_ROOT%{_bindir} | |
52 | ||
23bcc939 | 53 | %{__make} install \ |
54 | DESTDIR=$RPM_BUILD_ROOT | |
36ef3332 | 55 | |
fc260946 | 56 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
57 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
58 | ||
1c302874 JB |
59 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Archive/Zip/FAQ.pod |
60 | ||
36ef3332 JR |
61 | %clean |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %files | |
65 | %defattr(644,root,root,755) | |
9b67f57b | 66 | %doc Changes |
36ef3332 | 67 | %attr(755,root,root) %{_bindir}/crc32 |
5600f281 | 68 | %dir %{perl_vendorlib}/Archive/Zip |
69 | %{perl_vendorlib}/Archive/Zip/*.pm | |
70 | %{perl_vendorlib}/Archive/Zip.pm | |
fc260946 | 71 | %{_examplesdir}/%{name}-%{version} |
1c302874 | 72 | %{_mandir}/man3/Archive::Zip*.3pm* |