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
|
name: perl-Danga-Socket
summary: Danga-Socket - Base class for asyncronous socket and timer manipulation.
version: 1.56
release: 1
vendor: Brad Fitzpatrick <brad@danga.com>
packager: Jonathan Steinert <hachi@cpan.org>
license: Artistic
group: Applications/CPAN
buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
buildarch: noarch
source: Danga-Socket-%{version}.tar.gz
%description
Base class for asyncronous socket and timer manipulation.
%prep
rm -rf "%{buildroot}"
%setup -n Danga-Socket-%{version}
%build
%{__perl} Makefile.PL PREFIX=%{buildroot}%{_prefix}
make all
make test
%install
make pure_install
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
# remove special files
find %{buildroot} \( \
-name "perllocal.pod" \
-o -name ".packlist" \
-o -name "*.bs" \
\) -exec rm -f {} \;
# no empty directories
find %{buildroot}%{_prefix} \
-type d -depth -empty \
-exec rmdir {} \;
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_prefix}/lib/*
%{_prefix}/share/man/*
|