|
|
28fe4e3 |
Name: perl-Math-Calc-Units
|
|
|
28fe4e3 |
Version: 1.07
|
|
|
d6b4883 |
Release: 39%{?dist}
|
|
|
28fe4e3 |
Summary: Human-readable unit-aware calculator
|
|
|
28fe4e3 |
License: GPLv2 or Artistic
|
|
|
6a6d7e1 |
URL: https://metacpan.org/release/Math-Calc-Units
|
|
|
bfaa31f |
Source0: https://cpan.metacpan.org/modules/by-module/Math/Math-Calc-Units-%{version}.tar.gz
|
|
|
28fe4e3 |
BuildArch: noarch
|
|
|
c051180 |
# Module Build
|
|
|
c051180 |
BuildRequires: coreutils
|
|
|
c051180 |
BuildRequires: findutils
|
|
|
c051180 |
BuildRequires: make
|
|
|
013e23d |
BuildRequires: perl-generators
|
|
|
bfaa31f |
BuildRequires: perl-interpreter
|
|
|
c051180 |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
c051180 |
# Module Runtime
|
|
|
28fe4e3 |
BuildRequires: perl(base)
|
|
|
28fe4e3 |
BuildRequires: perl(Carp)
|
|
|
28fe4e3 |
BuildRequires: perl(constant)
|
|
|
28fe4e3 |
BuildRequires: perl(Exporter)
|
|
|
c051180 |
BuildRequires: perl(strict)
|
|
|
c051180 |
BuildRequires: perl(Time::Local)
|
|
|
c051180 |
BuildRequires: perl(vars)
|
|
|
c051180 |
# Script Runtime
|
|
|
28fe4e3 |
BuildRequires: perl(File::Basename)
|
|
|
28fe4e3 |
BuildRequires: perl(Getopt::Long)
|
|
|
c051180 |
BuildRequires: perl(warnings)
|
|
|
c051180 |
# Test Suite
|
|
|
28fe4e3 |
BuildRequires: perl(Test::More)
|
|
|
c051180 |
# Optional Tests
|
|
|
c051180 |
BuildRequires: perl(Test::Pod) >= 1.00
|
|
|
c051180 |
# Dependencies
|
|
|
28fe4e3 |
|
|
|
28fe4e3 |
# Remove unwanted provide if we have rpm 4.9 or later
|
|
|
28fe4e3 |
%global __provides_exclude ^perl\\(Parse::Yapp::Driver\\)
|
|
|
4731735 |
|
|
|
4731735 |
%description
|
|
|
4731735 |
Math::Calc::Units is a simple calculator that keeps track of units. It
|
|
|
4731735 |
currently handles combinations of byte sizes and duration only, although
|
|
|
4731735 |
adding any other multiplicative types is easy. Any unknown type is treated
|
|
|
4731735 |
as a unique user type (with some effort to map English plurals to their
|
|
|
4731735 |
singular forms).
|
|
|
4731735 |
|
|
|
4731735 |
%prep
|
|
|
28fe4e3 |
%setup -q -n Math-Calc-Units-%{version}
|
|
|
4731735 |
|
|
|
4731735 |
%build
|
|
|
28fe4e3 |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
4731735 |
make %{?_smp_mflags}
|
|
|
4731735 |
|
|
|
4731735 |
%install
|
|
|
28fe4e3 |
make pure_install DESTDIR=%{buildroot}
|
|
|
bfaa31f |
find %{buildroot} -type f -name .packlist -delete
|
|
|
bfaa31f |
%{_fixperms} -c %{buildroot}
|
|
|
4731735 |
|
|
|
28fe4e3 |
# Remove file we don't need packaging
|
|
|
28fe4e3 |
rm %{buildroot}%{perl_vendorlib}/Math/Calc/Units/Grammar.y
|
|
|
4731735 |
|
|
|
4731735 |
%check
|
|
|
4731735 |
make test
|
|
|
4731735 |
|
|
|
4731735 |
%files
|
|
|
c051180 |
%license Artistic.html COPYING LICENSE
|
|
|
c051180 |
%doc Changes README
|
|
|
4731735 |
%{_bindir}/ucalc
|
|
|
28fe4e3 |
%{perl_vendorlib}/Math/
|
|
|
c051180 |
%{_mandir}/man3/Math::Calc::Units.3*
|
|
|
4731735 |
|
|
|
4731735 |
%changelog
|
|
|
d6b4883 |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-39
|
|
|
d6b4883 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
d6b4883 |
|
|
|
966e90a |
* Mon Jul 25 2022 Paul Howarth <paul@city-fan.org> - 1.07-38
|
|
|
966e90a |
- Spec clean-up
|
|
|
966e90a |
- Always assume we have rpm 4.9 or later
|
|
|
966e90a |
- Use %%license unconditionally
|
|
|
966e90a |
|
|
|
68f474e |
* Mon May 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-37
|
|
|
68f474e |
- Perl 5.36 rebuild
|
|
|
68f474e |
|
|
|
93ebc71 |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-36
|
|
|
93ebc71 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
93ebc71 |
|
|
|
6e53607 |
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-35
|
|
|
6e53607 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
6e53607 |
|
|
|
be28652 |
* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-34
|
|
|
be28652 |
- Perl 5.34 rebuild
|
|
|
be28652 |
|
|
|
de91615 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-33
|
|
|
de91615 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
de91615 |
|
|
|
4894fca |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-32
|
|
|
4894fca |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
4894fca |
|
|
|
c852562 |
* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-31
|
|
|
c852562 |
- Perl 5.32 rebuild
|
|
|
c852562 |
|
|
|
76333cf |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-30
|
|
|
76333cf |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
76333cf |
|
|
|
36f71a3 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-29
|
|
|
36f71a3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
36f71a3 |
|
|
|
df3134a |
* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-28
|
|
|
df3134a |
- Perl 5.30 rebuild
|
|
|
df3134a |
|
|
|
667137e |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-27
|
|
|
667137e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
667137e |
|
|
|
bfaa31f |
* Tue Jan 29 2019 Paul Howarth <paul@city-fan.org> - 1.07-26
|
|
|
bfaa31f |
- Spec tidy-up
|
|
|
bfaa31f |
- Drop redundant buildroot cleaning in %%install section
|
|
|
bfaa31f |
- Drop redundant explicit %%clean section
|
|
|
bfaa31f |
- Simplify find command using -delete
|
|
|
bfaa31f |
- Use author-independent source URL
|
|
|
bfaa31f |
|
|
|
ab0466a |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-25
|
|
|
ab0466a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
ab0466a |
|
|
|
4a00380 |
* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-24
|
|
|
4a00380 |
- Perl 5.28 rebuild
|
|
|
4a00380 |
|
|
|
474285c |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-23
|
|
|
474285c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
474285c |
|
|
|
6bb6274 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-22
|
|
|
6bb6274 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
6bb6274 |
|
|
|
70abd16 |
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-21
|
|
|
70abd16 |
- Perl 5.26 rebuild
|
|
|
70abd16 |
|
|
|
cc16de2 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-20
|
|
|
cc16de2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
cc16de2 |
|
|
|
24edc8f |
* Fri Jul 22 2016 Petr Pisar <ppisar@redhat.com> - 1.07-19
|
|
|
24edc8f |
- Adjust RPM version detection to SRPM build root without perl
|
|
|
24edc8f |
|
|
|
9dbf8fa |
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-18
|
|
|
9dbf8fa |
- Perl 5.24 rebuild
|
|
|
9dbf8fa |
|
|
|
0d14f23 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.07-17
|
|
|
0d14f23 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
0d14f23 |
|
|
|
c051180 |
* Tue Jan 19 2016 Paul Howarth <paul@city-fan.org> - 1.07-16
|
|
|
c051180 |
- Classify buildreqs by usage
|
|
|
c051180 |
- Prefer %%global over %%define
|
|
|
c051180 |
- Use %%license where possible
|
|
|
c051180 |
|
|
|
df649ce |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-15
|
|
|
df649ce |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
df649ce |
|
|
|
b4816a1 |
* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-14
|
|
|
b4816a1 |
- Perl 5.22 rebuild
|
|
|
b4816a1 |
|
|
|
6596a76 |
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-13
|
|
|
6596a76 |
- Perl 5.20 rebuild
|
|
|
6596a76 |
|
|
|
e66333d |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-12
|
|
|
e66333d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
e66333d |
|
|
|
999c228 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-11
|
|
|
999c228 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
999c228 |
|
|
|
90e0143 |
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 1.07-10
|
|
|
90e0143 |
- Perl 5.18 rebuild
|
|
|
90e0143 |
|
|
|
a099b6d |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-9
|
|
|
a099b6d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
a099b6d |
|
|
|
b07d4ab |
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-8
|
|
|
b07d4ab |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
b07d4ab |
|
|
|
02682da |
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 1.07-7
|
|
|
02682da |
- Perl 5.16 rebuild
|
|
|
02682da |
|
|
|
28fe4e3 |
* Sun Apr 1 2012 Paul Howarth <paul@city-fan.org> - 1.07-6
|
|
|
28fe4e3 |
- License is "GPLv2 or Artistic", not "GPLv2+ or Artistic"
|
|
|
28fe4e3 |
- BR: perl(Test::Pod) for additional test coverage
|
|
|
28fe4e3 |
- BR: Perl core modules that might be dual-lived
|
|
|
28fe4e3 |
- Make %%files list more explicit
|
|
|
28fe4e3 |
- Drop %%defattr, redundant since rpm 4.4
|
|
|
28fe4e3 |
- Fix provides filter to work with rpm ≥ 4.9
|
|
|
28fe4e3 |
- Don't need to remove empty directories from buildroot
|
|
|
28fe4e3 |
- Use DESTDIR rather than PERL_INSTALL_ROOT
|
|
|
28fe4e3 |
- Don't use macros for commands
|
|
|
28fe4e3 |
- Reinstate buildroot definition and cleaning for EPEL-5 compatibility
|
|
|
28fe4e3 |
- Use tabs
|
|
|
28fe4e3 |
|
|
|
d757da2 |
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-5
|
|
|
d757da2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
d757da2 |
|
|
|
37617c0 |
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.07-4
|
|
|
37617c0 |
- Perl mass rebuild
|
|
|
37617c0 |
|
|
|
2e28bea |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-3
|
|
|
2e28bea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
2e28bea |
|
|
|
3175596 |
* Mon Dec 20 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.07-2
|
|
|
28fe4e3 |
- Rebuild to fix problems with vendorarch/lib (#661697)
|
|
|
3175596 |
|
|
|
28fe4e3 |
* Thu Jun 24 2010 Ruben Kerkhof <ruben@rubenkerkhof.com> - 1.07-1
|
|
|
0f0d61c |
- Upstream released new version
|
|
|
0f0d61c |
|
|
|
c0b0052 |
* Mon May 03 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.06-4
|
|
|
c0b0052 |
- Mass rebuild with perl-5.12.0
|
|
|
c0b0052 |
|
|
|
d9356a3 |
* Mon Dec 7 2009 Stepan Kasal <skasal@redhat.com> - 1.06-3
|
|
|
28fe4e3 |
- Rebuild against perl 5.10.1
|
|
|
d9356a3 |
|
|
|
28fe4e3 |
* Wed Jul 29 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> - 1.06-2
|
|
|
4731735 |
- Review fixes (#513874)
|
|
|
4731735 |
|
|
|
4731735 |
* Sun Jul 26 2009 Ruben Kerkhof <ruben@rubenkerkhof.com> - 1.06-1
|
|
|
4731735 |
- Initial import
|