diff --git a/Text-Diff-Parser-0.1001.tar.gz b/Text-Diff-Parser-0.1001.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..963e2bb2258dee51be4ae9d97af8ad374c032881 Binary files /dev/null and b/Text-Diff-Parser-0.1001.tar.gz differ diff --git a/perl-Text-Diff-Parser.spec b/perl-Text-Diff-Parser.spec new file mode 100644 index 0000000000000000000000000000000000000000..d751b99fea610691aa06d1c2aa186dcf6da6417f --- /dev/null +++ b/perl-Text-Diff-Parser.spec @@ -0,0 +1,57 @@ +Name: perl-Text-Diff-Parser +Version: 0.1001 +Release: 1 +Summary: Parse patch files containing unified and standard diffs +License: GPL+ or Artistic + +URL: https://metacpan.org/release/Text-Diff-Parser +Source0: https://cpan.metacpan.org/authors/id/G/GW/GWYN/Text-Diff-Parser-%{version}.tar.gz + +BuildArch: noarch +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time +BuildRequires: perl(Carp) +BuildRequires: perl(IO::File) +# Tests +BuildRequires: perl(Data::Dumper) +BuildRequires: perl(Test::More) +# Optional tests +BuildRequires: perl(Test::Pod) >= 1.00 +BuildRequires: perl(Test::Pod::Coverage) >= 1.00 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%{?perl_default_filter} + +%description +Text::Diff::Parser parses diff files and patches. It allows you to access +the changes to a file in a standardized way, even if multiple patch +formats are used. + +%prep +%setup -q -n Text-Diff-Parser-%{version} + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Thu Jul 01 2021 Wang Gang - 0.1001-1 +- init project