Spec clean-up
- Add buildreqs for Perl core modules that might be dual-lived - Tidy %description - Make %files list more explicit - Don't use macros for commands - Use search.cpan.org source URL - BR: at least version 0.87 of File::Spec
This commit is contained in:
parent
ab5780aa62
commit
ae918caab5
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
/Path-Class-0.23.tar.gz
|
||||
/Path-Class-[0-9.]*.tar.gz
|
||||
|
@ -1,52 +1,72 @@
|
||||
Name: perl-Path-Class
|
||||
Version: 0.23
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Cross-platform path specification manipulation
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/Path-Class/
|
||||
Source0: http://www.cpan.org/modules/by-module/Path/Path-Class-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Source0: http://search.cpan.org/CPAN/authors/id/K/KW/KWILLIAMS/Path-Class-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(Test::More)
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Carp)
|
||||
BuildRequires: perl(Cwd)
|
||||
BuildRequires: perl(Exporter)
|
||||
BuildRequires: perl(File::Path)
|
||||
BuildRequires: perl(File::Spec) >= 0.87
|
||||
BuildRequires: perl(File::stat)
|
||||
BuildRequires: perl(File::Temp)
|
||||
BuildRequires: perl(IO::Dir)
|
||||
BuildRequires: perl(IO::File)
|
||||
BuildRequires: perl(Module::Build)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(Test::More)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
|
||||
%description
|
||||
Path::Class is a module for manipulation of file and directory
|
||||
specifications (strings describing their locations, like
|
||||
'/home/ken/foo.txt' or 'C:\Windows\Foo.txt') in a cross-platform manner. It
|
||||
supports pretty much every platform Perl runs on, including Unix, Windows,
|
||||
Mac, VMS, Epoc, Cygwin, OS/2, and NetWare.
|
||||
Path::Class is a module for manipulation of file and directory specifications
|
||||
(strings describing their locations, like '/home/ken/foo.txt' or
|
||||
'C:\Windows\Foo.txt') in a cross-platform manner. It supports pretty much every
|
||||
platform Perl runs on, including Unix, Windows, Mac, VMS, Epoc, Cygwin, OS/2,
|
||||
and NetWare.
|
||||
|
||||
%prep
|
||||
%setup -q -n Path-Class-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Build.PL installdirs=vendor
|
||||
perl Build.PL installdirs=vendor
|
||||
./Build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
rm -rf %{buildroot}
|
||||
./Build install destdir=%{buildroot} create_packlist=0
|
||||
%{_fixperms} %{buildroot}
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
%{perl_vendorlib}/Path/
|
||||
%{_mandir}/man3/Path::Class.3pm*
|
||||
%{_mandir}/man3/Path::Class::Dir.3pm*
|
||||
%{_mandir}/man3/Path::Class::Entity.3pm*
|
||||
%{_mandir}/man3/Path::Class::File.3pm*
|
||||
|
||||
%changelog
|
||||
* Thu Feb 16 2012 Paul Howarth <paul@city-fan.org> - 0.23-4
|
||||
- Spec clean-up:
|
||||
- Add buildreqs for Perl core modules that might be dual-lived
|
||||
- Tidy %%description
|
||||
- Make %%files list more explicit
|
||||
- Don't use macros for commands
|
||||
- Use search.cpan.org source URL
|
||||
- BR: at least version 0.87 of File::Spec
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
@ -60,16 +80,16 @@ rm -rf $RPM_BUILD_ROOT
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Tue Dec 21 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.18-3
|
||||
- 661697 rebuild for fixing problems with vendorach/lib
|
||||
- Rebuild to fix problems with vendorarch/lib (#661697)
|
||||
|
||||
* Tue May 04 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.18-2
|
||||
- Mass rebuild with perl-5.12.0
|
||||
|
||||
* Mon Feb 22 2010 Chris Weyl <cweyl@alumni.drew.edu> 0.18-1
|
||||
- update to 0.18 (for latest DBIx::Class)
|
||||
* Mon Feb 22 2010 Chris Weyl <cweyl@alumni.drew.edu> - 0.18-1
|
||||
- Update to 0.18 (for latest DBIx::Class)
|
||||
|
||||
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 0.16-6
|
||||
- rebuild against perl 5.10.1
|
||||
- Rebuild against perl 5.10.1
|
||||
|
||||
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
@ -78,10 +98,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Wed Mar 5 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.16-3
|
||||
- rebuild for new perl
|
||||
- Rebuild for new perl
|
||||
|
||||
* Thu Aug 16 2007 Ian Burrell <ianburrell@gmail.com> - 0.16-2
|
||||
- Fix BuildRequires
|
||||
|
||||
* Mon Jan 29 2007 Ian Burrell <ianburrell@gmail.com> 0.16-1
|
||||
- Specfile autogenerated by cpanspec 1.69.1.
|
||||
* Mon Jan 29 2007 Ian Burrell <ianburrell@gmail.com> - 0.16-1
|
||||
- Specfile autogenerated by cpanspec 1.69.1
|
||||
|
Loading…
Reference in New Issue
Block a user