perl-JSON-XS/perl-JSON-XS.spec

Name: perl-JSON-XS
Summary: Perl module that implements JSON serialising/deserialising
Version: 3.02
Release: 1
License: GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/JSON-XS/
Description: perl-JSON-XS is a Perl module that implements JSON serialising/deserialising, done correctly and fast.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Marc Lehmann <pcg$goof,com>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name JSON-XS
%define real_version 3.02

Summary: Perl module that implements JSON serialising/deserialising
Name: perl-JSON-XS
Version: %{real_version}
Release: 1%{?dist}
License: GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/JSON-XS/

Source: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/JSON-XS-%{real_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{real_version}-%{release}-root

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(common::sense)
Requires: perl(common::sense)

%filter_from_requires /^perl*/d
%filter_setup

# this module satisfies the requirements for JSON::Any
Provides: perl-JSON-Any-alternative = 1.22

%description
perl-JSON-XS is a Perl module that implements JSON serialising/deserialising,
done correctly and fast.

%prep
%setup -n %{real_name}-%{real_version}

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

### Clean up docs
find eg/ -type f -exec %{__chmod} a-x {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc COPYING Changes MANIFEST META.yml README eg/
%doc %{_mandir}/man1/json_xs.1*
%doc %{_mandir}/man3/JSON::XS.3pm*
%doc %{_mandir}/man3/JSON::XS::Boolean.3pm*
%{_bindir}/json_xs
%dir %{perl_vendorarch}/auto/JSON/
%{perl_vendorarch}/auto/JSON/XS/
%dir %{perl_vendorarch}/JSON/
%{perl_vendorarch}/JSON/XS/
%{perl_vendorarch}/JSON/XS.pm

%changelog
* Mon May 16 2016 Dries Verachtert <dries.verachtert@dries.eu> - 3.02-1
- Updated to release 3.02.

* Sun Apr 03 2011 Yury V. Zaytsev <yury@shurup.com> - 2.30-1
- Version bump to supersede 0.27.

* Sat Feb 05 2011 Denis Fateyev <denis@fateyev.com> - 2.3-1
- Updated to version 2.3.

* Thu Jan  7 2010 Christoph Maser <cmr@financial.com> - 2.27-1
- Updated to version 2.27.

* Wed Dec 23 2009 Christoph Maser <cmr@financial.com> - 2.26-1
- Updated to version 2.26.

* Wed Sep  9 2009 Christoph Maser <cmr@financial.com> - 2.25-1
- Updated to version 2.25.

* Mon Jul  6 2009 Christoph Maser <cmr@financial.com> - 2.24-2
- Update Provides: perl-JSON-Any-alternative to 1.21

* Sat Jul  4 2009 Christoph Maser <cmr@financial.com> - 2.24-1
- Updated to version 2.24.

* Fri Jun 12 2009 Steve Huff <shuff@vecna.org> - 2.23-2
- Added Provides: perl-JSON-Any-alternative.

* Thu Oct 09 2008 Dag Wieers <dag@wieers.com> - 2.23-1
- Updated to release 2.23.

* Mon Jun 23 2008 Dag Wieers <dag@wieers.com> - 2.21-1
- Updated to release 2.21.

* Mon May 05 2008 Dag Wieers <dag@wieers.com> - 2.2-1
- Updated to release 2.2.

* Sat Dec 08 2007 Dag Wieers <dag@wieers.com> - 2.01-1
- Updated to release 2.01.

* Wed Dec 05 2007 Dag Wieers <dag@wieers.com> - 2.0-1
- Updated to release 2.0.

* Sun Nov 18 2007 Dag Wieers <dag@wieers.com> - 1.53-1
- Updated to release 1.53.

* Tue Nov 13 2007 Dag Wieers <dag@wieers.com> - 1.52-1
- Updated to release 1.52.

* Tue Aug 07 2007 Dag Wieers <dag@wieers.com> - 1.43-2
- Disabled auto-requires for eg/.

* Sat Aug 04 2007 Dag Wieers <dag@wieers.com> - 1.43-1
- Initial package. (using DAR)