Projects
Eulaceura:Factory
perl-CBOR-XS
_service:obs_scm:perl-CBOR-XS.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:perl-CBOR-XS.spec of Package perl-CBOR-XS
Name: perl-CBOR-XS Version: 1.87 Release: 1 Summary: Concise Binary Object Representation (CBOR) # COPYING: GPLv3+ ## Replaced by system header-only package # ecb.h: BSD or GPLv2+ License: GPLv3+ and (BSD or GPLv2+) URL: https://metacpan.org/release/CBOR-XS Source0: https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/CBOR-XS-%{version}.tar.gz BuildRequires: coreutils BuildRequires: findutils # gcc for standard header files BuildRequires: gcc #BuildRequires: libecb-static BuildRequires: make BuildRequires: perl-interpreter BuildRequires: perl-devel BuildRequires: perl-generators BuildRequires: perl(Canary::Stability) BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 # Run-time: BuildRequires: perl(common::sense) BuildRequires: perl(Exporter) BuildRequires: perl(Math::BigFloat) BuildRequires: perl(Math::BigInt) BuildRequires: perl(Math::BigRat) BuildRequires: perl(Time::Piece) BuildRequires: perl(Types::Serialiser) BuildRequires: perl(URI) BuildRequires: perl(XSLoader) # Tests: BuildRequires: perl(Data::Dumper) BuildRequires: perl(Math::BigInt::FastCalc) Requires: perl(Math::BigFloat) Requires: perl(Math::BigInt) Requires: perl(Math::BigRat) Requires: perl(Time::Piece) Requires: perl(URI) Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: perl-Test-Harness %description This module converts Perl data structures to the Concise Binary Object Representation (CBOR) and vice versa. CBOR is a fast binary serialization format that aims to use an (almost) superset of the JSON data model, i.e. when you can represent something useful in JSON, you should be able to represent it in CBOR. %prep %autosetup -n CBOR-XS-%{version} # Remove bundled libecb #rm ecb.h #perl -i -ne 'print $_ unless m{^ecb\.h}' MANIFEST %build perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS" </dev/null %{make_build} %install %{make_install} find %{buildroot} -type f -name '*.bs' -size 0 -delete %{_fixperms} %{buildroot}/* # Install tests mkdir -p %{buildroot}%{_libexecdir}/%{name} cp -a t %{buildroot}%{_libexecdir}/%{name} cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF' #!/bin/sh cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)" EOF chmod +x %{buildroot}%{_libexecdir}/%{name}/test %check export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}') make test %files %license COPYING %doc Changes README %{perl_vendorarch}/auto/* %{perl_vendorarch}/CBOR* %{_mandir}/man3/* %{_libexecdir}/%{name} %changelog * Wed Apr 10 2024 wangshuo <wangshuo@kylinos.cn> - 1.87-1 - Upgrade to version 1.87 - new feature: allow_weak_cycles. * Mon Jul 10 2023 leeffo <liweiganga@uniontech.com> - 1.86-1 - init package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2