blob: 87cc7de9f302c5ef0c0f54a4ca03108cdf2c6711 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
%include /usr/lib/rpm/macros.perl
Summary: IO-Zlib perl module
Summary(pl): Moduł perla IO-Zlib
Name: perl-IO-Zlib
Version: 0.02
Release: 3
License: GPL
Group: Development/Languages/Perl
Group(pl): Programowanie/Języki/Perl
Source0: ftp://ftp.perl.org/pub/CPAN/modules/by-module/IO/IO-Zlib-%{version}.tar.gz
BuildRequires: rpm-perlprov >= 3.0.3-16
BuildRequires: perl >= 5.005_03-14
BuildRequires: perl-Compress-Zlib
%requires_eq perl
Requires: %{perl_sitearch}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
IO-Zlib perl module.
%description -l pl
Moduł perla IO-Zlib.
%prep
%setup -q -n IO-Zlib-%{version}
%build
perl Makefile.PL
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
(
cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/IO/Zlib
sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
mv .packlist.new .packlist
)
gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
ChangeLog README
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc {ChangeLog,README}.gz
%{perl_sitelib}/IO/Zlib.pm
%{perl_sitearch}/auto/IO/Zlib
%{_mandir}/man3/*
|