]> git.pld-linux.org Git - SPECS.git/blob - perl-Tie-Cfg.spec
SPECS updated Mon 29 Apr 22:05:02 CEST 2024
[SPECS.git] / perl-Tie-Cfg.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4
5 %define         pdir    Tie
6 %define         pnam    Cfg
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
9 Name:           perl-Tie-Cfg
10 Version:        0.32
11 Release:        3
12 # same as perl
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
20 %if %{with tests}
21 BuildRequires:  perl-LockFile-Simple >= 0.2.5
22 %endif
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
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.
32
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.
39
40 %prep
41 %setup -q -n %{pdir}-%{pnam}-%{version}
42
43 %build
44 %{__perl} Makefile.PL \
45         INSTALLDIRS=vendor
46 %{__make}
47
48 %{?with_tests:%{__make} test}
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 %{__make} install \
54         DESTDIR=$RPM_BUILD_ROOT
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %{perl_vendorlib}/%{pdir}/*.pm
62 %{_mandir}/man3/*
This page took 0.61741 seconds and 3 git commands to generate.