66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
Name: perl-XML-Dumper
|
|
Version: 0.81
|
|
Release: 2mamba
|
|
Summary: XML::Dumper - Perl module for dumping Perl objects from/to XML
|
|
Group: System/Libraries/Perl
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
|
URL: https://www.cpan.org/
|
|
Source: http://search.cpan.org/CPAN/authors/id/M/MI/MIKEWONG/XML-Dumper-%{version}.tar.gz
|
|
License: GPL, Artistic
|
|
BuildRequires: perl(XML::Parser)
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
BuildRequires: perl(Test::More)
|
|
BuildRequires: perl-devel
|
|
Requires: perl >= %perl_major_ver
|
|
Requires: perl(XML::Parser)
|
|
|
|
%description
|
|
XML::Dumper dumps Perl data to XML format. XML::Dumper can also read
|
|
XML data that was previously dumped by the module and convert it back
|
|
to Perl. Perl objects are blessed back to their original packaging;
|
|
if the modules are installed on the system where the perl objects are
|
|
reconstituted from xml, they will behave as expected. Intuitively, if
|
|
the perl objects are converted and reconstituted in the same
|
|
environment, all should be well.
|
|
|
|
%prep
|
|
%setup -q -n XML-Dumper-%{version}
|
|
|
|
|
|
iconv -f iso-8859-1 -t utf-8 < README > README_
|
|
mv -f "README_" "READMEe"
|
|
|
|
|
|
%build
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
%make
|
|
%make test
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall_perl
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
chmod -R u+w %{buildroot}/*
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{perl_vendorlib}/*
|
|
%{_mandir}/man3/*.3pm.gz
|
|
%doc Changes README
|
|
|
|
%changelog
|
|
* Wed Sep 07 2022 Automatic Build System <autodist@mambasoft.it> 0.81-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Mon Feb 21 2011 gil <puntogil@libero.it> 0.81-1mamba
|
|
- package created by autospec
|