3 %bcond_without tests # do not perform "make test"
7 Summary: Tie::Cfg - ties simple configuration files to hashes
8 Summary(pl.UTF-8): Tie::Cfg - powiązanie prostych plików konfiguracyjnych z haszami
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 2c1f051a98cbcf3b0495c82e15b159b4
17 URL: http://search.cpan.org/dist/Tie-Cfg/
18 BuildRequires: perl-devel >= 1:5.8.0
19 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRequires: perl-LockFile-Simple >= 0.2.5
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This module reads in a configuration file at 'tie' and writes it at
28 'untie'. You can use file locking to prevent others from accessing the
29 configuration file, but this should only be used if the configuration
30 file is used as a kind of a database to hold a few entries that can be
31 concurrently accessed.
33 %description -l pl.UTF-8
34 Ten moduł czyta plik konfiguracyjny przy wywołaniu tie, a zapisuje
35 przy untie. Pozwala na używanie blokowania, aby zapobiec dostępowi do
36 pliku przez innych - ale to powinno być używane tylko jeśli plik
37 konfiguracyjny jest rodzajem bazy danych, trzymającym kilka wpisów, do
38 których może być jednoczesny dostęp.
41 %setup -q -n %{pdir}-%{pnam}-%{version}
44 %{__perl} Makefile.PL \
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %{perl_vendorlib}/%{pdir}/*.pm