# $Revision: 1.2 $, $Date: 2002/09/10 21:28:13 $ # # Conditional build: # _without_tests - do not perform "make test" %include /usr/lib/rpm/macros.perl %define pdir Tie %define pnam Cfg Summary: Tie::Cfg - Ties simple configuration files to hashes Summary(pl): Modu³ Tie::Cfg - wi±¿±cy proste pliki konfiguracyjne z haszami Name: perl-Tie-Cfg Version: 0.11 Release: 2 License: GPL/Artistic Group: Development/Languages/Perl Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz BuildRequires: perl >= 5.6 BuildRequires: rpm-perlprov >= 3.0.3-26 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module reads in a configuration file at 'tie' and writes it at 'untie'. You can use file locking to prevent others from accessing the configuration file, but this should only be used if the configuration file is used as a kind of a database to hold a few entries that can be concurrently accessed. %description -l pl Ten modu³ czyta plik konfiguracyjny przy wywo³aniu tie, a zapisuje przy untie. Pozwala na u¿ywanie blokowania, aby zapobiec dostêpowi do pliku przez innych - ale to powinno byæ u¿ywane tylko je¶li plik konfiguracyjny jest rodzajem bazy danych, trzymaj±cym kilka wpisów, do których mo¿e byæ jednoczesny dostêp. %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build perl Makefile.PL %{__make} %{!?_without_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %{perl_sitelib}/%{pdir}/*.pm %{_mandir}/man3/* %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * %{date} PLD Team <feedback@pld.org.pl> All persons listed below can be reached at <cvs_login>@pld.org.pl $Log: perl-Tie-Cfg.spec,v $ Revision 1.2 2002/09/10 21:28:13 qboosh - pl description, release 2 Revision 1.1 2002/09/07 18:59:43 radek - new, STBR