59 lines
1.5 KiB
RPMSpec
59 lines
1.5 KiB
RPMSpec
|
|
%global perl_package_name Perl-OSType
|
||
|
|
Name: perl-Perl-OSType
|
||
|
|
Version: 1.010
|
||
|
|
Release: 420
|
||
|
|
Summary: Map Perl operating system names to generic types
|
||
|
|
License: GPL+ or Artistic
|
||
|
|
URL: https://metacpan.org/release/Perl-OSType
|
||
|
|
BuildArch: noarch
|
||
|
|
Source0: https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{perl_package_name}-%{version}.tar.gz
|
||
|
|
Patch0: Perl-OSType-1.010-stopwords.patch
|
||
|
|
|
||
|
|
BuildRequires: git gcc make
|
||
|
|
BuildRequires: perl-interpreter
|
||
|
|
BuildRequires: perl-generators
|
||
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.17
|
||
|
|
BuildRequires: perl(Test::More) >= 0.88
|
||
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||
|
|
|
||
|
|
%description
|
||
|
|
Modules that provide OS-specific behaviors often need to know if the current
|
||
|
|
operating system matches a more generic type of operating systems. For example,
|
||
|
|
'linux' is a type of 'Unix' operating system and so is 'freebsd'.
|
||
|
|
|
||
|
|
%package_help
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n %{perl_package_name}-%{version} -S git -p0
|
||
|
|
|
||
|
|
%build
|
||
|
|
perl Makefile.PL INSTALLDIRS=vendor
|
||
|
|
%make_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||
|
|
%{_fixperms} -c $RPM_BUILD_ROOT
|
||
|
|
|
||
|
|
%check
|
||
|
|
make test
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc Changes CONTRIBUTING.mkdn README
|
||
|
|
%license LICENSE
|
||
|
|
%{perl_vendorlib}/Perl/
|
||
|
|
|
||
|
|
%files help
|
||
|
|
%{_mandir}/man3/Perl::OSType.3*
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Thu Sep 26 2019 shenyangyang<shenyangyang4@huawei.com> - 1.010-420
|
||
|
|
- Type:enhancement
|
||
|
|
- ID:NA
|
||
|
|
- SUG:NA
|
||
|
|
- DESC:revise help package
|
||
|
|
|
||
|
|
* Mon Aug 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.010-419
|
||
|
|
- Package init
|
||
|
|
|