[packages/perl-Types-Serialiser] - new
baggins
baggins at pld-linux.org
Mon Sep 15 20:19:07 CEST 2014
commit f8477a17451883f668f7b9af48f2f892e76dccf3
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Sep 15 20:18:53 2014 +0200
- new
perl-Types-Serialiser.spec | 56 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
---
diff --git a/perl-Types-Serialiser.spec b/perl-Types-Serialiser.spec
new file mode 100644
index 0000000..8f62e05
--- /dev/null
+++ b/perl-Types-Serialiser.spec
@@ -0,0 +1,56 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir Types
+%define pnam Serialiser
+%include /usr/lib/rpm/macros.perl
+Summary: Types::Serialiser - simple data types for common serialisation formats
+Name: perl-Types-Serialiser
+Version: 1.0
+Release: 1
+License: unknown
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-authors/id/M/ML/MLEHMANN/Types-Serialiser-1.0.tar.gz
+# Source0-md5: 76460a2bfbc644672499af89192e03fe
+URL: http://search.cpan.org/dist/Types-Serialiser/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: perl-common-sense
+%endif
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This module provides some extra datatypes that are used by common
+serialisation 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 %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} pure_install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Types/*.pm
+%{perl_vendorlib}/Types/Serialiser
+%{_mandir}/man3/*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Types-Serialiser.git/commitdiff/f8477a17451883f668f7b9af48f2f892e76dccf3
More information about the pld-cvs-commit
mailing list