From 590ac4f20c5773a9e255cee4df0cac3e51f9c71e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 07:54:17 -0400 Subject: [PATCH] import perl-Types-Serialiser-1.0-12.el8 --- .gitignore | 1 + .perl-Types-Serialiser.metadata | 1 + SOURCES/Types-Serialiser-1.0-provides.patch | 12 ++ SPECS/perl-Types-Serialiser.spec | 115 ++++++++++++++++++++ 4 files changed, 129 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-Types-Serialiser.metadata create mode 100644 SOURCES/Types-Serialiser-1.0-provides.patch create mode 100644 SPECS/perl-Types-Serialiser.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c53763a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/Types-Serialiser-1.0.tar.gz diff --git a/.perl-Types-Serialiser.metadata b/.perl-Types-Serialiser.metadata new file mode 100644 index 0000000..e394ae3 --- /dev/null +++ b/.perl-Types-Serialiser.metadata @@ -0,0 +1 @@ +72ba9d1d97bb582360c79bcbdb158e73573adb70 SOURCES/Types-Serialiser-1.0.tar.gz diff --git a/SOURCES/Types-Serialiser-1.0-provides.patch b/SOURCES/Types-Serialiser-1.0-provides.patch new file mode 100644 index 0000000..cdaed42 --- /dev/null +++ b/SOURCES/Types-Serialiser-1.0-provides.patch @@ -0,0 +1,12 @@ +--- Serialiser.pm ++++ Serialiser.pm +@@ -102,7 +102,8 @@ Returns false iff C<$value> is C<$Types: + BEGIN { + # for historical reasons, and to avoid extra dependencies in JSON::PP, + # we alias *Types::Serialiser::Boolean with JSON::PP::Boolean. +- package JSON::PP::Boolean; ++ package # hide from rpm ++ JSON::PP::Boolean; + + *Types::Serialiser::Boolean:: = *JSON::PP::Boolean::; + } diff --git a/SPECS/perl-Types-Serialiser.spec b/SPECS/perl-Types-Serialiser.spec new file mode 100644 index 0000000..5b02eb9 --- /dev/null +++ b/SPECS/perl-Types-Serialiser.spec @@ -0,0 +1,115 @@ +Name: perl-Types-Serialiser +Summary: Simple data types for common serialization formats +Version: 1.0 +Release: 12%{?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 +Patch0: Types-Serialiser-1.0-provides.patch +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu) +# Module Build +BuildRequires: coreutils +BuildRequires: findutils +BuildRequires: make +BuildRequires: perl-interpreter +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +# Module Runtime +BuildRequires: perl(Carp) +BuildRequires: perl(common::sense) +BuildRequires: perl(overload) +# Test Suite +# (no dependencies) +# Runtime +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Carp) + +%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} + +# Hide package declaration of JSON::PP::Boolean from rpm +%patch0 + +%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 +%if 0%{?_licensedir:1} +%license COPYING +%else +%doc COPYING +%endif +%doc Changes README +%{perl_vendorlib}/Types/ +%{_mandir}/man3/Types::Serialiser.3* +%{_mandir}/man3/Types::Serialiser::Error.3* + +%changelog +* Fri Feb 09 2018 Fedora Release Engineering - 1.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 1.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sun Jun 04 2017 Jitka Plesnikova - 1.0-10 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Sun May 15 2016 Jitka Plesnikova - 1.0-8 +- Perl 5.24 rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jan 6 2016 Paul Howarth - 1.0-6 +- Hide package declaration for JSON::PP::Boolean from rpm to avoid need for + provides filtering +- Classify buildreqs by usage +- Use %%license where possible + +* Thu Jun 18 2015 Fedora Release Engineering - 1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Thu Jun 04 2015 Jitka Plesnikova - 1.0-4 +- Perl 5.22 rebuild + +* Wed Aug 27 2014 Jitka Plesnikova - 1.0-3 +- Perl 5.20 rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Mon Dec 2 2013 Paul Howarth - 1.0-1 +- Update to 1.0 + - Clarify that the second arg of FREEZE/THAW is the data model/data format + name, not the serializer + - Clarify that FREEZE must not modify the data structure to be serialized + +* 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