Spec clean-up
- Classify buildreqs by usage - Make %files list more explicit - Use %license - Simplify find command using -delete
This commit is contained in:
parent
a398a861bf
commit
764e3728ba
@ -1,21 +1,30 @@
|
|||||||
Name: perl-DateTime-Format-IBeat
|
Name: perl-DateTime-Format-IBeat
|
||||||
Version: 0.161
|
Version: 0.161
|
||||||
Release: 24%{?dist}
|
Release: 25%{?dist}
|
||||||
Summary: Format times in .beat notation
|
Summary: Format times in .beat notation
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/DateTime-Format-IBeat
|
URL: http://search.cpan.org/dist/DateTime-Format-IBeat
|
||||||
Source0: http://backpan.perl.org/authors/id/E/EM/EMARTIN/DateTime-Format-IBeat-0.161.tar.gz
|
Source0: http://backpan.perl.org/authors/id/E/EM/EMARTIN/DateTime-Format-IBeat-0.161.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: perl(Class::ISA)
|
# Build
|
||||||
BuildRequires: perl(DateTime) >= 0.18, perl(Test::More) >= 0.47
|
BuildRequires: coreutils
|
||||||
|
BuildRequires: findutils
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: perl
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||||
|
# Module
|
||||||
|
BuildRequires: perl(Carp)
|
||||||
|
BuildRequires: perl(DateTime) >= 0.18
|
||||||
|
BuildRequires: perl(strict)
|
||||||
|
BuildRequires: perl(vars)
|
||||||
|
BuildRequires: perl(warnings)
|
||||||
|
# Test Suite
|
||||||
|
BuildRequires: perl(Test::More) >= 0.47
|
||||||
|
# Optional Tests
|
||||||
BuildRequires: perl(Test::Pod) >= 1.00
|
BuildRequires: perl(Test::Pod) >= 1.00
|
||||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
# Dependencies
|
||||||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||||
%{?perl_default_filter}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
No Time Zones, No Geographical Borders
|
No Time Zones, No Geographical Borders
|
||||||
@ -25,35 +34,35 @@ day into 1000 beats. One Swatch beat is the equivalent of 1 minute 26.4
|
|||||||
seconds. That means that 12 noon in the old time system is the equivalent of
|
seconds. That means that 12 noon in the old time system is the equivalent of
|
||||||
500 Swatch .beats.
|
500 Swatch .beats.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n DateTime-Format-IBeat-%{version}
|
%setup -q -n DateTime-Format-IBeat-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
# American English...
|
|
||||||
mv LICENCE LICENSE
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
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
|
||||||
chmod -R u+w %{buildroot}/*
|
%{_fixperms} %{buildroot}
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc Artistic COPYING LICENSE Changes README
|
%license Artistic COPYING LICENCE
|
||||||
%{perl_vendorlib}/*
|
%doc Changes README
|
||||||
%{_mandir}/man3/*.3*
|
%{perl_vendorlib}/DateTime/
|
||||||
|
%{_mandir}/man3/DateTime::Format::IBeat.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Mar 11 2016 Paul Howarth <paul@city-fan.org> - 0.161-25
|
||||||
|
- Spec clean-up
|
||||||
|
- Classify buildreqs by usage
|
||||||
|
- Make %%files list more explicit
|
||||||
|
- Use %%license
|
||||||
|
- Simplify find command using -delete
|
||||||
|
|
||||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.161-24
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.161-24
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user