]>
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 |
929d61f9 | 11 | Version: 1.30 |
b2c7cfd6 | 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 |
929d61f9 | 17 | # Source0-md5: 40153666e7538b410e001aa8a810e702 |
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 |
b4f47bcd | 22 | BuildRequires: perl-Compress-Zlib >= 1.14 |
b2c7cfd6 JB |
23 | BuildRequires: perl-File-Which >= 0.05 |
24 | BuildRequires: perl-Test-Simple >= 0.42 | |
b4f47bcd | 25 | %endif |
5600f281 | 26 | BuildRequires: rpm-perlprov >= 4.1-13 |
83820ef3 | 27 | BuildArch: noarch |
36ef3332 JR |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
fc260946 | 31 | The Archive::Zip module allows a Perl program to create, manipulate, |
32 | read, and write ZIP archive files. | |
36ef3332 | 33 | |
df05ab82 JR |
34 | %description -l pl.UTF-8 |
35 | Moduł Archive::Zip udostępnia programom w Perlu możliwość tworzenia, | |
36 | manipulowania, czytania i zapisywania archiwów ZIP. | |
36ef3332 JR |
37 | |
38 | %prep | |
0aa8c264 | 39 | %setup -q -n %{pdir}-%{pnam}-%{version} |
36ef3332 JR |
40 | |
41 | %build | |
5600f281 | 42 | %{__perl} Makefile.PL \ |
2780cb1a | 43 | INSTALLDIRS=vendor |
36ef3332 JR |
44 | %{__make} |
45 | ||
23bcc939 | 46 | %{?with_tests:%{__make} test} |
b4f47bcd | 47 | |
36ef3332 JR |
48 | %install |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | install -d $RPM_BUILD_ROOT%{_bindir} | |
51 | ||
23bcc939 | 52 | %{__make} install \ |
53 | DESTDIR=$RPM_BUILD_ROOT | |
36ef3332 | 54 | |
fc260946 | 55 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
56 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
57 | ||
36ef3332 JR |
58 | %clean |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
8d74b26a | 63 | %doc Changes README |
36ef3332 | 64 | %attr(755,root,root) %{_bindir}/crc32 |
5600f281 | 65 | %dir %{perl_vendorlib}/Archive/Zip |
66 | %{perl_vendorlib}/Archive/Zip/*.pm | |
67 | %{perl_vendorlib}/Archive/Zip.pm | |
fc260946 | 68 | %{_examplesdir}/%{name}-%{version} |
69 | %{_mandir}/man3/* |