]>
Commit | Line | Data |
---|---|---|
271972c0 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
40c5d628 | 4 | |
8b95190c | 5 | %define pdir Tie |
6 | %define pnam TransactHash | |
aebd338c | 7 | Summary: Tie::TransactHash - edit hash in transactions not changing order during trans |
958911af | 8 | Summary(pl.UTF-8): Tie::TransactHash - edycja hasza w transakcjach nie zmieniających kolejności |
9fd75659 | 9 | Name: perl-Tie-TransactHash |
10 | Version: 0.03 | |
bf1a7ade | 11 | Release: 12 |
657d8a0a | 12 | # README claims "same as perl" and GPL v2+ |
13 | License: GPL v2+ or Artistic | |
9fd75659 | 14 | Group: Development/Languages/Perl |
7baee371 | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
32226453 | 16 | # Source0-md5: 0a25fc726b2f45cfaa6780b2cf3ccf0f |
40c5d628 | 17 | URL: http://search.cpan.org/dist/Tie-TransactHash/ |
d21bfc51 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
40c5d628 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
271972c0 | 20 | %if %{with tests} |
d98208f3 | 21 | BuildRequires: perl-Getopt-Mixed |
9fd75659 | 22 | BuildRequires: perl-Tie-IxHash |
2edaaac2 | 23 | %endif |
a973c1ba | 24 | BuildArch: noarch |
8fb1b72d | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
9fd75659 | 26 | |
27 | %description | |
affd06dd | 28 | Tie::TransactHash is a package which provides facilities for editing |
40c5d628 ER |
29 | any other hash in transactions. A transaction is a group of changes |
30 | which go together and are either all applied or none. When working on | |
affd06dd | 31 | a standard perl hash or a hash indexed DBM file, one advantage is that |
80996319 JB |
32 | the original hash remains untouched during the transaction, so its |
33 | order (the order the each(), keys() or values() functions give out) is | |
34 | maintained - changes can be made to the transact hash whilst iterating | |
35 | over it. | |
36 | ||
2fa8c8cf JR |
37 | %description -l pl.UTF-8 |
38 | Tie::TransactHash to pakiet udostępniający możliwość modyfikowania | |
39 | innych haszy w transakcjach. Transakcja to grupa zmian, które albo są | |
40 | wykonywanie wszystkie, albo żadna. Przy pracy z normalnymi haszami | |
41 | perlowymi lub plikiem DBM poindeksowanym haszem, zaletą jest to, że | |
42 | oryginalny hasz pozostaje nietknięty podczas transakcji, więc jego | |
43 | kolejność (kolejność, w jakiej zwracają wartości funkcje each(), | |
44 | keys() i values()) jest zachowana - zmainy mogą być robione w | |
80996319 | 45 | transakcji podczas iteracji po haszu. |
9fd75659 | 46 | |
47 | %prep | |
6c29f91a | 48 | %setup -q -n %{pdir}-%{pnam}-%{version} |
9fd75659 | 49 | |
50 | %build | |
d02b3b22 | 51 | %{__perl} Makefile.PL \ |
0b84aa6b | 52 | INSTALLDIRS=vendor |
c5624065 | 53 | %{__make} |
80996319 | 54 | |
271972c0 | 55 | %{?with_tests:%{__make} test} |
9fd75659 | 56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
9fd75659 | 59 | |
271972c0 | 60 | %{__make} install \ |
61 | DESTDIR=$RPM_BUILD_ROOT | |
9fd75659 | 62 | |
9fd75659 | 63 | %clean |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
80996319 | 68 | %doc README TODO |
9fd75659 | 69 | %attr(755,root,root) %{_bindir}/edit-db.pl |
d02b3b22 | 70 | %{perl_vendorlib}/Tie/TransactHash.pm |
9fd75659 | 71 | %{_mandir}/man[13]/* |