forked from pool/perl-JSON-Parse
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-JSON-Parse?expand=0&rev=1
48 lines
1.2 KiB
RPMSpec
48 lines
1.2 KiB
RPMSpec
# vim: set sw=4 ts=4 et nu:
|
|
|
|
Name: perl-JSON-Parse
|
|
Version: 0.07
|
|
Release: 0
|
|
Summary: Convert JSON into a Perl variable
|
|
Source: http://search.cpan.org/CPAN/authors/id/B/BK/BKB/JSON-Parse-%{version}.tar.gz
|
|
URL: http://search.cpan.org/dist/JSON-Parse
|
|
Group: Development/Libraries/Perl
|
|
License: GNU General Public License version 2 or later or Artistic (GPLv2+ or Artistic)
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
|
%{perl_requires}
|
|
BuildRequires: gcc glibc-devel bison flex
|
|
BuildRequires: perl-macros
|
|
BuildRequires: make
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
%description
|
|
Convert JSON (JavaScript Object Notation) into Perl.
|
|
|
|
%prep
|
|
%setup -q -n "JSON-Parse-%{version}"
|
|
%__sed -i '/^auto_install/d' Makefile.PL
|
|
|
|
%build
|
|
%__perl Makefile.PL PREFIX="%{_prefix}"
|
|
%__make %{?_smp_flags}
|
|
|
|
%install
|
|
%perl_make_install
|
|
%perl_process_packlist
|
|
|
|
%check
|
|
%__make test
|
|
|
|
%clean
|
|
%{?buildroot:%__rm -rf "%{buildroot}"}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc Changes
|
|
%dir %{perl_vendorarch}/JSON
|
|
%{perl_vendorarch}/JSON/Parse.pm
|
|
%dir %{perl_vendorarch}/auto/JSON
|
|
%{perl_vendorarch}/auto/JSON/Parse
|
|
%doc %{perl_man3dir}/JSON::Parse.%{perl_man3ext}%{ext_man}
|
|
|