|
|
@ -1,15 +1,13 @@
|
|
|
|
%global cpan_version 1.6
|
|
|
|
|
|
|
|
Name: perl-CBOR-XS
|
|
|
|
Name: perl-CBOR-XS
|
|
|
|
Version: %(echo %{cpan_version} | sed 's/\(\..\)\(.\)/\1.\2/')
|
|
|
|
Version: 1.7
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Concise Binary Object Representation (CBOR)
|
|
|
|
Summary: Concise Binary Object Representation (CBOR)
|
|
|
|
# COPYING: GPLv3+
|
|
|
|
# COPYING: GPLv3+
|
|
|
|
## Replaced by system header-only package
|
|
|
|
## Replaced by system header-only package
|
|
|
|
# ecb.h: BSD or GPLv2+
|
|
|
|
# ecb.h: BSD or GPLv2+
|
|
|
|
License: GPLv3+ and (BSD or GPLv2+)
|
|
|
|
License: GPLv3+ and (BSD or GPLv2+)
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
URL: http://search.cpan.org/dist/CBOR-XS/
|
|
|
|
URL: http://search.cpan.org/dist/CBOR-XS/
|
|
|
|
Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/CBOR-XS-%{cpan_version}.tar.gz
|
|
|
|
Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/CBOR-XS-%{version}.tar.gz
|
|
|
|
# Use system libecb
|
|
|
|
# Use system libecb
|
|
|
|
Patch0: CBOR-XS-1.6-Include-ecb.h-from-system.patch
|
|
|
|
Patch0: CBOR-XS-1.6-Include-ecb.h-from-system.patch
|
|
|
|
# Silent compiler warnings
|
|
|
|
# Silent compiler warnings
|
|
|
@ -24,7 +22,7 @@ BuildRequires: perl
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl-generators
|
|
|
|
BuildRequires: perl(Canary::Stability)
|
|
|
|
BuildRequires: perl(Canary::Stability)
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
|
|
|
BuildRequires: sed
|
|
|
|
BuildRequires: sed
|
|
|
|
# Run-time:
|
|
|
|
# Run-time:
|
|
|
|
BuildRequires: perl(common::sense)
|
|
|
|
BuildRequires: perl(common::sense)
|
|
|
@ -54,7 +52,7 @@ when you can represent something useful in JSON, you should be able to
|
|
|
|
represent it in CBOR.
|
|
|
|
represent it in CBOR.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n CBOR-XS-%{cpan_version}
|
|
|
|
%setup -q -n CBOR-XS-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
%patch0 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch1 -p1
|
|
|
|
# Remove bundled libecb
|
|
|
|
# Remove bundled libecb
|
|
|
@ -62,12 +60,11 @@ rm ecb.h
|
|
|
|
sed -i -e '/^ecb\.h/d' MANIFEST
|
|
|
|
sed -i -e '/^ecb\.h/d' MANIFEST
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" </dev/null
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS" </dev/null
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
|
|
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
|
|
|
|
|
|
|
|
@ -82,6 +79,9 @@ make test
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Tue Jun 27 2017 Petr Pisar <ppisar@redhat.com> - 1.7-1
|
|
|
|
|
|
|
|
- 1.7 bump
|
|
|
|
|
|
|
|
|
|
|
|
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.6-3
|
|
|
|
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.6-3
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
- Perl 5.26 rebuild
|
|
|
|
|
|
|
|
|
|
|
|