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