blob: 8e48406f39e2a68bba5158116127e3cf119920f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
Name: perl-IPC-SharedCache
Version: 1.3
Release: 1
Summary: Perl module to manage a cache in SysV IPC shared memory
License: GPLv2+
URL: https://metacpan.org/release/IPC-SharedCache
Source0: https://cpan.metacpan.org/modules/by-module/IPC/IPC-SharedCache-%{version}.tar.gz
Patch0: IPC-SharedCache-1.3-test.patch
BuildArch: noarch
# Build
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(ExtUtils::MakeMaker)
# Module
BuildRequires: perl(Carp)
BuildRequires: perl(integer)
BuildRequires: perl(IPC::ShareLite) >= 0.06
BuildRequires: perl(Storable)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
# Test Suite
# (no additional dependencies)
# Dependencies
Requires: perl(IPC::ShareLite) >= 0.06
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(IPC::ShareLite\\)$
%description
This module provides a shared memory cache accessed as a tied hash.
Shared memory is an area of memory that is available to all processes.
It is accessed by choosing a key, the ipc_key argument to tie. Every
process that accesses shared memory with the same key gets access to
the same region of memory. In some ways it resembles a file system,
but it is not hierarchical and it is resident in memory. This makes
it harder to use than a filesystem but much faster. The data in
shared memory persists until the machine is rebooted or it is
explicitly deleted.
%prep
%setup -q -n IPC-SharedCache-%{version}
# Debian patch for tests, which fixes problem of HTML::Template
%patch -P0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}
%check
make test
%files
%license LICENSE
%doc ANNOUNCE Changes README
%{perl_vendorlib}/IPC/
%{_mandir}/man3/IPC::SharedCache.3*
%changelog
* Mon Nov 04 2024 fu-shanqing<dev01203@linx-info.com> - 1.3-1
- init package
|