diff --git a/JSON-Parse-0.61.tar.gz b/JSON-Parse-0.61.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..edad054cf066951fa63694b43d9dfff8f253f723 Binary files /dev/null and b/JSON-Parse-0.61.tar.gz differ diff --git a/perl-JSON-Parse.spec b/perl-JSON-Parse.spec new file mode 100644 index 0000000000000000000000000000000000000000..8efc86202e97e089820c856b9cd4afbc61b7c976 --- /dev/null +++ b/perl-JSON-Parse.spec @@ -0,0 +1,76 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-JSON-Parse +Version: 0.61 +Release: 1 +Summary: Parse JSON +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/JSON-Parse/ +Source0: http://www.cpan.org/authors/id/B/BK/BKB/JSON-Parse-%{version}.tar.gz +BuildRequires: perl >= 0:5.008009 +BuildRequires: perl-generators +BuildRequires: perl(Carp) +BuildRequires: perl(ExtUtils::MakeMaker) +Requires: perl(Carp) +%description +A module for parsing JSON. (JSON means "JavaScript Object Notation" and it +is specified in "RFC 8259".) +%package help +Summary : Parse JSON +Provides: perl-JSON-Parse-doc +%description help +A module for parsing JSON. (JSON means "JavaScript Object Notation" and it +is specified in "RFC 8259".) +%prep +%setup -q -n JSON-Parse-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +%{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/' Makefile +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; + +%{_fixperms} $RPM_BUILD_ROOT/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check || : +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes CONTRIBUTING.md META.json README +%{perl_vendorarch}/auto/* +%{perl_vendorarch}/JSON* +%files help +%{_mandir}/* + +%changelog +* Sun May 23 2021 Perl_Bot 0.61-1 +- Specfile autogenerated by Perl_Bot