perl-Struct-Dumb/perl-Struct-Dumb.spec
cherry530 de908502dd Upgrade version to 1.14
Signed-off-by: cherry530 <707078654@qq.com>
2023-09-09 10:52:01 +08:00

52 lines
1.6 KiB
RPMSpec

Name: perl-Struct-Dumb
Version: 0.14
Release: 1
Summary: Make simple lightweight record-like structures
License: Artistic-1.0 OR GPL-1.0-or-later
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::Pod) perl(warnings)
BuildRequires: perl(Test2::V0)
BuildRequires: perl(Data::Dump)
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
* Fri Sep 08 2023 xu_ping <707078654@qq.com> - 0.14-1
- Upgrade to version 0.14
* 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