f73a66f
Name:		perl-Algorithm-C3
e23ac08
Version:	0.11
b5733d7
Release:	10%{?dist}
f73a66f
Summary:	Module for merging hierarchies using the C3 algorithm
b5733d7
License:	GPL-1.0-or-later OR Artistic-1.0-Perl
ac1bd40
URL:		https://metacpan.org/release/Algorithm-C3
036e71a
Source0:	https://cpan.metacpan.org/modules/by-module/Algorithm/Algorithm-C3-%{version}.tar.gz
f73a66f
BuildArch:	noarch
f73a66f
# Build
036e71a
BuildRequires:	coreutils
036e71a
BuildRequires:	findutils
036e71a
BuildRequires:	make
7678cb4
BuildRequires:	perl-generators
036e71a
BuildRequires:	perl-interpreter
2ea4535
BuildRequires:	perl(ExtUtils::MakeMaker)
f73a66f
# Module
f73a66f
BuildRequires:	perl(Carp) >= 0.01
2ea4535
BuildRequires:	perl(strict)
2ea4535
BuildRequires:	perl(warnings)
f73a66f
# Test
f73a66f
BuildRequires:	perl(Test::More) >= 0.47
f73a66f
# Runtime
Chris Weyl 1f8792b
6ef8178
# Remove under-specified dependencies
6ef8178
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Test::More)\\)$
6ef8178
Chris Weyl 696d188
%description
Chris Weyl 1f8792b
This module implements the C3 algorithm.  Most of the uses I have for C3
f73a66f
revolve around class building and metamodels but it could also be used for
Chris Weyl 1f8792b
things like dependency resolution as well since it tends to do such a nice
f73a66f
job of preserving local precedence orderings.
Chris Weyl 696d188
6ef8178
%package tests
e904d55
Summary:	Tests for %{name}
e904d55
Requires:	%{name} = %{?epoch:%{epoch}:}%{version}-%{release}
e904d55
Requires:	perl-Test-Harness
6ef8178
Requires:	perl(Test::More) >= 0.47
6ef8178
6ef8178
%description tests
6ef8178
Tests from %{name}. Execute them
6ef8178
with "%{_libexecdir}/%{name}/test".
6ef8178
Chris Weyl 696d188
%prep
Chris Weyl 696d188
%setup -q -n Algorithm-C3-%{version}
6ef8178
# Help generators to recognize Perl scripts
6ef8178
for F in t/*.t; do
6ef8178
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
6ef8178
    chmod +x "$F"
6ef8178
done
Chris Weyl 696d188
Chris Weyl 696d188
%build
2ea4535
perl Makefile.PL INSTALLDIRS=vendor
2ea4535
make %{?_smp_mflags}
Chris Weyl 696d188
Chris Weyl 696d188
%install
2ea4535
make pure_install DESTDIR=%{buildroot}
036e71a
find %{buildroot} -type f -name .packlist -delete
036e71a
%{_fixperms} -c %{buildroot}
e904d55
6ef8178
# Install tests
6ef8178
mkdir -p %{buildroot}%{_libexecdir}/%{name}
6ef8178
cp -a t %{buildroot}%{_libexecdir}/%{name}
6ef8178
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
6ef8178
#!/bin/sh
6ef8178
cd %{_libexecdir}/%{name} && exec prove -r -I . -j "$(getconf _NPROCESSORS_ONLN)"
6ef8178
EOF
6ef8178
chmod +x %{buildroot}%{_libexecdir}/%{name}/test
Chris Weyl 696d188
Chris Weyl 696d188
%check
2ea4535
make test
Chris Weyl 696d188
Chris Weyl 696d188
%files
e23ac08
%license LICENSE
e904d55
%doc Changes README
f73a66f
%{perl_vendorlib}/Algorithm/
036e71a
%{_mandir}/man3/Algorithm::C3.3*
Chris Weyl 696d188
6ef8178
%files tests
6ef8178
%{_libexecdir}/%{name}
6ef8178
Chris Weyl 696d188
%changelog
b5733d7
* Thu Mar 02 2023 Michal Josef Špaček <mspacek@redhat.com> - 0.11-10
b5733d7
- Update license to SPDX format
b5733d7
0fc6b2a
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-9
0fc6b2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
0fc6b2a
2d5a6e8
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-8
2d5a6e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2d5a6e8
34fe3ba
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-7
34fe3ba
- Perl 5.36 rebuild
34fe3ba
f496a46
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-6
f496a46
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
f496a46
6ef8178
* Tue Aug 03 2021 Michal Josef Špaček <mspacek@redhat.com> - 0.11-5
6ef8178
- Package tests
6ef8178
87bb86a
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-4
87bb86a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
87bb86a
c70cd42
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-3
c70cd42
- Perl 5.34 rebuild
c70cd42
2b8310f
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2
2b8310f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2b8310f
e23ac08
* Wed Nov 11 2020 Paul Howarth <paul@city-fan.org> - 0.11-1
e23ac08
- Update to 0.11
e23ac08
  - Set metadata for static dependency list and install
e23ac08
  - Move repository to GitHub
e23ac08
  - Minor test clean-ups
e23ac08
  - Fix Makefile.PL to work for authors in perl 5.26+
e23ac08
- Package new LICENSE file
e23ac08
27a4e6a
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-19
27a4e6a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
27a4e6a
6c06919
* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-18
6c06919
- Perl 5.32 rebuild
6c06919
f926f98
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-17
f926f98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f926f98
036e71a
* Tue Oct 15 2019 Paul Howarth <paul@city-fan.org> - 0.10-16
036e71a
- Spec tidy-up
036e71a
  - Use author-independent source URL
036e71a
  - Specify all build dependencies
036e71a
  - Drop redundant buildroot cleaning in %%install section
036e71a
  - Simplify find command using -delete
036e71a
  - Fix permissions verbosely
036e71a
20891d8
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-15
20891d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
20891d8
6330a8d
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-14
6330a8d
- Perl 5.30 rebuild
6330a8d
ba2d590
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-13
ba2d590
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ba2d590
4fca7ea
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-12
4fca7ea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4fca7ea
6dd14dc
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-11
6dd14dc
- Perl 5.28 rebuild
6dd14dc
a7772bc
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-10
a7772bc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a7772bc
6ff82bf
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-9
6ff82bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6ff82bf
9b28d9b
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-8
9b28d9b
- Perl 5.26 rebuild
9b28d9b
8004a52
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-7
8004a52
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8004a52
863628e
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-6
863628e
- Perl 5.24 rebuild
863628e
b66fa1d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-5
b66fa1d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
b66fa1d
8ca78fa
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-4
8ca78fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8ca78fa
69138a3
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-3
69138a3
- Perl 5.22 rebuild
69138a3
70502a4
* Thu Sep 04 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-2
70502a4
- Perl 5.20 rebuild
70502a4
4d86c73
* Thu Sep  4 2014 Paul Howarth <paul@city-fan.org> - 0.10-1
4d86c73
- Update to 0.10
4d86c73
  - Declare minimum version of perl as 5.6 in metadata
4d86c73
7a49a00
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.09-3
7a49a00
- Perl 5.20 rebuild
7a49a00
4ac24f8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.09-2
4ac24f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4ac24f8
2ea4535
* Mon Mar  3 2014 Paul Howarth <paul@city-fan.org> - 0.09-1
2ea4535
- Update to 0.09
2ea4535
  - Convert to use ExtUtils::MakeMaker using distar
2ea4535
  - Include repo and bugtracker metadata
2ea4535
- This release by HAARG -> update source URL
2ea4535
- Switch to ExtUtils::MakeMaker flow
2ea4535
d354a25
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-14
d354a25
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d354a25
71aac42
* Fri Jul 19 2013 Petr Pisar <ppisar@redhat.com> - 0.08-13
71aac42
- Perl 5.18 rebuild
71aac42
f65bc09
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-12
f65bc09
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f65bc09
1f6f751
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-11
1f6f751
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1f6f751
1f27dc7
* Tue Jun 12 2012 Petr Pisar <ppisar@redhat.com> - 0.08-10
1f27dc7
- Perl 5.16 rebuild
1f27dc7
f73a66f
* Mon Jan 16 2012 Paul Howarth <paul@city-fan.org> - 0.08-9
f73a66f
- Spec clean-up:
f73a66f
  - Make %%files list more explicit
f73a66f
  - Categorize build requirements for build/module/test
f73a66f
  - Don't use macros for commands
f73a66f
  - Use tabs
f73a66f
  - Fix typo in %%description
f73a66f
c614afa
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-8
c614afa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c614afa
b9673e0
* Mon Jun 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.08-7
b9673e0
- Perl mass rebuild
b9673e0
cbb047e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-6
cbb047e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
cbb047e
d687324
* Tue Dec 14 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.08-5
4d86c73
- Rebuild to fix problems with vendorarch/lib (#661697)
d687324
90bd9bc
* Thu Apr 29 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.08-4
90bd9bc
- Mass rebuild with perl-5.12.0
90bd9bc
a9f353d
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.08-3
f73a66f
- Rebuild against perl 5.10.1
a9f353d
ea99b23
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.08-2
ea99b23
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ea99b23
f73a66f
* Sun Jun 07 2009 Chris Weyl <cweyl@alumni.drew.edu> - 0.08-1
f73a66f
- Auto-update to 0.08 (by cpan-spec-update 0.01)
f73a66f
- Altered br on perl(Test::More) (0 => 0.47)
f73a66f
- Added a new br on perl(Carp) (version 0.01)
Chris Weyl 1f8792b
81552ef
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.07-3
81552ef
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
81552ef
f73a66f
* Tue Mar 04 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.07-2
f73a66f
- Rebuild for new perl
15605cd
f73a66f
* Thu May 31 2007 Chris Weyl <cweyl@alumni.drew.edu> - 0.07-1
f73a66f
- Update to 0.07
f73a66f
- Include t/ in doc
f73a66f
- Minor spec reworkage to deal with the once and future perl split
Chris Weyl 8180e51
f73a66f
* Tue Nov 21 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.06-1
f73a66f
- Update to 0.06
Chris Weyl 6068b8f
f73a66f
* Wed Sep 06 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-2
f73a66f
- Bump
Chris Weyl 688445b
f73a66f
* Tue Sep 05 2006 Chris Weyl <cweyl@alumni.drew.edu> - 0.05-1
f73a66f
- Specfile autogenerated by cpanspec 1.69.1