You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.3 KiB
80 lines
2.3 KiB
9 years ago
|
Name: perl-CBOR-XS
|
||
|
Version: 1.3
|
||
|
Release: 1%{?dist}
|
||
|
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+)
|
||
|
Group: Development/Libraries
|
||
|
URL: http://search.cpan.org/dist/CBOR-XS/
|
||
|
Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/CBOR-XS-%{version}.tar.gz
|
||
|
# Use system libecb
|
||
|
Patch0: CBOR-XS-1.3-Include-ecb.h-from-system.patch
|
||
|
# Silent compiler warnings
|
||
|
Patch1: CBOR-XS-1.3-Cast-char-and-U8-where-needed.patch
|
||
|
BuildRequires: coreutils
|
||
|
BuildRequires: findutils
|
||
|
# gcc for standard header files
|
||
|
BuildRequires: gcc
|
||
|
BuildRequires: libecb-static
|
||
|
BuildRequires: make
|
||
|
BuildRequires: perl
|
||
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
BuildRequires: sed
|
||
|
# Run-time:
|
||
|
BuildRequires: perl(common::sense)
|
||
|
BuildRequires: perl(Exporter)
|
||
|
BuildRequires: perl(Math::BigFloat)
|
||
|
BuildRequires: perl(Math::BigInt)
|
||
|
BuildRequires: perl(Time::Piece)
|
||
|
BuildRequires: perl(Types::Serialiser)
|
||
|
BuildRequires: perl(URI)
|
||
|
BuildRequires: perl(XSLoader)
|
||
|
# Tests:
|
||
|
BuildRequires: perl(Data::Dumper)
|
||
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||
|
Requires: perl(Math::BigFloat)
|
||
|
Requires: perl(Math::BigInt)
|
||
|
Requires: perl(Time::Piece)
|
||
|
Requires: perl(URI)
|
||
|
|
||
|
%description
|
||
|
This module converts Perl data structures to the Concise Binary Object
|
||
|
Representation (CBOR) and vice versa. CBOR is a fast binary serialisation
|
||
|
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
|
||
|
%setup -q -n CBOR-XS-%{version}
|
||
|
%patch0 -p1
|
||
|
%patch1 -p1
|
||
|
# Remove bundled libecb
|
||
|
rm ecb.h
|
||
|
sed -i -e '/^ecb\.h/d' MANIFEST
|
||
|
|
||
|
%build
|
||
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||
|
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
|
||
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
||
|
|
||
|
%check
|
||
|
make test
|
||
|
|
||
|
%files
|
||
|
%license COPYING
|
||
|
%doc Changes README
|
||
|
%{perl_vendorarch}/auto/*
|
||
|
%{perl_vendorarch}/CBOR*
|
||
|
%{_mandir}/man3/*
|
||
|
|
||
|
%changelog
|
||
|
* Tue Sep 29 2015 Petr Pisar <ppisar@redhat.com> 1.3-1
|
||
|
- Specfile autogenerated by cpanspec 1.78.
|