perl-Struct-Dumb/perl-Struct-Dumb.spec
2022-06-15 15:42:06 +08:00

46 lines
1.5 KiB
RPMSpec

Name: perl-Struct-Dumb
Version: 0.12
Release: 1
Summary: Make simple lightweight record-like structures
License: GPL+ or Artistic
URL: https://metacpan.org/release/Struct-Dumb
Source0: https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Struct-Dumb-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-interpreter perl-generators perl(Carp) perl(Module::Build) perl(strict)
BuildRequires: perl(Test::Fatal) perl(Test::More) perl(Test::Pod) perl(warnings)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
%{?perl_default_filter}
%description
Struct::Dumb creates record-like structure types, similar to the struct
keyword in C, C++ or C#, or Record in Pascal. An invocation of this module
will create a construction function which returns new object references
with the given field values. These references all respond to lvalue methods
that access or modify the values stored.
%prep
%autosetup -p1 -n Struct-Dumb-%{version}
%build
%{__perl} Build.PL installdirs=vendor
./Build
%install
./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
%{_fixperms} $RPM_BUILD_ROOT/*
%check
./Build test
%files
%doc Changes README
%license LICENSE
%{perl_vendorlib}/Struct
%{_mandir}/man3/Struct*
%changelog
* Tue Jun 14 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.12-1
- Upgrade to version 0.12
* Fri May 14 2021 zhangtao <zhangtao307@huawei.com> - 0.09-1
- package init