blob: 0b81cd286864ea1501e5aa10402f67b6463329cb (
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
55
56
57
58
59
60
|
%include /usr/lib/rpm/macros.perl
Summary: Alias perl module
Summary(pl): Moduł perla Alias
Name: perl-Alias
Version: 2.32
Release: 3
Copyright: GPL
Group: Development/Languages/Perl
Group(pl): Programowanie/Języki/Perl
Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/Alias/Alias-%{version}.tar.gz
BuildRequires: rpm-perlprov >= 3.0.3-16
BuildRequires: perl >= 5.005_03-14
%requires_eq perl
Requires: %{perl_sitearch}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Alias module provides general mechanisms for aliasing perl data for convenient
access.
%description -l pl
Moduł perla Alias.
%prep
%setup -q -n Alias-%{version}
%build
perl Makefile.PL
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
strip --strip-unneeded $RPM_BUILD_ROOT/%{perl_sitearch}/auto/Alias/*.so
(
cd $RPM_BUILD_ROOT%{perl_sitearch}/auto/Alias
sed -e "s#$RPM_BUILD_ROOT##" .packlist >.packlist.new
mv .packlist.new .packlist
)
gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man3/* \
Changes README Todo
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc {Changes,README,Todo}.gz
%{perl_sitearch}/Alias.pm
%dir %{perl_sitearch}/auto/Alias
%{perl_sitearch}/auto/Alias/.packlist
%{perl_sitearch}/auto/Alias/Alias.bs
%attr(755,root,root) %{perl_sitearch}/auto/Alias/Alias.so
%{_mandir}/man3/*
|