Package init

This commit is contained in:
overweight 2019-09-30 11:11:39 -04:00
commit 2057defa64
3 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,28 @@
From a027043170603c360605dd2129dbf37b9fd820d8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Wed, 10 Dec 2014 13:12:47 +0100
Subject: [PATCH] Do not sleep in Makefile.PL
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
Makefile.PL | 1 -
1 file changed, 1 deletion(-)
diff --git a/Makefile.PL b/Makefile.PL
index fe093bd..b9cd6ea 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -105,7 +105,6 @@ sub _scripts {
###############################################################
WARNING
- sleep 10;
}
}
return @scripts;
--
1.9.3

BIN
Archive-Tar-2.30.tar.gz Normal file

Binary file not shown.

72
perl-Archive-Tar.spec Normal file
View File

@ -0,0 +1,72 @@
%global perl_package_name Archive-Tar
Name: perl-Archive-Tar
Version: 2.30
Release: 420
Summary: A module for manipulations of tar archives
License: GPL+ or Artistic
URL: https://metacpan.org/pod/release/BINGOS/Archive-Tar-2.30/lib/Archive/Tar.pm
Source0: https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{perl_package_name}-%{version}.tar.gz
Patch0: Archive-Tar-2.02-Do-not-sleep-in-Makefile.PL.patch
BuildArch: noarch
BuildRequires: gcc git make
BuildRequires: perl-interpreter perl-generators perl(ExtUtils::MakeMaker) >= 6.76 perl(Config)
BuildRequires: perl(Getopt::Std) perl(strict)
BuildRequires: perl(Carp) perl(constant) perl(Cwd) perl(Data::Dumper) perl(Exporter) perl(File::Basename)
BuildRequires: perl(File::Find) perl(File::Path) perl(File::Spec) >= 0.82 perl(File::Spec::Unix)
BuildRequires: perl(Getopt::Long) perl(IO::File) perl(IO::Handle) perl(IO::Zlib) >= 1.01
BuildRequires: perl(Pod::Usage) perl(vars) perl(warnings) perl(IO::Compress::Bzip2) >= 2.015
BuildRequires: perl(IO::Uncompress::Bunzip2) >= 2.015 perl(Text::Diff)
BuildRequires: perl(File::Copy) perl(File::Temp) perl(FindBin) perl(lib) perl(Test::Harness) >= 2.26 perl(Test::More)
Requires: perl(IO::Compress::Bzip2) >= 2.015
Requires: perl(:MODULE_COMPAT_%(perl -V:version | tr -d "[a-z=';]"))
Requires: perl(IO::Zlib) >= 1.01
Requires: perl(IO::Uncompress::Bunzip2) >= 2.015
Requires: perl(Text::Diff)
%description
archive::Tar provides an object oriented mechanism for handling tar
files. It provides class methods for quick and easy files handling
while also allowing for the creation of tar file objects for custom
manipulation. If you have the IO::Zlib module installed, Archive::Tar
will also support compressed or gzipped tar files.
%package help
Summary: help document
Requires: perl-%{perl_package_name} = %{version}-%{release}
BuildArch: noarch
%description help
This package provides help document for perl-Archive-Tar.
%prep
%autosetup -n %{perl_package_name}-%{version} -S git
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1 UNINST=0
%make_build
%install
make install DESTDIR=%{buildroot}
%{_fixperms} -c %{buildroot}/*
%check
make test
%files
%{perl_vendorlib}/Archive/
%{_bindir}/*
%files help
%doc README CHANGES
%{_mandir}/man{1/*,3/*}
%changelog
* Fri Sep 27 2019 shenyangyang<shenyangyang4@huawei.com> - 2.30-420
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:enable test
* Wed Aug 28 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.30-419
- Package Init