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.
This commit is contained in:
parent
c9179534db
commit
ef9e8efa9e
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
/Types-Serialiser-[0-9.]*.tar.gz
|
61
perl-Types-Serialiser.spec
Normal file
61
perl-Types-Serialiser.spec
Normal file
@ -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 <paul@city-fan.org> - 0.03-2
|
||||
- Sanitize for Fedora submission
|
||||
|
||||
* Tue Oct 29 2013 Paul Howarth <paul@city-fan.org> - 0.03-1
|
||||
- Initial RPM version
|
Loading…
Reference in New Issue
Block a user