source: spec/trunk/SPECS/perl-File-ShareDir.spec@ 1566

Last change on this file since 1566 was 1347, checked in by tellie, 8 years ago

spec: perl-File-ShareDir: Release version 1.104-1.

File size: 2.1 KB
Line 
1Name: perl-File-ShareDir
2Version: 1.104
3Release: 1%{?dist}
4Summary: Locate per-dist and per-module shared files
5License: GPL+ or Artistic
6Group: Development/Libraries
7Vendor: bww bitwise works GmbH
8URL: http://search.cpan.org/dist/File-ShareDir/
9Source0: http://www.cpan.org/authors/id/R/RE/REHSACK/File-ShareDir-%{version}.tar.gz
10BuildArch: noarch
11BuildRequires: coreutils
12BuildRequires: make
13#BuildRequires: perl-interpreter
14BuildRequires: perl-generators
15BuildRequires: perl(Carp)
16BuildRequires: perl(Class::Inspector) >= 1.12
17BuildRequires: perl(Config)
18BuildRequires: perl(constant)
19BuildRequires: perl(Exporter)
20BuildRequires: perl(ExtUtils::MakeMaker) >= 6.63
21BuildRequires: perl(File::Spec)
22BuildRequires: perl(IO::Dir)
23BuildRequires: perl(IO::File)
24BuildRequires: perl(lib)
25BuildRequires: perl(strict)
26BuildRequires: perl(Test::More) >= 0.47
27BuildRequires: perl(vars)
28BuildRequires: perl(warnings)
29Requires: perl(Class::Inspector) >= 1.12
30Requires: 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
36The intent of File::ShareDir is to provide a companion to Class::Inspector
37and File::HomeDir, modules that take a process that is well-known by
38advanced Perl developers but gets a little tricky, and make it more
39available to the larger Perl community.
40
41%prep
42%setup -q -n File-ShareDir-%{version}
43
44%build
45perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
46make %{?_smp_mflags}
47make manifypods
48
49%install
50make pure_install DESTDIR=%{buildroot}
51find %{buildroot} -type f -name .packlist -exec rm -f {} \;
52%{_fixperms} %{buildroot}/*
53chmod 644 share/sample.txt
54chmod 644 share/subdir/sample.txt
55rm -rf %{buildroot}/blib/lib/auto/share/dist/File-ShareDir/
56rm -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
Note: See TracBrowser for help on using the repository browser.