From c89d34e753caaedba6fe68a9aaa4487f290de1b7 Mon Sep 17 00:00:00 2001 From: Iain Arnell Date: Sun, 4 Apr 2010 06:56:24 +0000 Subject: [PATCH] initial import --- .cvsignore | 1 + perl-File-ShareDir-Install.spec | 54 +++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 56 insertions(+) create mode 100644 perl-File-ShareDir-Install.spec diff --git a/.cvsignore b/.cvsignore index e69de29..05c33cf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +File-ShareDir-Install-0.03.tar.gz diff --git a/perl-File-ShareDir-Install.spec b/perl-File-ShareDir-Install.spec new file mode 100644 index 0000000..e727802 --- /dev/null +++ b/perl-File-ShareDir-Install.spec @@ -0,0 +1,54 @@ +Name: perl-File-ShareDir-Install +Version: 0.03 +Release: 1%{?dist} +Summary: Install shared files +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/File-ShareDir-Install/ +Source0: http://www.cpan.org/authors/id/G/GW/GWYN/File-ShareDir-Install-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.11 +# tests +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) +BuildRequires: perl(Test::Pod::Coverage) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +File::ShareDir::Install allows you to install read-only data files from a +distribution. It is a companion module to File::ShareDir, which allows you +to locate these files after installation. + +%prep +%setup -q -n File-ShareDir-Install-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Fri Apr 02 2010 Iain Arnell 0.03-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..8c09383 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +ead5d0779a45dee782d81d2415610331 File-ShareDir-Install-0.03.tar.gz