]>
Commit | Line | Data |
---|---|---|
652c87b5 | 1 | # |
2 | # Conditional build: | |
ea219e2b | 3 | %bcond_without tests # do not perform "make test" |
cbd5fc0d | 4 | |
6c765a63 | 5 | %define pdir Tie |
6 | %define pnam Persistent | |
cbd5fc0d | 7 | %include /usr/lib/rpm/macros.perl |
652c87b5 | 8 | Summary: Tie::Persistent - persistent data structures via tie made easy |
c31815da | 9 | Summary(pl.UTF-8): Tie::Persistent - trwałe struktury danych oparte na Tie |
652c87b5 | 10 | Name: perl-Tie-Persistent |
11 | Version: 1.00 | |
1551d2a1 | 12 | Release: 6 |
379f5b85 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
652c87b5 | 15 | Group: Development/Languages/Perl |
feb18ea8 | 16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
54863246 | 17 | # Source0-md5: 4f21d393e7af0cb6eebad6b3b72a2797 |
cbd5fc0d | 18 | URL: http://search.cpan.org/dist/Tie-Persistent/ |
63a07db2 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
f7cb9d9b | 20 | BuildRequires: rpm-perlprov >= 4.1-13 |
652c87b5 | 21 | BuildArch: noarch |
22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
23 | ||
24 | %description | |
d877b11a JB |
25 | The Tie::Persistent package makes working with persistent data real |
26 | easy by using the tie interface. | |
27 | ||
28 | It works by storing data contained in a variable into a file (not | |
29 | unlike a database). The primary advantage is speed, as the whole | |
30 | datastructure is kept in memory (which is also a limitation), and, of | |
31 | course, that you can use arbitrary data structures inside the variable | |
32 | (unlike DB_File). | |
33 | ||
b8bd8ff2 JR |
34 | %description -l pl.UTF-8 |
35 | Pakiet Tie::Persistent czyni pracę z trwałymi danymi naprawdę łatwą | |
36 | dzięki użyciu interfejsu tie. | |
d877b11a | 37 | |
b8bd8ff2 JR |
38 | Działa on poprzez zapisywanie danych zawartych w zmiennej do pliku |
39 | (podobnie jak w bazie danych). Główną zaletą jest szybkość, jako że | |
40 | cała struktura danych jest trzymana w pamięci (która jest także | |
41 | ograniczeniem) i oczywiście to, że można używać w zmiennej dowolnych | |
42 | struktur danych (w przeciwieństwie do DB_File). | |
652c87b5 | 43 | |
44 | %prep | |
45 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
46 | ||
47 | %build | |
f7cb9d9b | 48 | %{__perl} Makefile.PL \ |
33f123ad | 49 | INSTALLDIRS=vendor |
652c87b5 | 50 | %{__make} |
51 | ||
ea219e2b | 52 | %{?with_tests:%{__make} test} |
652c87b5 | 53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
ea219e2b | 57 | %{__make} install \ |
58 | DESTDIR=$RPM_BUILD_ROOT | |
652c87b5 | 59 | |
60 | %clean | |
61 | rm -rf $RPM_BUILD_ROOT | |
62 | ||
63 | %files | |
64 | %defattr(644,root,root,755) | |
f7cb9d9b | 65 | %{perl_vendorlib}/%{pdir}/*.pm |
652c87b5 | 66 | %{_mandir}/man3/* |