2009-03-19 11:39:19 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Data-UUID
|
|
|
|
#
|
2009-06-21 13:58:48 +00:00
|
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2009-03-19 11:39:19 +00:00
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2009-06-21 13:58:48 +00:00
|
|
|
#Distribution: %dist
|
|
|
|
#Packager: %packager
|
|
|
|
#Vendor: %vendor
|
|
|
|
|
2009-03-19 11:39:19 +00:00
|
|
|
Name: perl-Data-UUID
|
2009-06-21 13:58:48 +00:00
|
|
|
%define cpan_name %( echo %{name} | %{__sed} -e 's,perl-,,' )
|
2009-03-19 11:39:19 +00:00
|
|
|
Summary: Perl extension for generating Globally/Universally Unique Identifiers
|
2009-06-21 13:58:48 +00:00
|
|
|
Version: 1.202
|
2009-03-19 11:39:19 +00:00
|
|
|
Release: 1
|
2009-06-21 13:58:48 +00:00
|
|
|
License: BSD License
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
Url: http://search.cpan.org/perldoc?Data::UUID
|
|
|
|
Source: %{cpan_name}-%{version}.tar.bz2
|
2009-03-19 11:39:19 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-06-21 13:58:48 +00:00
|
|
|
BuildRequires: perl
|
|
|
|
BuildRequires: perl-macros
|
|
|
|
BuildRequires: perl(Digest::MD5)
|
|
|
|
Requires: perl = %{perl_version}
|
|
|
|
Requires: perl(Digest::MD5)
|
2009-03-19 11:39:19 +00:00
|
|
|
|
|
|
|
%description
|
2009-06-21 13:58:48 +00:00
|
|
|
This module provides a framework for generating UUIDs (Universally Unique
|
|
|
|
Identifiers, also known as GUIDs (Globally Unique Identifiers). A UUID is 128
|
|
|
|
bits long, and is guaranteed to be different from all other UUIDs/GUIDs
|
|
|
|
generated until 3400 CE.
|
|
|
|
|
|
|
|
UUIDs were originally used in the Network Computing System (NCS) and later in
|
|
|
|
the Open Software Foundation's (OSF) Distributed Computing Environment.
|
|
|
|
Currently many different technologies rely on UUIDs to provide unique identity
|
|
|
|
for various software components. Microsoft COM/DCOM for instance, uses GUIDs
|
|
|
|
very extensively to uniquely identify classes, applications and components
|
|
|
|
across network-connected systems.
|
|
|
|
|
|
|
|
The algorithm for UUID generation, used by this extension, is described in the
|
|
|
|
Internet Draft "UUIDs and GUIDs" by Paul J. Leach and Rich Salz
|
|
|
|
(http://hegel.ittc.ku.edu/topics/internet/internet-drafts/draft-l/draft-leach-uuids-guids-01.txt).
|
|
|
|
It provides reasonably efficient and reliable framework for generating UUIDs
|
|
|
|
and supports fairly high allocation rates -- 10 million per second per machine
|
|
|
|
-- and therefore is suitable for identifying both extremely short-lived and
|
|
|
|
very persistent objects on a given system as well as across the network.
|
|
|
|
|
|
|
|
Author: Alexander Golomshtok <agolomsh@cpan.org>
|
|
|
|
|
|
|
|
|
2009-03-19 11:39:19 +00:00
|
|
|
%prep
|
2009-06-21 13:58:48 +00:00
|
|
|
%setup -q -n %{cpan_name}-%{version}
|
2009-03-19 11:39:19 +00:00
|
|
|
|
|
|
|
%build
|
2009-06-21 13:58:48 +00:00
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
%{__make}
|
2009-03-19 11:39:19 +00:00
|
|
|
|
|
|
|
%check
|
2009-06-21 13:58:48 +00:00
|
|
|
%{__make} test
|
2009-03-19 11:39:19 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
2009-06-21 13:58:48 +00:00
|
|
|
%perl_gen_filelist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
# normally you only need to check for doc files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc Changes LICENSE README
|
|
|
|
|
|
|
|
%changelog
|
2009-03-19 11:39:19 +00:00
|
|
|
|