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