diff --git a/README.md b/README.md index 7c9dd3d..d25cf07 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # perl-JSON +JSON - JSON (JavaScript Object Notation) encoder/decoder + diff --git a/perl-JSON.spec b/perl-JSON.spec new file mode 100644 index 0000000..051d0ca --- /dev/null +++ b/perl-JSON.spec @@ -0,0 +1,76 @@ +%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0) + +Name: perl-JSON +Version: 2.61 +Release: 1mamba +Summary: JSON - JSON (JavaScript Object Notation) encoder/decoder +Group: System/Libraries/Perl +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.cpan.org +Source: http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-%{version}.tar.gz +License: GPL, Artistic +## AUTOBUILDREQ-BEGIN +BuildRequires: perl-devel +## AUTOBUILDREQ-END +BuildRequires: perl-devel +Requires: perl >= %perl_major_ver +Provides: perl(JSON::backportPP) +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +JSON - JSON (JavaScript Object Notation) encoder/decoder + +%prep +%setup -q -n JSON-%{version} +#%patch0 -p1 + +%build +%{__perl} Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor OPTIMIZE="%{optflags}" + +%make +%make test + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall_perl + +packlist=`find %{buildroot} -name .packlist` +[ -z "$packlist" ] && exit 1 || cat $packlist | \ + sed "s,%{buildroot},,g;s,.*/man/.*,&.gz,g" | \ + sort -u > .packlist && rm -f $packlist + +strid=`echo $packlist | sed 's,.*auto\(.*\)/.packlist,\1,'` +for dir in `find %{buildroot} -type d | grep $strid`; do + echo "%dir ${dir#%buildroot}" >> .packlist +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f .packlist +%defattr(-,root,root) +%doc README + +%changelog +* Thu Oct 24 2013 Automatic Build System 2.61-1mamba +- automatic update by autodist + +* Mon Jun 10 2013 Automatic Build System 2.59-1mamba +- automatic version update by autodist + +* Sun May 26 2013 Automatic Build System 2.58-1mamba +- automatic update by autodist + +* Sat Apr 06 2013 Automatic Build System 2.57-1mamba +- automatic version update by autodist + +* Mon Nov 12 2012 Silvan Calarco 2.53-3mamba +- perl 5.16 mass rebuild + +* Thu Jun 09 2011 Silvan Calarco 2.53-2mamba +- provide perl(JSON::backportPP) + +* Wed Jun 08 2011 Silvan Calarco 2.53-1mamba +- package created by autospec