1 | Name: perl-File-HomeDir
|
---|
2 | Version: 1.004
|
---|
3 | Release: 3%{?dist}
|
---|
4 | Summary: Find your home and other directories on any platform
|
---|
5 | License: GPL+ or Artistic
|
---|
6 | URL: https://metacpan.org/release/File-HomeDir
|
---|
7 | Source0: https://cpan.metacpan.org/authors/id/R/RE/REHSACK/File-HomeDir-%{version}.zip
|
---|
8 | BuildArch: noarch
|
---|
9 | BuildRequires: coreutils
|
---|
10 | BuildRequires: make
|
---|
11 | BuildRequires: perl-generators
|
---|
12 | #BuildRequires: perl-interpreter
|
---|
13 | #BuildRequires: perl(:VERSION) >= 5.5.3
|
---|
14 | BuildRequires: perl(Config)
|
---|
15 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
16 | # POSIX not used on Linux
|
---|
17 | BuildRequires: perl(strict)
|
---|
18 | BuildRequires: perl(warnings)
|
---|
19 | # Run-time:
|
---|
20 | BuildRequires: perl(base)
|
---|
21 | BuildRequires: perl(Carp)
|
---|
22 | BuildRequires: perl(Cwd) >= 3.12
|
---|
23 | BuildRequires: perl(Exporter)
|
---|
24 | BuildRequires: perl(File::Path) >= 2.01
|
---|
25 | BuildRequires: perl(File::Spec) >= 3.12
|
---|
26 | BuildRequires: perl(File::Temp) >= 0.19
|
---|
27 | BuildRequires: perl(File::Which) >= 0.05
|
---|
28 | # Mac::Files not used on Linux
|
---|
29 | # Mac::SystemDirectory not used on Linux
|
---|
30 | BuildRequires: perl(vars)
|
---|
31 | # Win32 not used on Linux
|
---|
32 | # Tests:
|
---|
33 | BuildRequires: perl(File::Spec::Functions)
|
---|
34 | BuildRequires: perl(Test::More) >= 0.90
|
---|
35 | # Dependencies:
|
---|
36 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
37 | Requires: perl(Cwd) >= 3.12
|
---|
38 | Requires: perl(File::Path) >= 2.01
|
---|
39 | Requires: perl(File::Spec) >= 3.12
|
---|
40 | Requires: perl(File::Temp) >= 0.19
|
---|
41 | Requires: perl(File::Which) >= 0.05
|
---|
42 |
|
---|
43 | # Remove unwanted and under-specified dependencies
|
---|
44 | %global __requires_exclude perl\\(Cwd\\)|perl\\(File::Path\\)|perl\\(File::Spec\\)|perl\\(File::Temp\\)|perl\\(File::Which\\)|perl\\(Mac::|perl\\(Win32
|
---|
45 |
|
---|
46 | %description
|
---|
47 | File::HomeDir is a module for locating the directories that are "owned"
|
---|
48 | by a user (typically your user) and to solve the various issues that
|
---|
49 | arise trying to find them consistently across a wide variety of
|
---|
50 | platforms.
|
---|
51 |
|
---|
52 | %prep
|
---|
53 | %setup -q -n File-HomeDir-%{version}
|
---|
54 |
|
---|
55 | %build
|
---|
56 | perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
|
---|
57 | make %{?_smp_mflags}
|
---|
58 | make manifypods
|
---|
59 |
|
---|
60 | %install
|
---|
61 | make install DESTDIR=%{buildroot}
|
---|
62 | find %{buildroot} -type f -name .packlist -delete
|
---|
63 | find %{buildroot} -type f -name perllocal.pod -exec rm -f {} ';'
|
---|
64 | %{_fixperms} -c %{buildroot}
|
---|
65 |
|
---|
66 | %check
|
---|
67 | #make test
|
---|
68 |
|
---|
69 | %files
|
---|
70 | %license LICENSE
|
---|
71 | %doc Changes README.md
|
---|
72 | %{perl_vendorlib}/File/
|
---|
73 | %{_mandir}/man3/File.HomeDir.3*
|
---|
74 | %{_mandir}/man3/File.HomeDir.Darwin.3*
|
---|
75 | %{_mandir}/man3/File.HomeDir.Darwin.Carbon.3*
|
---|
76 | %{_mandir}/man3/File.HomeDir.Darwin.Cocoa.3*
|
---|
77 | %{_mandir}/man3/File.HomeDir.Driver.3*
|
---|
78 | %{_mandir}/man3/File.HomeDir.FreeDesktop.3*
|
---|
79 | %{_mandir}/man3/File.HomeDir.MacOS9.3*
|
---|
80 | %{_mandir}/man3/File.HomeDir.Test.3*
|
---|
81 | %{_mandir}/man3/File.HomeDir.Unix.3*
|
---|
82 | %{_mandir}/man3/File.HomeDir.Windows.3*
|
---|
83 |
|
---|
84 | %changelog
|
---|
85 | * Sun Oct 28 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.004-1
|
---|
86 | - first os2 rpm version
|
---|