Spec file clean-up
- package LICENSE file - run test suite even when bootstrapping, as it should still pass - run release tests too - enhance %description so it makes sense - BR: perl(Test::More)
This commit is contained in:
parent
f5994a9a4f
commit
9bc1700736
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
Data-OptList-0.106.tar.gz
|
/Data-OptList-[0-9.]*.tar.gz
|
||||||
/Data-OptList-0.107.tar.gz
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Name: perl-Data-OptList
|
Name: perl-Data-OptList
|
||||||
Summary: Parse and validate simple name/value option pairs
|
Summary: Parse and validate simple name/value option pairs
|
||||||
Version: 0.107
|
Version: 0.107
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz
|
Source0: http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Data-OptList-%{version}.tar.gz
|
||||||
@ -13,6 +13,7 @@ BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
|
|||||||
BuildRequires: perl(List::Util)
|
BuildRequires: perl(List::Util)
|
||||||
BuildRequires: perl(Params::Util)
|
BuildRequires: perl(Params::Util)
|
||||||
BuildRequires: perl(Sub::Install) >= 0.921
|
BuildRequires: perl(Sub::Install) >= 0.921
|
||||||
|
BuildRequires: perl(Test::More)
|
||||||
%if !%{defined perl_bootstrap}
|
%if !%{defined perl_bootstrap}
|
||||||
BuildRequires: perl(Test::Pod)
|
BuildRequires: perl(Test::Pod)
|
||||||
%endif
|
%endif
|
||||||
@ -21,9 +22,26 @@ BuildRequires: perl(Test::Pod)
|
|||||||
%{?perl_default_subpackage_tests}
|
%{?perl_default_subpackage_tests}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Hashes are great for storing named data, but if you want more than one
|
Hashes are great for storing named data, but if you want more than one entry
|
||||||
entry for a name, you have to use a list of pairs. Even then, this is
|
for a name, you have to use a list of pairs. Even then, this is really boring
|
||||||
really boring to write:
|
to write:
|
||||||
|
|
||||||
|
$values = [
|
||||||
|
foo => undef,
|
||||||
|
bar => undef,
|
||||||
|
baz => undef,
|
||||||
|
xyz => { ... },
|
||||||
|
];
|
||||||
|
|
||||||
|
With Data::OptList, you can do this instead:
|
||||||
|
|
||||||
|
$values = Data::OptList::mkopt([
|
||||||
|
qw(foo bar baz),
|
||||||
|
xyz => { ... },
|
||||||
|
]);
|
||||||
|
|
||||||
|
This works by assuming that any defined scalar is a name and any reference
|
||||||
|
following a name is its value.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n Data-OptList-%{version}
|
%setup -q -n Data-OptList-%{version}
|
||||||
@ -37,20 +55,24 @@ make pure_install DESTDIR=%{buildroot}
|
|||||||
|
|
||||||
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
|
||||||
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||||
|
%{_fixperms} %{buildroot}
|
||||||
%{_fixperms} %{buildroot}/*
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if !%{defined perl_bootstrap}
|
make test RELEASE_TESTING=1
|
||||||
make test
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc Changes README
|
%doc Changes LICENSE README
|
||||||
%{perl_vendorlib}/*
|
%{perl_vendorlib}/Data/
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/Data::OptList.3pm*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 11 2012 Paul Howarth <paul@city-fan.org> - 0.107-3
|
||||||
|
- package LICENSE file
|
||||||
|
- run test suite even when bootstrapping, as it should still pass
|
||||||
|
- run release tests too
|
||||||
|
- enhance %%description so it makes sense
|
||||||
|
- BR: perl(Test::More)
|
||||||
|
|
||||||
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.107-2
|
* Tue Jun 28 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.107-2
|
||||||
- Perl mass rebuild
|
- Perl mass rebuild
|
||||||
- add perl_bootstrap macro
|
- add perl_bootstrap macro
|
||||||
|
Loading…
Reference in New Issue
Block a user