commit 0d72a60dfd363d75bce025dca20f01937405cee7
Author: Arkadiusz Miƛkiewicz <[email protected]>
Date:   Tue Jul 10 09:25:58 2018 +0200

    - initial

 perl-Data-Uniqid.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 59 insertions(+)
---
diff --git a/perl-Data-Uniqid.spec b/perl-Data-Uniqid.spec
new file mode 100644
index 0000000..2cea895
--- /dev/null
+++ b/perl-Data-Uniqid.spec
@@ -0,0 +1,59 @@
+#
+# Conditional build:
+%bcond_without tests           # do not perform "make test"
+#
+%define                pdir    Data
+%define                pnam    Uniqid
+%include       /usr/lib/rpm/macros.perl
+Summary:       Data::Uniqid - Perl extension for simple genrating of unique 
id's
+Name:          perl-Data-Uniqid
+Version:       0.12
+Release:       1
+License:       GPL v1+ or Artistic
+Group:         Development/Languages/Perl
+Source0:       
http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: 6bab3b5da09fedfdf60ce2629a7367db
+URL:           https://metacpan.org/release/Data-Uniqid/
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Data::Uniqid provides three simple routines for generating unique ids.
+These ids are coded with a Base62 systen to make them short and handy
+(e.g. to use it as part of a URL).
+
+suinqid genrates a very short id valid only for the localhost and with
+a liftime of 1 day
+
+uniqid generates a short id valid on the local host
+
+luniqid generates a long id valid everywhere and ever
+
+%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}/Data/Uniqid.pm
+%{_mandir}/man3/Data::Uniqid.3*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Data-Uniqid.git/commitdiff/0d72a60dfd363d75bce025dca20f01937405cee7

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to