|
|
126e54f |
Name: perl-Data-Binary
|
|
|
126e54f |
Version: 0.01
|
|
|
da20b77 |
Release: 2%{?dist}
|
|
|
126e54f |
Summary: Simple detection of binary versus text in strings
|
|
|
126e54f |
License: Artistic 2.0
|
|
|
126e54f |
URL: https://metacpan.org/release/Data-Binary
|
|
|
126e54f |
Source0: https://cpan.metacpan.org/modules/by-module/Data/Data-Binary-%{version}.tar.gz
|
|
|
126e54f |
BuildArch: noarch
|
|
|
126e54f |
# Module Build
|
|
|
126e54f |
BuildRequires: coreutils
|
|
|
126e54f |
BuildRequires: findutils
|
|
|
126e54f |
BuildRequires: make
|
|
|
126e54f |
BuildRequires: perl-generators
|
|
|
126e54f |
BuildRequires: perl-interpreter
|
|
|
126e54f |
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.30
|
|
|
126e54f |
# Module Runtime
|
|
|
126e54f |
BuildRequires: perl(base)
|
|
|
126e54f |
BuildRequires: perl(Encode)
|
|
|
126e54f |
BuildRequires: perl(Exporter)
|
|
|
126e54f |
BuildRequires: perl(strict)
|
|
|
126e54f |
BuildRequires: perl(warnings)
|
|
|
126e54f |
# Test Suite
|
|
|
126e54f |
BuildRequires: perl(Test::More)
|
|
|
126e54f |
# Runtime
|
|
|
126e54f |
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
126e54f |
|
|
|
126e54f |
%description
|
|
|
126e54f |
This simple module provides string equivalents to the -T / -B operators. Since
|
|
|
126e54f |
these only work on file names and file handles, this module provides the same
|
|
|
126e54f |
functions but on strings.
|
|
|
126e54f |
|
|
|
126e54f |
Note that the actual implementation is currently different, basically because
|
|
|
126e54f |
the -T / -B functions are in C/XS, and this module is written in pure Perl. For
|
|
|
126e54f |
now, anyway.
|
|
|
126e54f |
|
|
|
126e54f |
%prep
|
|
|
126e54f |
%setup -q -n Data-Binary-%{version}
|
|
|
126e54f |
|
|
|
126e54f |
%build
|
|
|
126e54f |
perl Makefile.PL INSTALLDIRS=vendor
|
|
|
126e54f |
make %{?_smp_mflags}
|
|
|
126e54f |
|
|
|
126e54f |
%install
|
|
|
126e54f |
make pure_install DESTDIR=%{buildroot}
|
|
|
126e54f |
find %{buildroot} -type f -name .packlist -delete
|
|
|
126e54f |
%{_fixperms} -c %{buildroot}
|
|
|
126e54f |
|
|
|
126e54f |
%check
|
|
|
126e54f |
make test
|
|
|
126e54f |
|
|
|
126e54f |
%files
|
|
|
126e54f |
%doc changes.txt README readme.txt
|
|
|
126e54f |
%{perl_vendorlib}/Data/
|
|
|
126e54f |
%{_mandir}/man3/Data::Binary.3*
|
|
|
126e54f |
|
|
|
126e54f |
%changelog
|
|
|
da20b77 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.01-2
|
|
|
da20b77 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
da20b77 |
|
|
|
126e54f |
* Tue Jan 15 2019 Paul Howarth <paul@city-fan.org> - 0.01-1
|
|
|
126e54f |
- Initial RPM version
|