Compare commits
1 Commits
c8-stream-
...
c10
Author | SHA1 | Date | |
---|---|---|---|
9a159da74a |
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
SOURCES/Algorithm-Diff-1.1903.tar.gz
|
Algorithm-Diff-1.201.tar.gz
|
||||||
|
@ -1 +0,0 @@
|
|||||||
16b50ac7d83c6cb92d1996785e3496ba0a2cce95 SOURCES/Algorithm-Diff-1.1903.tar.gz
|
|
@ -1,17 +1,24 @@
|
|||||||
|
%global upstream_version 1.201
|
||||||
|
%global extra_version 0
|
||||||
|
|
||||||
Name: perl-Algorithm-Diff
|
Name: perl-Algorithm-Diff
|
||||||
Version: 1.1903
|
Version: %{upstream_version}%{?extra_version}
|
||||||
Release: 10%{?dist}
|
Release: 14%{?dist}
|
||||||
Summary: Compute `intelligent' differences between two files/lists
|
Summary: Compute 'intelligent' differences between two files/lists
|
||||||
License: GPL+ or Artistic
|
License: GPL-1.0-or-later OR Artistic-1.0-Perl
|
||||||
Group: Development/Libraries
|
URL: https://metacpan.org/release/Algorithm-Diff
|
||||||
URL: http://search.cpan.org/dist/Algorithm-Diff/
|
Source0: https://cpan.metacpan.org/modules/by-module/Algorithm/Algorithm-Diff-%{upstream_version}.tar.gz
|
||||||
Source0: http://www.cpan.org/authors/id/T/TY/TYEMQ/Algorithm-Diff-%{version}.tar.gz
|
|
||||||
Patch0: Algorithm-Diff-1.1903-provides.patch
|
Patch0: Algorithm-Diff-1.1903-provides.patch
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# Build:
|
# Build:
|
||||||
BuildRequires: perl-interpreter
|
BuildRequires: coreutils
|
||||||
|
BuildRequires: findutils
|
||||||
|
BuildRequires: make
|
||||||
BuildRequires: perl-generators
|
BuildRequires: perl-generators
|
||||||
|
BuildRequires: perl-interpreter
|
||||||
|
BuildRequires: perl(Config)
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
# Run-time:
|
# Run-time:
|
||||||
BuildRequires: perl(Carp)
|
BuildRequires: perl(Carp)
|
||||||
BuildRequires: perl(Exporter)
|
BuildRequires: perl(Exporter)
|
||||||
@ -23,7 +30,6 @@ BuildRequires: perl(Data::Dumper)
|
|||||||
BuildRequires: perl(lib)
|
BuildRequires: perl(lib)
|
||||||
BuildRequires: perl(Test)
|
BuildRequires: perl(Test)
|
||||||
# Explicit requirements:
|
# Explicit requirements:
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
||||||
Requires: perl(Carp)
|
Requires: perl(Carp)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -32,37 +38,133 @@ or any other two lists of things. It uses an intelligent algorithm similar to
|
|||||||
(or identical to) the one used by the Unix "diff" program. It is guaranteed to
|
(or identical to) the one used by the Unix "diff" program. It is guaranteed to
|
||||||
find the *smallest possible* set of differences.
|
find the *smallest possible* set of differences.
|
||||||
|
|
||||||
|
%package tests
|
||||||
|
Summary: Tests for %{name}
|
||||||
|
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||||
|
Requires: perl-Test-Harness
|
||||||
|
|
||||||
|
%description tests
|
||||||
|
Tests from %{name}. Execute them
|
||||||
|
with "%{_libexecdir}/%{name}/test".
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Algorithm-Diff-%{version}
|
%setup -q -n Algorithm-Diff-%{upstream_version}
|
||||||
|
|
||||||
# Generate provide for perl(Algorithm::DiffOld)
|
# Generate provide for perl(Algorithm::DiffOld)
|
||||||
%patch0
|
%patch -P0
|
||||||
|
|
||||||
|
# Help generators to recognize Perl scripts
|
||||||
|
for F in t/*.t; do
|
||||||
|
perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
|
||||||
|
chmod +x "$F"
|
||||||
|
done
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
make pure_install DESTDIR=%{buildroot}
|
make pure_install DESTDIR=%{buildroot}
|
||||||
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
find %{buildroot} -type f -name .packlist -delete
|
||||||
%{_fixperms} %{buildroot}
|
%{_fixperms} -c %{buildroot}
|
||||||
|
# Install tests
|
||||||
# Remove example scripts we're shipping as documentation
|
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||||||
rm -f %{buildroot}%{perl_vendorlib}/Algorithm/*.pl
|
cp -a t %{buildroot}%{_libexecdir}/%{name}
|
||||||
|
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
|
||||||
|
#!/bin/sh
|
||||||
|
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
|
||||||
|
EOF
|
||||||
|
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc Changes README *.pl
|
%doc Changes README bin/*.pl
|
||||||
%{perl_vendorlib}/Algorithm/
|
%{perl_vendorlib}/Algorithm/
|
||||||
%{_mandir}/man3/Algorithm::Diff.3*
|
%{_mandir}/man3/Algorithm::Diff.3*
|
||||||
%{_mandir}/man3/Algorithm::DiffOld.3*
|
%{_mandir}/man3/Algorithm::DiffOld.3*
|
||||||
|
|
||||||
|
%files tests
|
||||||
|
%{_libexecdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Mar 29 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.1903-10
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.2010-14
|
||||||
- Rebuild with enable hardening (bug #1636329)
|
- Bump release for October 2024 mass rebuild:
|
||||||
|
Resolves: RHEL-64018
|
||||||
|
|
||||||
|
* Tue Jun 25 2024 Jitka Plesnikova <jplesnik@redhat.com> - 1.2010-13
|
||||||
|
- Package tests
|
||||||
|
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.2010-12
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Thu Jan 25 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2010-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.2010-10
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2010-9
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2010-8
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2010-7
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.2010-6
|
||||||
|
- Perl 5.36 rebuild
|
||||||
|
|
||||||
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.2010-5
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2010-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.2010-3
|
||||||
|
- Perl 5.34 rebuild
|
||||||
|
|
||||||
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2010-2
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Dec 14 2020 Paul Howarth <paul@city-fan.org> - 1.2010-1
|
||||||
|
- Update to 1.201
|
||||||
|
- Speed up LCS when $keyGen is undef (CPAN RT#101105)
|
||||||
|
|
||||||
|
* Mon Sep 28 2020 Paul Howarth <paul@city-fan.org> - 1.2000-1
|
||||||
|
- Update to 1.200
|
||||||
|
- New release with no new features, just preparing for a series of bugfix
|
||||||
|
releases
|
||||||
|
- Specify all build dependencies
|
||||||
|
- Drop redundant buildroot cleaning in %%install section
|
||||||
|
- Simplify find command using -delete
|
||||||
|
- Fix permissions verbosely
|
||||||
|
|
||||||
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-17
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||||
|
|
||||||
|
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.1903-16
|
||||||
|
- Perl 5.32 rebuild
|
||||||
|
|
||||||
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-15
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-14
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||||
|
|
||||||
|
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.1903-13
|
||||||
|
- Perl 5.30 rebuild
|
||||||
|
|
||||||
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-12
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-11
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||||
|
|
||||||
|
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.1903-10
|
||||||
|
- Perl 5.28 rebuild
|
||||||
|
|
||||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-9
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1903-9
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
Loading…
Reference in New Issue
Block a user