From ef9e8efa9e29bbad26eb54e21651cf41ee73b9cf Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Thu, 31 Oct 2013 12:41:20 +0000 Subject: [PATCH] Initial import (perl-Types-Serialiser-0.03-2) This module provides some extra data types that are used by common serialization formats such as JSON or CBOR. The idea is to have a repository of simple/small constants and containers that can be shared by different implementations so they become interoperable between each other. --- .gitignore | 1 + perl-Types-Serialiser.spec | 61 ++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 63 insertions(+) create mode 100644 perl-Types-Serialiser.spec diff --git a/.gitignore b/.gitignore index e69de29..cba71e7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Types-Serialiser-[0-9.]*.tar.gz diff --git a/perl-Types-Serialiser.spec b/perl-Types-Serialiser.spec new file mode 100644 index 0000000..5bea4c9 --- /dev/null +++ b/perl-Types-Serialiser.spec @@ -0,0 +1,61 @@ +Name: perl-Types-Serialiser +Summary: Simple data types for common serialization formats +Version: 0.03 +Release: 2%{?dist} +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Types-Serialiser/ +Source0: http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Types-Serialiser-%{version}.tar.gz +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +BuildRequires: perl(Carp) +BuildRequires: perl(common::sense) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(overload) +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Carp) + +# Filter bogus provide of JSON::PP::Boolean (for rpm ≥ 4.9) +%global __provides_exclude ^perl\\(JSON::PP::Boolean\\) + +%description +This module provides some extra data types that are used by common +serialization formats such as JSON or CBOR. The idea is to have a repository of +simple/small constants and containers that can be shared by different +implementations so they become interoperable between each other. + +%prep +%setup -q -n Types-Serialiser-%{version} + +# Filter bogus provide of JSON::PP::Boolean (for rpm < 4.9) +%global provfilt /bin/sh -c "%{__perl_provides} | grep -v '^perl(JSON::PP::Boolean)'" +%define __perl_provides %{provfilt} + +%build +perl Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make pure_install DESTDIR=%{buildroot} +find %{buildroot} -type f -name .packlist -exec rm -f {} \; +%{_fixperms} %{buildroot} + +%check +make test + +%clean +rm -rf %{buildroot} + +%files +%doc Changes COPYING README +%{perl_vendorlib}/Types/ +%{_mandir}/man3/Types::Serialiser.3pm* +%{_mandir}/man3/Types::Serialiser::Error.3pm* + +%changelog +* Wed Oct 30 2013 Paul Howarth - 0.03-2 +- Sanitize for Fedora submission + +* Tue Oct 29 2013 Paul Howarth - 0.03-1 +- Initial RPM version diff --git a/sources b/sources index e69de29..c15654e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a18e0f223da6b7c73068957e7cb6e463 Types-Serialiser-0.03.tar.gz