[packages/perl-UUID-Tiny] - new

qboosh qboosh at pld-linux.org
Thu May 24 20:29:15 CEST 2018


commit d4818f9cd7a015f581e494004c04ab60d676c555
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu May 24 20:30:00 2018 +0200

    - new

 perl-UUID-Tiny.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
---
diff --git a/perl-UUID-Tiny.spec b/perl-UUID-Tiny.spec
new file mode 100644
index 0000000..7ab3e56
--- /dev/null
+++ b/perl-UUID-Tiny.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without	tests		# do not perform "make test"
+#
+%define		pdir	UUID
+%define		pnam	Tiny
+%include	/usr/lib/rpm/macros.perl
+Summary:	UUID::Tiny - Pure Perl UUID Support With Functional Interface
+Summary(pl.UTF-8):	UUID::Tiny - czysto perlowa obsługa UUID-ów z interfejsem funkcyjnym
+Name:		perl-UUID-Tiny
+Version:	1.04
+Release:	1
+# same as perl
+License:	GPL v1+ or Artistic
+Group:		Development/Languages/Perl
+Source0:	http://www.cpan.org/modules/by-module/UUID/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5:	2d7c18711e64e0a64cc7c7fbb870947e
+URL:		http://search.cpan.org/dist/UUID-Tiny/
+BuildRequires:	perl-devel >= 1:5.8.0
+BuildRequires:	rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires:	perl-Digest-MD5
+BuildRequires:	perl-MIME-Base64
+BuildRequires:	perl-Test-Simple
+BuildRequires:	perl-Time-HiRes
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+UUID::Tiny is a lightweight, low dependency Pure Perl module for UUID
+creation and testing. This module provides the creation of version 1
+time based UUIDs (using random multicast MAC addresses), version 3 MD5
+based UUIDs, version 4 random UUIDs, and version 5 SHA-1 based UUIDs.
+
+%description -l pl.UTF-8
+UUID::Tiny to lekki, mający mało zależności, napisany w czystym Perlu
+moduł do tworzenia i testowania UUID-ów. Udostępnia tworzenie UUID-ów
+w wersji 1 opartych na czasie (wykorzystujących losowe adresy
+multicastowe MAC), UUID-ów w wersji 3 opartych na MD5, UUID-ów
+losowych w wersji 4 oraz UUID-ów w wersji 5 opartych na SHA-1.
+
+%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}/UUID/Tiny.pm
+%{_mandir}/man3/UUID::Tiny.3pm*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-UUID-Tiny.git/commitdiff/d4818f9cd7a015f581e494004c04ab60d676c555



More information about the pld-cvs-commit mailing list