1 | Name: perl-File-ShareDir
|
---|
2 | Version: 1.104
|
---|
3 | Release: 1%{?dist}
|
---|
4 | Summary: Locate per-dist and per-module shared files
|
---|
5 | License: GPL+ or Artistic
|
---|
6 | Group: Development/Libraries
|
---|
7 | Vendor: bww bitwise works GmbH
|
---|
8 | URL: http://search.cpan.org/dist/File-ShareDir/
|
---|
9 | Source0: http://www.cpan.org/authors/id/R/RE/REHSACK/File-ShareDir-%{version}.tar.gz
|
---|
10 | BuildArch: noarch
|
---|
11 | BuildRequires: coreutils
|
---|
12 | BuildRequires: make
|
---|
13 | #BuildRequires: perl-interpreter
|
---|
14 | BuildRequires: perl-generators
|
---|
15 | BuildRequires: perl(Carp)
|
---|
16 | BuildRequires: perl(Class::Inspector) >= 1.12
|
---|
17 | BuildRequires: perl(Config)
|
---|
18 | BuildRequires: perl(constant)
|
---|
19 | BuildRequires: perl(Exporter)
|
---|
20 | BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
|
---|
21 | BuildRequires: perl(File::Spec)
|
---|
22 | BuildRequires: perl(IO::Dir)
|
---|
23 | BuildRequires: perl(IO::File)
|
---|
24 | BuildRequires: perl(lib)
|
---|
25 | BuildRequires: perl(strict)
|
---|
26 | BuildRequires: perl(Test::More) >= 0.47
|
---|
27 | BuildRequires: perl(vars)
|
---|
28 | BuildRequires: perl(warnings)
|
---|
29 | Requires: perl(Class::Inspector) >= 1.12
|
---|
30 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
31 |
|
---|
32 | %{?perl_default_filter}
|
---|
33 | %global __requires_exclude %{?__requires_exclude}|perl\\(Class::Inspector\\)$
|
---|
34 |
|
---|
35 | %description
|
---|
36 | The intent of File::ShareDir is to provide a companion to Class::Inspector
|
---|
37 | and File::HomeDir, modules that take a process that is well-known by
|
---|
38 | advanced Perl developers but gets a little tricky, and make it more
|
---|
39 | available to the larger Perl community.
|
---|
40 |
|
---|
41 | %prep
|
---|
42 | %setup -q -n File-ShareDir-%{version}
|
---|
43 |
|
---|
44 | %build
|
---|
45 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
---|
46 | make %{?_smp_mflags}
|
---|
47 | make manifypods
|
---|
48 |
|
---|
49 | %install
|
---|
50 | make pure_install DESTDIR=%{buildroot}
|
---|
51 | find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
---|
52 | %{_fixperms} %{buildroot}/*
|
---|
53 | chmod 644 share/sample.txt
|
---|
54 | chmod 644 share/subdir/sample.txt
|
---|
55 | rm -rf %{buildroot}/blib/lib/auto/share/dist/File-ShareDir/
|
---|
56 | rm -rf %{buildroot}/blib/lib/auto/share/module/File-ShareDir/test_file.txt
|
---|
57 |
|
---|
58 | %check
|
---|
59 | #make test AUTOMATED_TESTING=1
|
---|
60 |
|
---|
61 | %files
|
---|
62 | %license LICENSE
|
---|
63 | %doc Changes README.md
|
---|
64 | %{perl_vendorlib}/*
|
---|
65 | %{_mandir}/man3/*
|
---|
66 |
|
---|
67 | %changelog
|
---|
68 | * Thu Mar 08 2018 Elbert Pol <elbert.pol@gmail.com> - 1.104-1
|
---|
69 | - initial rpm for OS2
|
---|