From f325d07f6e42b6a3c18aab02ce0cb19cbecdb319 Mon Sep 17 00:00:00 2001 From: Andreas Thienemann Date: Fri, 23 Mar 2007 14:12:13 +0000 Subject: [PATCH] auto-import perl-FileHandle-Fmode-0.09-2 on branch devel from perl-FileHandle-Fmode-0.09-2.src.rpm --- .cvsignore | 1 + perl-FileHandle-Fmode.spec | 55 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 57 insertions(+) create mode 100644 perl-FileHandle-Fmode.spec diff --git a/.cvsignore b/.cvsignore index e69de29..3ff7544 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +FileHandle-Fmode-0.09.tar.gz diff --git a/perl-FileHandle-Fmode.spec b/perl-FileHandle-Fmode.spec new file mode 100644 index 0000000..e8fd774 --- /dev/null +++ b/perl-FileHandle-Fmode.spec @@ -0,0 +1,55 @@ +Name: perl-FileHandle-Fmode +Version: 0.09 +Release: 2%{?dist} +Summary: FileHandle::Fmode Perl module +License: GPL or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/FileHandle-Fmode/ +Source0: http://www.cpan.org/modules/by-module/FileHandle/FileHandle-Fmode-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: /usr/bin/dos2unix + +%description +Determine whether a filehandle is opened for reading, writing, or both. + +%prep +%setup -q -n FileHandle-Fmode-%{version} +dos2unix README CHANGES + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make pure_install PERL_INSTALL_ROOT=%{buildroot} + +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \; +find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} %{buildroot}/* + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%doc CHANGES README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/FileHandle* +%{_mandir}/man3/* + +%changelog +* Thu Mar 22 2007 Andreas Thienemann 0.09-2 +- Fixed EOL-encoding in the packages %%doc files. + +* Sat Mar 10 2007 Andreas Thienemann 0.09-1 +- Specfile autogenerated by cpanspec 1.69.1. diff --git a/sources b/sources index e69de29..b242666 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1d0c629d8e4138fc753757ad41e69d5d FileHandle-Fmode-0.09.tar.gz