83 lines
2.4 KiB
RPMSpec
83 lines
2.4 KiB
RPMSpec
Name: perl-PathTools
|
|
Version: 3.33
|
|
Release: 4%{?dist}
|
|
Summary: PathTools Perl module (Cwd, File::Spec)
|
|
License: (GPL+ or Artistic) and BSD
|
|
Group: Development/Libraries
|
|
URL: http://search.cpan.org/dist/PathTools/
|
|
Source0: http://www.cpan.org/authors/id/S/SM/SMUELLER/PathTools-%{version}.tar.gz
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Carp::Heavy)
|
|
BuildRequires: perl(Config)
|
|
BuildRequires: perl(Cwd)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(File::Basename)
|
|
BuildRequires: perl(File::Path)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(File::Spec::Cygwin)
|
|
BuildRequires: perl(File::Spec::Epoc)
|
|
BuildRequires: perl(File::Spec::Functions)
|
|
BuildRequires: perl(File::Spec::Unix)
|
|
BuildRequires: perl(Scalar::Util)
|
|
BuildRequires: perl(strict)
|
|
BuildRequires: perl(Test)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl(vars)
|
|
Requires: perl(Carp)
|
|
Requires: perl(File::Basename)
|
|
Requires: perl(File::Path)
|
|
Requires: perl(Scalar::Util)
|
|
Requires: perl(Test)
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
# RPM 4.8 style:
|
|
%{?perl_default_filter:
|
|
%filter_from_requires /^perl(VMS::Filespec)/d
|
|
%perl_default_filter
|
|
}
|
|
# RPM 4.9 style:
|
|
%global %__requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(VMS::Filespec\\)
|
|
|
|
%description
|
|
PathTools Perl module (Cwd, File::Spec).
|
|
|
|
%prep
|
|
%setup -q -n PathTools-%{version}
|
|
|
|
%build
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
|
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%check
|
|
make test
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc Changes README
|
|
%{perl_vendorarch}/auto/*
|
|
%{perl_vendorarch}/Cwd.pm
|
|
%{perl_vendorarch}/File/
|
|
%{_mandir}/man3/*
|
|
|
|
%changelog
|
|
* Mon Jul 25 2011 Petr Pisar <ppisar@redhat.com> - 3.33-4
|
|
- RPM 4.9 dependency filtering added
|
|
|
|
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 3.33-3
|
|
- Perl mass rebuild
|
|
|
|
* Sun May 29 2011 Ville Skyttä <ville.skytta@iki.fi> - 3.33-2
|
|
- Own the %%{perl_vendorarch}/File dir.
|
|
|
|
* Mon Feb 28 2011 Marcela Mašláňová <mmaslano@redhat.com> 3.33-1
|
|
- Specfile autogenerated by cpanspec 1.79.
|