[521] | 1 | %define module Data-Buffer |
---|
| 2 | %define name perl-%{module} |
---|
| 3 | %define version 0.04 |
---|
[9022] | 4 | %define release 3%{_dist_release} |
---|
[521] | 5 | |
---|
| 6 | Name: %{name} |
---|
| 7 | Version: %{version} |
---|
| 8 | Release: %{release} |
---|
| 9 | Summary: Read/write buffer class |
---|
[9022] | 10 | Group: Development/Libraries |
---|
[521] | 11 | License: GPL or Artistic |
---|
[9022] | 12 | URL: http://search.cpan.org/dist/%{module}/ |
---|
[521] | 13 | Source: http://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/%{module}-%{version}.tar.gz |
---|
[9022] | 14 | |
---|
[521] | 15 | BuildArch: noarch |
---|
[9022] | 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 17 | BuildRequires: perl(ExtUtils::MakeMaker) |
---|
| 18 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
[521] | 19 | Vendor: Project Vine |
---|
| 20 | Distribution: Vine Linux |
---|
| 21 | |
---|
| 22 | %description |
---|
| 23 | Data::Buffer implements a low-level binary buffer in which you can get and |
---|
| 24 | put integers, strings, and other data. |
---|
| 25 | Internally the implementation is based on pack and unpack, |
---|
| 26 | such that Data::Buffer is really a layer on top of those built-in functions. |
---|
| 27 | |
---|
| 28 | %prep |
---|
| 29 | %setup -q -n %{module}-%{version} |
---|
| 30 | |
---|
| 31 | %build |
---|
| 32 | CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}" |
---|
| 33 | %{__make} |
---|
| 34 | |
---|
| 35 | %check |
---|
| 36 | %{__make} test |
---|
| 37 | |
---|
| 38 | %install |
---|
| 39 | rm -rf %{buildroot} |
---|
| 40 | %makeinstall |
---|
| 41 | rm -f %{buildroot}%{perl_archlib}/perllocal.pod |
---|
| 42 | rm -rf %{buildroot}%{perl_vendorarch} |
---|
| 43 | |
---|
| 44 | %clean |
---|
| 45 | rm -rf %{buildroot} |
---|
| 46 | |
---|
| 47 | %files |
---|
| 48 | %defattr(-,root,root) |
---|
| 49 | %doc README Changes |
---|
| 50 | %{_mandir}/man3*/* |
---|
| 51 | %{perl_vendorlib}/Data/* |
---|
| 52 | |
---|
| 53 | %changelog |
---|
[9022] | 54 | * Sat Oct 11 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.04-3 |
---|
| 55 | - rebuilt with perl-5.16.3. |
---|
| 56 | |
---|
[3736] | 57 | * Sat Apr 30 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.04-2 |
---|
| 58 | - rebuild with perl-5.12.3 |
---|
| 59 | |
---|
[521] | 60 | * Fri May 02 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.04-1vl5 |
---|
| 61 | - rebuild with perl 5.10 |
---|
| 62 | - new versioning policy |
---|
| 63 | |
---|
| 64 | * Mon Mar 10 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.04-0vl1 |
---|
| 65 | - built for VineSeed |
---|
| 66 | |
---|
| 67 | * Sun Mar 09 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.04-0vl0.43 |
---|
| 68 | - rebuilt to relase for VinePlus 4.2 |
---|
| 69 | |
---|
| 70 | * Tue Mar 04 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 0.04-0vl0.42 |
---|
| 71 | - built for Vine 4.2 (testing) |
---|