|
|
de2810 |
%{?scl:%scl_package perl-File-Temp}
|
|
|
de2810 |
|
|
|
de2810 |
%global cpan_version 0.2304
|
|
|
de2810 |
Name: %{?scl_prefix}perl-File-Temp
|
|
|
de2810 |
# Keep 2-digit version to align with future versions
|
|
|
de2810 |
Version: %(echo '%{cpan_version}' | sed 's/\(\...\)\(.\)/\1.\2/')
|
|
|
de2810 |
Release: 310%{?dist}
|
|
|
de2810 |
Summary: Return name and handle of a temporary file safely
|
|
|
de2810 |
License: GPL+ or Artistic
|
|
|
de2810 |
Group: Development/Libraries
|
|
|
de2810 |
URL: http://search.cpan.org/dist/File-Temp/
|
|
|
de2810 |
Source0: http://www.cpan.org/authors/id/D/DA/DAGOLDEN/File-Temp-%{cpan_version}.tar.gz
|
|
|
de2810 |
BuildArch: noarch
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(ExtUtils::MakeMaker) >= 6.17
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(strict)
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(warnings)
|
|
|
de2810 |
# Run-time:
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(Carp)
|
|
|
de2810 |
# Keep Carp::Heavy optional
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(constant)
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(Cwd)
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(Errno)
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(Exporter) >= 5.57
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(Fcntl) >= 1.03
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(File::Path) >= 2.06
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(File::Spec) >= 0.8
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(IO::Handle)
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(IO::Seekable)
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(overload)
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(parent) >= 0.221
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(POSIX)
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(Scalar::Util)
|
|
|
de2810 |
# Symbol not needed
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(vars)
|
|
|
de2810 |
# VMS::Stdio not needed
|
|
|
de2810 |
# Tests:
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(Config)
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(File::Spec::Functions)
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(FileHandle)
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(List::Util)
|
|
|
de2810 |
# Symbol not needed
|
|
|
de2810 |
BuildRequires: %{?scl_prefix}perl(Test::More)
|
|
|
de2810 |
Requires: %{?scl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl} '}eval "$(perl -V:version)";echo $version%{?scl:'}))
|
|
|
de2810 |
Requires: %{?scl_prefix}perl(IO::Handle)
|
|
|
de2810 |
Requires: %{?scl_prefix}perl(parent) >= 0.221
|
|
|
de2810 |
Requires: %{?scl_prefix}perl(POSIX)
|
|
|
de2810 |
|
|
|
de2810 |
# RPM 4.8 style
|
|
|
de2810 |
%{?filter_setup:
|
|
|
de2810 |
# Filter unused dependencies
|
|
|
de2810 |
%filter_from_requires /^%{?scl_prefix}perl(Symbol)$/d
|
|
|
de2810 |
%filter_from_requires /^%{?scl_prefix}perl(VMS::Stdio)$/d
|
|
|
de2810 |
# Filter under-specified dependencies
|
|
|
de2810 |
%filter_from_requires /^%{?scl_prefix}perl(parent)$/d
|
|
|
de2810 |
%?perl_default_filter
|
|
|
de2810 |
}
|
|
|
de2810 |
# RPM 4.9 style
|
|
|
de2810 |
# Filter unused dependencies
|
|
|
de2810 |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^%{?scl_prefix}perl\\(Symbol|VMS::Stdio\\)
|
|
|
de2810 |
# Filter under-specified dependencies
|
|
|
de2810 |
%global __requires_exclude %{__requires_exclude}|^%{?scl_prefix}perl\\(parent\\)$
|
|
|
de2810 |
|
|
|
de2810 |
%description
|
|
|
de2810 |
File::Temp can be used to create and open temporary files in a safe way.
|
|
|
de2810 |
There is both a function interface and an object-oriented interface. The
|
|
|
de2810 |
File::Temp constructor or the tempfile() function can be used to return the
|
|
|
de2810 |
name and the open file handle of a temporary file. The tempdir() function
|
|
|
de2810 |
can be used to create a temporary directory.
|
|
|
de2810 |
|
|
|
de2810 |
%prep
|
|
|
de2810 |
%setup -q -n File-Temp-%{cpan_version}
|
|
|
de2810 |
chmod -x misc/benchmark.pl
|
|
|
de2810 |
%{?scl:scl enable %{scl} '}perl -MExtUtils::MakeMaker -e "ExtUtils::MM_Unix->fixin(q{misc/benchmark.pl})"%{?scl:'}
|
|
|
de2810 |
|
|
|
de2810 |
%build
|
|
|
de2810 |
%{?scl:scl enable %{scl} '}perl Makefile.PL INSTALLDIRS=vendor && make %{?_smp_mflags}%{?scl:'}
|
|
|
de2810 |
|
|
|
de2810 |
%install
|
|
|
de2810 |
%{?scl:scl enable %{scl} '}make pure_install DESTDIR=$RPM_BUILD_ROOT%{?scl:'}
|
|
|
de2810 |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
|
|
de2810 |
%{_fixperms} $RPM_BUILD_ROOT/*
|
|
|
de2810 |
|
|
|
de2810 |
%check
|
|
|
de2810 |
%{?scl:scl enable %{scl} '}make test%{?scl:'}
|
|
|
de2810 |
|
|
|
de2810 |
%files
|
|
|
de2810 |
%doc Changes LICENSE misc README
|
|
|
de2810 |
%{perl_vendorlib}/*
|
|
|
de2810 |
%{_mandir}/man3/*
|
|
|
de2810 |
|
|
|
de2810 |
%changelog
|
|
|
de2810 |
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.23.04-310
|
|
|
de2810 |
- Increase release to favour standalone package
|
|
|
de2810 |
|
|
|
de2810 |
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.23.04-3
|
|
|
de2810 |
- Perl 5.20 rebuild
|
|
|
de2810 |
|
|
|
de2810 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.04-2
|
|
|
de2810 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
de2810 |
|
|
|
de2810 |
* Mon Oct 14 2013 Petr Pisar <ppisar@redhat.com> - 0.23.04-1
|
|
|
de2810 |
- 0.2304 bump
|
|
|
de2810 |
|
|
|
de2810 |
* Thu Oct 10 2013 Petr Pisar <ppisar@redhat.com> - 0.23.03-1
|
|
|
de2810 |
- 0.2303 bump
|
|
|
de2810 |
|
|
|
de2810 |
* Tue Oct 01 2013 Petr Pisar <ppisar@redhat.com> - 0.23.02-1
|
|
|
de2810 |
- 0.2302 bump
|
|
|
de2810 |
|
|
|
de2810 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.01-4
|
|
|
de2810 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
de2810 |
|
|
|
de2810 |
* Mon Jul 29 2013 Petr Pisar <ppisar@redhat.com> - 0.23.01-3
|
|
|
de2810 |
- Specify all dependencies
|
|
|
de2810 |
|
|
|
de2810 |
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 0.23.01-2
|
|
|
de2810 |
- Link minimal build-root packages against libperl.so explicitly
|
|
|
de2810 |
|
|
|
de2810 |
* Mon Apr 15 2013 Petr Pisar <ppisar@redhat.com> - 0.23.01-1
|
|
|
de2810 |
- 0.2301 bump
|
|
|
de2810 |
|
|
|
de2810 |
* Fri Mar 22 2013 Petr Pisar <ppisar@redhat.com> 0.23-1
|
|
|
de2810 |
- Specfile autogenerated by cpanspec 1.78.
|