Files
perl-IO/perl-IO.spec

58 lines
1.3 KiB
RPMSpec
Raw Normal View History

%define cpan_name IO
Name: perl-%cpan_name
Version: 1.2301
Release: 1
Provides: %cpan_name
Requires: perl = %{perl_version}
Group: Development/Libraries/Perl
License: Artistic
URL: http://search.cpan.org/dist/IO/
Summary: load various IO modules
Source: %cpan_name-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
IO provides a simple mechanism to load several of the IO modules in one go. The IO modules belonging to the core are:
IO::Handle
IO::Seekable
IO::File
IO::Pipe
IO::Socket
IO::Dir
IO::Select
IO::Poll
%prep
%setup -q -n %cpan_name-%{version}
%build
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
make
make test
%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor
%perl_process_packlist
%clean
# clean up the hard disc after build
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc %{_mandir}/man?/*
%{perl_vendorarch}/IO
%{perl_vendorarch}/IO.pm
%{perl_vendorarch}/auto/IO
/var/adm/perl-modules/%{name}
%doc ChangeLog MANIFEST README SIGNATURE
%changelog -n %{name}
* Sun Jan 19 2008 - gerrit.beine@googlemail.com
- moved to openSUSE Build Service
* Thu Dec 06 2007 - gerrit@beine-computer.de
- first release 1.2301