1 | %define pkgname Tk-TableMatrix |
---|
2 | |
---|
3 | Summary: Perl module for creating and manipulating tables. |
---|
4 | Name: perl-%{pkgname} |
---|
5 | Version: 1.23 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | Group: Development/Libraries |
---|
8 | License: Artistic |
---|
9 | Url: http://search.cpan.org/author/CERNEY/%{pkgname}-%{version}/ |
---|
10 | Source: http://search.cpan.org/CPAN/authors/id/C/CE/CERNEY/%{pkgname}-%{version}.tar.gz |
---|
11 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
12 | BuildRequires: perl(Tk), xorg-x11-devel |
---|
13 | Requires: perl(Tk) |
---|
14 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
15 | |
---|
16 | %description |
---|
17 | The TableMatrix command creates a 2-dimensional grid of cells. The |
---|
18 | table can use a Tcl array variable or Tcl command for data storage and |
---|
19 | retrieval. |
---|
20 | |
---|
21 | %prep |
---|
22 | %setup -q -n %{pkgname}-%{version} |
---|
23 | |
---|
24 | %build |
---|
25 | perl Makefile.PL X11LIB=%{_libdir} INSTALLDIRS=vendor |
---|
26 | find . -name Makefile | xargs perl -pi -e's/pod2man --center (.*) "--"/pod2man -- --center $1/' |
---|
27 | make |
---|
28 | |
---|
29 | %install |
---|
30 | rm -rf %{buildroot} |
---|
31 | %makeinstall DESTDIR=$RPM_BUILD_ROOT |
---|
32 | |
---|
33 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
34 | |
---|
35 | find $RPM_BUILD_ROOT/usr -type f -print | \ |
---|
36 | sed "s@^$RPM_BUILD_ROOT@@g" | \ |
---|
37 | grep -v perllocal.pod | \ |
---|
38 | grep -v "\.packlist" > %{pkgname}-%{version}-filelist |
---|
39 | if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then |
---|
40 | echo "ERROR: EMPTY FILE LIST" |
---|
41 | exit -1 |
---|
42 | fi |
---|
43 | |
---|
44 | %clean |
---|
45 | rm -rf %{buildroot} |
---|
46 | |
---|
47 | %files -f %{pkgname}-%{version}-filelist |
---|
48 | %defattr(-,root,root,-) |
---|
49 | %{perl_archlib}/perllocal.pod |
---|
50 | %{perl_vendorarch}/auto/Tk/TableMatrix/.packlist |
---|
51 | |
---|
52 | %changelog |
---|
53 | * Thu Jul 3 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.23-1 |
---|
54 | - new upstream release. |
---|
55 | |
---|
56 | * Sun May 22 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.22-3 |
---|
57 | - rebuild with perl-5.12.3 |
---|
58 | |
---|
59 | * Sat Oct 11 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.22-2vl5 |
---|
60 | - removed BuildRequires: pwlib-devel |
---|
61 | - installed to vendor_perl dir |
---|
62 | |
---|
63 | * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-1vl5 |
---|
64 | - applied new versioning policy |
---|
65 | - built with perl-5.10.0 |
---|
66 | |
---|
67 | * Mon Dec 31 2007 Shu KONNO <owa@bg.wakwak.com> 1.01-0vl3 |
---|
68 | - added X11LIB to build (for x86_64) |
---|
69 | |
---|
70 | * Tue Aug 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-0vl2 |
---|
71 | - new upstream release |
---|
72 | - rebuild with pwlib-1.10.1 |
---|
73 | |
---|
74 | * Wed Mar 3 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-0vl1 |
---|
75 | - initial build for Vine Linux |
---|
76 | |
---|