From: Jakub Bogusz Date: Thu, 24 May 2018 18:30:00 +0000 (+0200) Subject: - new X-Git-Tag: auto/th/perl-UUID-Tiny-1.04-1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=d4818f9cd7a015f581e494004c04ab60d676c555;p=packages%2Fperl-UUID-Tiny.git - new --- d4818f9cd7a015f581e494004c04ab60d676c555 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*