epel9
Petr Písař 8 years ago
parent 4313ce6e15
commit c578eb5812

1
.gitignore vendored

@ -3,3 +3,4 @@
/CBOR-XS-1.41.tar.gz
/CBOR-XS-1.5.tar.gz
/CBOR-XS-1.6.tar.gz
/CBOR-XS-1.7.tar.gz

@ -1,15 +1,13 @@
%global cpan_version 1.6
Name: perl-CBOR-XS
Version: %(echo %{cpan_version} | sed 's/\(\..\)\(.\)/\1.\2/')
Release: 3%{?dist}
Version: 1.7
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-%{cpan_version}.tar.gz
Source0: http://www.cpan.org/authors/id/M/ML/MLEHMANN/CBOR-XS-%{version}.tar.gz
# Use system libecb
Patch0: CBOR-XS-1.6-Include-ecb.h-from-system.patch
# Silent compiler warnings
@ -24,7 +22,7 @@ BuildRequires: perl
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl(Canary::Stability)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.52
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires: sed
# Run-time:
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.
%prep
%setup -q -n CBOR-XS-%{cpan_version}
%setup -q -n CBOR-XS-%{version}
%patch0 -p1
%patch1 -p1
# Remove bundled libecb
@ -62,12 +60,11 @@ rm ecb.h
sed -i -e '/^ecb\.h/d' MANIFEST
%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}
%install
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
%{_fixperms} $RPM_BUILD_ROOT/*
@ -82,6 +79,9 @@ make test
%{_mandir}/man3/*
%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
- Perl 5.26 rebuild

@ -1 +1 @@
12b34d40d1cec32dec1368d620075530 CBOR-XS-1.6.tar.gz
SHA512 (CBOR-XS-1.7.tar.gz) = 13f5a0db0e983929fe7a670caf23ef130ed18f1974cf471d77d20e9e5d78c8afcad9a3440f198906d8e30625da7f8cb1d3a8919fd896442101f3865f0af5614c

Loading…
Cancel
Save