84 lines
2.6 KiB
RPMSpec
84 lines
2.6 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-File-HomeDir
|
|
Version: 1.006
|
|
Release: 1mamba
|
|
Summary: File::HomeDir - Find your home and other directories on any platform
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://www.cpan.org
|
|
Source: https://cpan.metacpan.org/modules/by-module/File/File-HomeDir-%{version}.tar.gz
|
|
License: GPL, Artistic
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: libperl
|
|
BuildRequires: perl-File-Which
|
|
BuildRequires: perl-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: perl(Carp)
|
|
BuildRequires: perl(Cwd)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(File::Path)
|
|
BuildRequires: perl(File::Spec)
|
|
BuildRequires: perl(File::Temp)
|
|
BuildRequires: perl-File-Which
|
|
BuildRequires: perl(Test::Pod)
|
|
# TODO BuildRequires: perl(Test::MinimumVersion)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl-devel
|
|
Requires: perl(Cwd)
|
|
Requires: perl(File::Path)
|
|
Requires: perl(File::Spec)
|
|
Requires: perl(File::Temp)
|
|
Requires: perl-File-Which
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
%description
|
|
File::HomeDir is a module for locating the directories that are "owned" by a user (typically your user) and to solve the various issues that arise trying to find them consistently across a wide variety of platforms.
|
|
|
|
%prep
|
|
%setup -q -n File-HomeDir-%{version}
|
|
#%patch0 -p1
|
|
|
|
%build
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
%make
|
|
%make test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall_perl
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
chmod -R u+w %{buildroot}/*
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{perl_vendorlib}/File/
|
|
%{_mandir}/man3/*.3pm*
|
|
%doc LICENSE
|
|
|
|
%changelog
|
|
* Fri Feb 26 2021 Automatic Build System <autodist@mambasoft.it> 1.006-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Oct 24 2012 Automatic Build System <autodist@mambasoft.it> 1.00-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Fri Apr 27 2012 Automatic Build System <autodist@mambasoft.it> 0.99-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jul 25 2011 Automatic Build System <autodist@mambasoft.it> 0.98-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon May 02 2011 Automatic Build System <autodist@mambasoft.it> 0.97-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Fri Feb 18 2011 gil <puntogil@libero.it> 0.93-1mamba
|
|
- package created by autospec
|