[packages/perl-UUID] - initial, version 0.28
adwol
adwol at pld-linux.org
Sun Aug 1 14:17:19 CEST 2021
commit 6ed4a21fcdecb97c88ebc0fd8e557742e33e9e64
Author: Adam Osuchowski <adwol at pld-linux.org>
Date: Sun Aug 1 14:16:52 2021 +0200
- initial, version 0.28
perl-UUID.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
---
diff --git a/perl-UUID.spec b/perl-UUID.spec
new file mode 100644
index 0000000..5d68f5e
--- /dev/null
+++ b/perl-UUID.spec
@@ -0,0 +1,64 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%define pdir UUID
+Summary: UUID - DCE compatible Universally Unique Identifier library for Perl
+Name: perl-UUID
+Version: 0.28
+Release: 1
+# same as perl
+License: GPL v1+ or Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/UUID/%{pdir}-%{version}.tar.gz
+# Source0-md5: 15c17e1044f7ff686dafa27ff381b007
+URL: https://metacpan.org/release/UUID
+%if %{with tests}
+BuildRequires: perl(Test::More)
+%endif
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildRequires: rpmbuild(macros) >= 1.736
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The UUID library is used to generate unique identifiers for objects
+that may be accessible beyond the local system. For instance, they
+could be used to generate unique HTTP cookies across multiple web
+servers without communication between the servers, and without fear
+of a name clash.
+
+The generated UUIDs can be reasonably expected to be unique within a
+system, and unique across all systems, and are compatible with those
+created by the Open Software Foundation (OSF) Distributed Computing
+Environment (DCE) utility uuidgen.
+
+%prep
+%setup -q -n %{pdir}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+
+%{__make} \
+ CC="%{__cc}" \
+ OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes
+%{perl_vendorarch}/UUID.pm
+%dir %{perl_vendorarch}/auto/UUID
+%attr(755,root,root) %{perl_vendorarch}/auto/UUID/UUID.so
+%{_mandir}/man3/UUID.3pm*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-UUID.git/commitdiff/6ed4a21fcdecb97c88ebc0fd8e557742e33e9e64
More information about the pld-cvs-commit
mailing list