]> git.pld-linux.org Git - packages/perl-File-Temp.git/blame - perl-File-Temp.spec
Up to 0.2311.
[packages/perl-File-Temp.git] / perl-File-Temp.spec
CommitLineData
343ddf13 1#
2# Conditional build:
3%bcond_without tests # do not perform "make test"
4#
343ddf13 5%define pdir File
6%define pnam Temp
c1022f6f 7#
8Summary: File::Temp - create name and handle of a temporary file safely
9Summary(pl.UTF-8): File::Temp - moduł języka Perl tworzący nazwy plików tymczasowych
343ddf13 10Name: perl-File-Temp
bc1d8abf 11Version: 0.2311
343ddf13 12Release: 1
343ddf13 13License: GPL v1+ or Artistic
14Group: Development/Languages/Perl
e6d5aac4 15Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz
bc1d8abf 16# Source0-md5: 6790cd744d10921d05f4729c5be50ad0
343ddf13 17URL: http://search.cpan.org/dist/File-Temp/
b39b3272 18BuildRequires: perl-ExtUtils-MakeMaker >= 6.17
343ddf13 19BuildRequires: perl-devel >= 1:5.8.0
20BuildRequires: rpm-perlprov >= 4.1-13
343ddf13 21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
c1022f6f 25File::Temp can be used to create and open temporary files in a safe
26way. There is both a function interface and an object-oriented
27interface. The File::Temp constructor or the tempfile() function can
28be used to return the name and the open filehandle of a temporary
29file. The tempdir() function can be used to create a temporary
30directory.
31
32%description -l pl.UTF-8
33File::Temp może być użyty do tworzenia i otwierania plików
34tymczasowych w sposób bezpieczny. Istnieje zarówno interfejs
35funkcyjny jak i obiektowy. Konstruktor klasy File::Temp lub funkcja
36tempfile() mogą zwracać nazwę pliku tymczasowego a następnie go
37otwierać do zapisu. Do tworzenia katalogów tymczasowych może być
38użyta funkcja tempdir().
343ddf13 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
51rm -rf $RPM_BUILD_ROOT
52
53%{__make} install \
54 DESTDIR=$RPM_BUILD_ROOT
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%files
60%defattr(644,root,root,755)
bd0c6eab 61%doc README
e6d5aac4
JB
62%{perl_vendorlib}/File/Temp.pm
63%{_mandir}/man3/File::Temp.3pm*
This page took 0.065452 seconds and 4 git commands to generate.