1 | %define name perl-Data-ShowTable |
---|
2 | %define real_name Data-ShowTable |
---|
3 | %define version 3.3 |
---|
4 | %define release 7%{?_dist_release} |
---|
5 | |
---|
6 | Summary: Perl 5 module to print arrays of data |
---|
7 | Name: %{name} |
---|
8 | Version: %{version} |
---|
9 | Release: %{release} |
---|
10 | License: GPL |
---|
11 | Group: Development/Libraries |
---|
12 | URL: http://www.cpan.org |
---|
13 | Source0: ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Data/%{real_name}-%{version}.tar.bz2 |
---|
14 | Patch0: %{real_name}-3.3.patch.bz2 |
---|
15 | BuildRequires: perl |
---|
16 | BuildArch: noarch |
---|
17 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
18 | |
---|
19 | %description |
---|
20 | ShowTable.pm, version 3.3, is a Perl 5 module which defines subroutines to |
---|
21 | print arrays of data in a nicely formatted listing, using one of four possible |
---|
22 | formats: simple table, boxed table, list style, and HTML-formatting (for |
---|
23 | World-Wide-Web output). See the documentation on ShowTable.pm for details on |
---|
24 | the formatting. |
---|
25 | |
---|
26 | %prep |
---|
27 | %setup -q -n %{real_name}-%{version} |
---|
28 | %patch0 -p1 |
---|
29 | |
---|
30 | find . -type f | xargs perl -pi -e "s|/usr/bin/perl5|/usr/bin/perl|g" |
---|
31 | |
---|
32 | %build |
---|
33 | CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor |
---|
34 | make |
---|
35 | |
---|
36 | %check |
---|
37 | make test |
---|
38 | |
---|
39 | %install |
---|
40 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
41 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
42 | |
---|
43 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
44 | |
---|
45 | find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \; |
---|
46 | |
---|
47 | find $RPM_BUILD_ROOT/usr -type f -print | |
---|
48 | sed "s@^$RPM_BUILD_ROOT@@g" | |
---|
49 | grep -v perllocal.pod | |
---|
50 | grep -v "\.packlist" > Data-ShowTable-%{version}-filelist |
---|
51 | if [ "$(cat Data-ShowTable-%{version}-filelist)X" = "X" ] ; then |
---|
52 | echo "ERROR: EMPTY FILE LIST" |
---|
53 | exit -1 |
---|
54 | fi |
---|
55 | |
---|
56 | %clean |
---|
57 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
58 | |
---|
59 | |
---|
60 | %files -f Data-ShowTable-%{version}-filelist |
---|
61 | %defattr(-,root,root) |
---|
62 | |
---|
63 | %changelog |
---|
64 | * Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 3.3-7vl5 |
---|
65 | - applied new versioning policy |
---|
66 | |
---|
67 | * Sat Jul 21 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.3-6vl6 |
---|
68 | - changed Group to Development/Libraries |
---|
69 | |
---|
70 | * Sat Jul 15 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.3-6vl5 |
---|
71 | - changed Group to Development/Languages |
---|
72 | |
---|
73 | * Mon Jan 10 2005 Satoshi MACHINO <machino@vinelinux.org> 3.3-6vl4 |
---|
74 | - rebuilt with perl-5.8.6 |
---|
75 | |
---|
76 | * Sat Feb 23 2002 Satoshi MACHINO <machino@vinelinux.org> 3.3-6vl3 |
---|
77 | - changed ftp site of source |
---|
78 | |
---|
79 | * Fri Feb 01 2002 Satoshi MACHINO <machino@vinelinux.org> 3.3-6vl2 |
---|
80 | - modified spec file |
---|
81 | |
---|
82 | * Sun Jan 27 2002 Satoshi MACHINO <machino@vinelinux.org> 3.3-6vl1 |
---|
83 | - build on VineLinux |
---|
84 | - fixed spec file |
---|
85 | |
---|
86 | * Thu Nov 08 2001 FraníÐis Pons <fpons@mandrakesoft.com> 3.3-6mdk |
---|
87 | - added url tag. |
---|
88 | |
---|
89 | * Tue Oct 16 2001 Stefan van der Eijk <stefan@eijk.nu> 3.3-5mdk |
---|
90 | - BuildRequires: perl-devel |
---|
91 | |
---|
92 | * Sun Jun 17 2001 Geoffrey Lee <snailtalk@mandrakesoft.com> 3.3-4mdk |
---|
93 | - Rebuild against latest perl. |
---|
94 | |
---|
95 | * Thu Aug 03 2000 FraníÐis Pons <fpons@mandrakesoft.com> 3.3-3mdk |
---|
96 | - macroszifications. |
---|
97 | - noarch. |
---|
98 | |
---|
99 | * Mon Apr 3 2000 Guillaume Cottenceau <gc@mandrakesoft.com> 3.3-2mdk |
---|
100 | - fixed group |
---|
101 | - rebuild with new perl |
---|
102 | - fixed location |
---|
103 | - patched the source in order to build, the tests in order to test |
---|
104 | - fixed install process for correct man1 install |
---|
105 | |
---|
106 | * Sun Dec 05 1999 Axalon Bloodstone <axalon@linux-mandrake.com> |
---|
107 | - First spec file |
---|
108 | |
---|