Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:Perl
perl-JSON
perl-JSON.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-JSON.spec of Package perl-JSON
# # spec file for package perl-JSON # # norootforbuild %define real_name JSON %define perl_vendorlib %(eval "`perl -V:installvendorlib`"; echo $installvendorlib) %define perl_vendorarch %(eval "`perl -V:installvendorarch`"; echo $installvendorarch) %define perl_archlib %(eval "`perl -V:archlib`"; echo $archlib) %define perl_privlib %(eval "`perl -V:privlib`"; echo $privlib) %define maketest 0 Name: perl-%{real_name} Summary: JSON - JSON (JavaScript Object Notation) encoder/decoder License: Artistic License Group: Development/Libraries/Perl Url: http://search.cpan.org/~makamaka/JSON-2.90/ Version: 2.90 Release: 1 Source: %{real_name}-%{version}.tar.gz Source1: filter-requires-%{real_name}.sh Buildarch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define _use_internal_dependency_generator 0 %define __find_requires %{SOURCE1} BuildRequires: perl(ExtUtils::MakeMaker) %if 0%{?fedora_version} BuildRequires: perl-devel %endif %description ************************** CAUTION ******************************** * This is 'JSON module version 2' and there are many differences * * to version 1.xx * * Please check your applications useing old version. * * See to 'INCOMPATIBLE CHANGES TO OLD VERSION' * ******************************************************************* JSON (JavaScript Object Notation) is a simple data format. See to <http://www.json.org/> and "RFC4627"(<http://www.ietf.org/rfc/rfc4627.txt>). This module converts Perl data structures to JSON and vice versa using either JSON::XS or JSON::PP. JSON::XS is the fastest and most proper JSON module on CPAN which must be compiled and installed in your environment. JSON::PP is a pure-Perl module which is bundled in this distribution and has a strong compatibility to JSON::XS. This module try to use JSON::XS by default and fail to it, use JSON::PP instead. So its features completely depend on JSON::XS or JSON::PP. See to "BACKEND MODULE DECISION". To distinguish the module name 'JSON' and the format type JSON, the former is quoted by C<> (its results vary with your using media), and the latter is left just as it is. Module name : "JSON" Format type : JSON %prep %setup -q -n %{real_name}-%{version} chmod -R u+w %{_builddir}/%{real_name}-%{version} %{__chmod} +x %{SOURCE1} %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %build CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '` %{__make} %check %if %maketest %{__make} test %endif %install %if 0%{?suse_version} %perl_make_install %perl_process_packlist %else make DESTDIR=$RPM_BUILD_ROOT install_vendor find $RPM_BUILD_ROOT/usr -type f -name perllocal.pod |xargs -i rm -f {} find $RPM_BUILD_ROOT/usr -type d -depth -exec rmdir {} \; 2>/dev/null %endif find %{buildroot} -name "perllocal.pod" -o -name ".packlist" -o -name "*.bs" |xargs -i rm -f {} %files %defattr(-,root,root) %doc Changes README MANIFEST %doc %{_mandir}/man?/* %{perl_vendorlib}/JSON.pm %{perl_vendorlib}/JSON %if 0%{?suse_version} /var/adm/perl-modules/%{name} %endif %changelog * Thu Mar 20 2014 Holger Manthey <holger.manthey@bertelsmann.de> - add filter-requires-JSON.sh to filter perl(JSON::backportPP) * Thu Mar 13 2014 Holger Manthey <holger.manthey@bertelsmann.de> - Update to 2.90 * Thu Feb 18 2010 bom03@csbuild - Initial build.
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor