source: projects/specs/branches/6/p/perl-Tk-TableMatrix/perl-Tk-TableMatrix-vl.spec @ 3941

Revision 3941, 2.1 KB checked in by munepi, 13 years ago (diff)

updated perl-Tk-TableMatrix?-vl.spec

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