2011-11-17 15:26:20 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Data-Buffer
|
|
|
|
#
|
|
|
|
# Copyright (c) 2011 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2006-10-31 15:10:18 +00:00
|
|
|
%define modname Data-Buffer
|
2011-11-17 15:26:20 +00:00
|
|
|
|
2006-10-31 15:10:18 +00:00
|
|
|
Name: perl-%{modname}
|
|
|
|
Version: 0.04
|
|
|
|
Release: 1
|
|
|
|
Summary: Read/write buffer class
|
|
|
|
BuildRequires: perl
|
2010-12-03 14:00:31 +00:00
|
|
|
BuildRequires: perl-macros
|
2006-10-31 15:10:18 +00:00
|
|
|
License: GPL/Artistic
|
|
|
|
Group: Development/Libraries/Perl
|
2011-11-17 15:26:20 +00:00
|
|
|
Source: %{modname}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-12-03 14:00:31 +00:00
|
|
|
%{perl_requires}
|
2006-10-31 15:10:18 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Data::Buffer implements a low-level binary buffer in which you can get and put
|
|
|
|
integers, strings, and other data. Internally the implementation is based on
|
|
|
|
pack and unpack, such that Data::Buffer is really a layer on top of those
|
|
|
|
built-in functions.
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Benjamin Trott <ben@rhumba.pair.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
|
|
|
make
|
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
|
|
%perl_process_packlist
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc README Changes
|
|
|
|
%doc %{_mandir}/man?/*
|
2008-12-21 12:31:40 +00:00
|
|
|
%{perl_vendorlib}/Data
|
2008-12-23 15:53:27 +00:00
|
|
|
%{perl_vendorarch}/auto/Data
|
2006-10-31 15:10:18 +00:00
|
|
|
|
|
|
|
%changelog
|