[521] | 1 | %define pkgname Tk-TableMatrix |
---|
| 2 | |
---|
| 3 | Summary: Perl module for creating and manipulating tables. |
---|
| 4 | Name: perl-%{pkgname} |
---|
| 5 | Version: 1.22 |
---|
| 6 | Release: 2%{?_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 | |
---|
| 15 | %description |
---|
| 16 | The TableMatrix command creates a 2-dimensional grid of cells. The |
---|
| 17 | table can use a Tcl array variable or Tcl command for data storage and |
---|
| 18 | retrieval. |
---|
| 19 | |
---|
| 20 | %prep |
---|
| 21 | %setup -q -n %{pkgname}-%{version} |
---|
| 22 | |
---|
| 23 | %build |
---|
| 24 | perl Makefile.PL X11LIB=%{_libdir} INSTALLDIRS=vendor |
---|
| 25 | find . -name Makefile | xargs perl -pi -e's/pod2man --center (.*) "--"/pod2man -- --center $1/' |
---|
| 26 | make |
---|
| 27 | |
---|
| 28 | %install |
---|
| 29 | rm -rf %{buildroot} |
---|
| 30 | %makeinstall DESTDIR=$RPM_BUILD_ROOT |
---|
| 31 | |
---|
| 32 | [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress |
---|
| 33 | |
---|
| 34 | find $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 |
---|
| 38 | if [ "$(cat %{pkgname}-%{version}-filelist)X" = "X" ] ; then |
---|
| 39 | echo "ERROR: EMPTY FILE LIST" |
---|
| 40 | exit -1 |
---|
| 41 | fi |
---|
| 42 | |
---|
| 43 | %clean |
---|
| 44 | rm -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 | * Sat Oct 11 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.22-2vl5 |
---|
| 53 | - removed BuildRequires: pwlib-devel |
---|
| 54 | - installed to vendor_perl dir |
---|
| 55 | |
---|
| 56 | * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.01-1vl5 |
---|
| 57 | - applied new versioning policy |
---|
| 58 | - built with perl-5.10.0 |
---|
| 59 | |
---|
| 60 | * Mon Dec 31 2007 Shu KONNO <owa@bg.wakwak.com> 1.01-0vl3 |
---|
| 61 | - added X11LIB to build (for x86_64) |
---|
| 62 | |
---|
| 63 | * Tue Aug 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-0vl2 |
---|
| 64 | - new upstream release |
---|
| 65 | - rebuild with pwlib-1.10.1 |
---|
| 66 | |
---|
| 67 | * Wed Mar 3 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.01-0vl1 |
---|
| 68 | - initial build for Vine Linux |
---|
| 69 | |
---|