Package init

This commit is contained in:
overweight 2019-09-30 11:13:04 -04:00
commit 90e2373d2e
3 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- lib/Perl/OSType.pm
+++ lib/Perl/OSType.pm
@@ -108,6 +108,8 @@ version 1.008
=head1 DESCRIPTION
+=for :stopwords Unix Win32 Windows
+
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

BIN
Perl-OSType-1.010.tar.gz Normal file

Binary file not shown.

58
perl-Perl-OSType.spec Normal file
View File

@ -0,0 +1,58 @@
%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