Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:snagview:perl
perl-JSON
perl-JSON.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File perl-JSON.spec of Package perl-JSON
# # spec file for module JSON # #SuSe specific Part %if %{?sles_version:1}0 %define module_dir /usr/lib/perl5/ %define man3_dir /usr/share/man/man3/ %define auto_dir /usr/lib/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/auto/ #suse prefers to install additional modules in a subdir (below module_dir) %define sub_dir /5.10.0/ Requires: perl-base %endif #RedHat specific Part %if %{?rhel_version:1}0 %define module_dir /usr/share/perl5/ %define man3_dir /usr/share/man/man3/ %define auto_dir /usr/lib64/perl5/vendor_perl/auto/ #no subdir for redhat %define sub_dir / BuildRequires: perl-ExtUtils-MakeMaker %endif %if %{?centos_version:1}0 %define init 1 BuildRequires: perl-ExtUtils-MakeMaker perl-version-new requires: perl-version-new %define module_dir /usr/share/perl5 %define sub_dir / %define man3_dir /usr/share/man/man3 %define auto_dir /usr/lib64/perl5/vendor_perl/auto/ %endif #Fedora specific Part %if %{?fedora_version:1}0 %endif #all Distros %define module_name JSON %define module_version 2.90 Name: perl-%{module_name} Version: %{module_version} Release: 0 License: This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Summary: JSON - JSON (JavaScript Object Notation) encoder/decoder Url: https://metacpan.org/pod/JSON Group: perl/modules Source: %{module_name}-%{module_version}.tar.gz BuildRequires: perl Requires: perl BuildRoot: %{_tmppath}/%{name}-%{version}-build %description %prep cd %{_builddir} tar -xf %{_sourcedir}/%{module_name}-%{module_version}.tar.gz %build cd %{_builddir}/%{module_name}-%{module_version} perl Makefile.PL INSTALLMAN3DIR=%{man3_dir} #osc prevents using site_perl #perl -i -pe 's{/site_perl/}{/vendor_perl/}g' Makefile make %{?_smp_mflags} %install cd %{_builddir}/%{module_name}-%{module_version} make DESTDIR=%{buildroot} pure_vendor_install perl -i -pe "s{%{buildroot}}{}g" %{buildroot}%{auto_dir}JSON/.packlist find %{buildroot} -type f -name "perllocal.pod" -exec rm -f {} \; if [ -f %{buildroot}/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/perllocal.pod ]; then rm -rf %{buildroot}/usr/lib/perl5/5.10.0/x86_64-linux-thread-multi/perllocal.pod fi if [ -f %{buildroot}/usr/lib64/perl5/perllocal.pod ]; then rm -rf %{buildroot}/usr/lib64/perl5/perllocal.pod fi %files %defattr(-,root,root) %dir %{module_dir}/vendor_perl/%{sub_dir}JSON/ %dir %{module_dir}/vendor_perl/%{sub_dir}JSON/backportPP/ %dir %{auto_dir}/JSON %{module_dir}/vendor_perl/%{sub_dir}/JSON.pm %{module_dir}/vendor_perl/%{sub_dir}JSON/backportPP.pm %{module_dir}/vendor_perl/%{sub_dir}JSON/backportPP/Boolean.pm %{module_dir}/vendor_perl/%{sub_dir}JSON/backportPP/Compat5005.pm %{module_dir}/vendor_perl/%{sub_dir}JSON/backportPP/Compat5006.pm %{auto_dir}/JSON/.packlist %{man3_dir}/JSON.3pm.gz %{man3_dir}/JSON::backportPP.3pm.gz %{man3_dir}/JSON::backportPP::Boolean.3pm.gz %{man3_dir}/JSON::backportPP::Compat5005.3pm.gz %{man3_dir}/JSON::backportPP::Compat5006.3pm.gz
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