]>
Commit | Line | Data |
---|---|---|
a8b95af8 | 1 | # |
2 | # Conditional build: | |
f0d2f6c4 | 3 | %bcond_without tests # Do not perform "make test" |
a8b95af8 | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
3d494a4b | 6 | %define pdir Data |
7 | %define pnam UUID | |
a8b95af8 | 8 | Summary: Data::UUID - Perl extension for generating GUIDs/UUIDs |
9df1028a | 9 | Summary(pl.UTF-8): Data::UUID - rozszerzenie Perla do generowania GUID-ów/UUID-ów |
a8b95af8 | 10 | Name: perl-Data-UUID |
95fc023a | 11 | Version: 1.217 |
fa3e9171 | 12 | Release: 6 |
f4ad8a6a | 13 | License: distributable |
a8b95af8 | 14 | Group: Development/Languages/Perl |
700b897d | 15 | Source0: http://www.cpan.org/modules/by-module/Data/%{pdir}-%{pnam}-%{version}.tar.gz |
95fc023a | 16 | # Source0-md5: 9d1baca208eab7bf2fd67184a03785a6 |
8af6f9db | 17 | Patch0: %{name}-types.patch |
700b897d | 18 | URL: http://search.cpan.org/dist/Data-UUID/ |
d128df21 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
a049f218 | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
a8b95af8 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | This module provides a framework for generating UUIDs (Universally | |
25 | Unique Identifiers, also known as GUIDs (Globally Unique Identifiers). | |
26 | A UUID is 128 bits long, and is guaranteed to be different from all | |
27 | other UUIDs/GUIDs generated until 3400 A.D. UUIDs were originally used | |
28 | in the Network Computing System (NCS) and later in the Open Software | |
29 | Foundation's (OSF) Distributed Computing Environment. Currently many | |
30 | different technologies rely on UUIDs to provide unique identity for | |
31 | various software components. | |
32 | ||
0580b049 JR |
33 | %description -l pl.UTF-8 |
34 | Moduł Perla Data::UUID udostępnia szkielet do generowania UUID-ów | |
35 | (Universally Unique Identifiers - identyfikatorów unikalnych | |
36 | powszechnie), znanych też jako GUID-y (Globally Unique Identifiers - | |
37 | identyfikatory unikalne globalnie). UUID-y są 128-bitowe i | |
38 | gwarantowana jest ich unikalność wśród wszyskich innych UUID-ów/ | |
39 | /GUID-ów wygenerowanych do roku 3400. UUID-y pierwotnie były używane w | |
40 | Network Computing System (NCS), a później w Rozproszonym Środowisku | |
a8b95af8 | 41 | Obliczeniowym (Distributed Computing Environment) Fundacji Open |
42 | Software (OSF). Obecnie na zagwarantowanych przez UUID-y unikalnych | |
0580b049 JR |
43 | identyfikatorach dla różnych składników oprogramowania opartych jest |
44 | wiele różnych technologii | |
a8b95af8 | 45 | |
46 | %prep | |
47 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
8af6f9db | 48 | %patch0 -p1 |
a8b95af8 | 49 | |
50 | %build | |
a049f218 | 51 | %{__perl} Makefile.PL </dev/null \ |
520c380d | 52 | INSTALLDIRS=vendor |
aacd0967 | 53 | %{__make} \ |
90ad55fd | 54 | CC="%{__cc}" \ |
aacd0967 | 55 | OPTIMIZE="%{rpmcflags}" |
a8b95af8 | 56 | |
f0d2f6c4 | 57 | %{?with_tests:%{__make} test} |
a8b95af8 | 58 | |
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %{__make} install \ | |
63 | DESTDIR=$RPM_BUILD_ROOT | |
64 | ||
65 | %clean | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc Changes README | |
a049f218 | 71 | %{perl_vendorarch}/Data/UUID.pm |
72 | %dir %{perl_vendorarch}/auto/Data/UUID | |
a049f218 | 73 | %attr(755,root,root) %{perl_vendorarch}/auto/Data/UUID/UUID.so |
a8b95af8 | 74 | %{_mandir}/man3/* |