Files
perl-File-Binary/perl-File-Binary.spec

79 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package perl-File-Binary (Version 1.7)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: perl-File-Binary
Version: 1.7
Release: 1
License: CHECK(GPL+ or Artistic)
%define cpan_name File-Binary
Summary: Binary file reading module
Url: http://search.cpan.org/dist/File-Binary/
Group: Development/Libraries/Perl
Source: http://www.cpan.org/authors/id/S/SI/SIMONW/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::File) >= 1.14
BuildRequires: perl(IO::Scalar) >= 1.126
BuildRequires: perl(Test::More)
Requires: perl(IO::File) >= 1.14
Requires: perl(IO::Scalar) >= 1.126
Requires: perl(Test::More)
%{perl_requires}
%description
*File::Binary* is a Binary file reading module, hence the name, and was
originally used to write a suite of modules for manipulating Macromedia SWF
files.
However it's grown beyond that and now actually, err, works. And is
generalised. And EVERYTHING! Yay!
It has methods for reading and writing signed and unsigned 8, 16 and 32 bit
integers, at some point in the future I'll figure out a way of putting in
methods for >32bit integers nicely but until then, patches welcome.
It hasn't retained backwards compatability with the old version of this
module for cleanliness sakes and also because the old interface was pretty
braindead.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
%{__rm} -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,755)
%doc %attr(644,root,root,755) Changes MANIFEST.bak README
%changelog