3 %bcond_without tests # do not perform "make test"
7 Summary: Data::Uniqid - Perl extension for simple genrating of unique id's
11 License: GPL v1+ or Artistic
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz
14 # Source0-md5: 6bab3b5da09fedfdf60ce2629a7367db
15 URL: https://metacpan.org/release/Data-Uniqid/
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 Data::Uniqid provides three simple routines for generating unique ids.
25 These ids are coded with a Base62 systen to make them short and handy
26 (e.g. to use it as part of a URL).
28 suinqid genrates a very short id valid only for the localhost and with
31 uniqid generates a short id valid on the local host
33 luniqid generates a long id valid everywhere and ever
36 %setup -q -n %{pdir}-%{pnam}-%{version}
39 %{__perl} Makefile.PL \
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
48 %{__make} pure_install \
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %{perl_vendorlib}/Data/Uniqid.pm
58 %dir %{perl_vendorlib}/auto/Data/Uniqid
59 %{perl_vendorlib}/auto/Data/Uniqid/autosplit.ix
60 %{_mandir}/man3/Data::Uniqid.3*