/
perl-Path-Class.spec
45 lines (36 loc) · 1.13 KB
/
perl-Path-Class.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
%define module Path-Class
%define upstream_version 0.37
Name: perl-%{module}
Version: %perl_convert_version %{upstream_version}
Release: 3
Summary: Cross-platform path specification manipulation
License: Artistic/GPL
Group: Development/Perl
Url: http://search.cpan.org/dist/%{module}
Source0: https://cpan.metacpan.org/authors/id/K/KW/KWILLIAMS/%{module}-%{upstream_version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(Perl::OSType)
BuildRequires: perl(File::Spec::Win32)
BuildArch: noarch
%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.
%prep
%autosetup -p1 -n %{module}-%{upstream_version}
%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
make test
%install
%make_install
%files
%doc README Changes
%{perl_vendorlib}/Path/Class/*
%{perl_vendorlib}/Path/Class.pm
%doc %{_mandir}/*/*