From 9d6e4a57e78fa402532cc6b1570b3f9b39b73be3 Mon Sep 17 00:00:00 2001 From: Nicolas Chauvet Date: Jul 29 2008 18:21:49 +0000 Subject: Initial import for F-8 --- diff --git a/perl-Tk-TableMatrix.spec b/perl-Tk-TableMatrix.spec new file mode 100644 index 0000000..f1a8cb5 --- /dev/null +++ b/perl-Tk-TableMatrix.spec @@ -0,0 +1,90 @@ +Name: perl-Tk-TableMatrix +Version: 1.23 +Release: 4%{?dist} +Summary: Perl module for creating and manipulating tables + +Group: Development/Libraries +License: (GPL+ or Artistic) and BSD +URL: http://search.cpan.org/dist/Tk-TableMatrix/ +Source0: http://search.cpan.org/CPAN/authors/id/C/CE/CERNEY/Tk-TableMatrix-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: libX11-devel +# See (RHBZ#456019) +BuildRequires: perl(Tk) + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +%description +The TableMatrix command creates a 2-dimensional grid of cells. The +table can use a Tcl array variable or Tcl command for data storage and +retrieval. + +%prep +%setup -q -n Tk-TableMatrix-%{version} + +# fix perms +chmod 644 COPYING README TableMatrix.pm TableMatrix.xs TableMatrix/Spreadsheet.pm \ + TableMatrix/SpreadsheetHideRows.pm pTk/license.terms pTk/mTk/license.terms +# copy license +cp -p pTk/license.terms license.terms.pTk +cp -p pTk/mTk/license.terms license.terms.mTk + +# Fix end-of-line-encoding +touch -r demos/edit_styles.pl demos/edit_styles.pl.timestamps +sed -i 's/\r//' demos/edit_styles.pl +touch -r demos/edit_styles.pl.timestamps demos/edit_styles.pl +rm demos/edit_styles.pl.timestamps + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';' +find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';' +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';' +chmod -R u+w $RPM_BUILD_ROOT/* + +chmod -x demos/* + +%check +# disabled by default because it needs an x screen +%{?_with_tests:make test} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc ChangeLog COPYING README Changes +# See (RHBZ#456019). +%doc license.terms.pTk license.terms.mTk +%doc demos +%{perl_vendorarch}/Tk/ +%{perl_vendorarch}/auto/* +%{_mandir}/man3/*.3* + + +%changelog +* Tue Jul 29 2008 kwizart < kwizart at gmail.com > - 1.23-4 +- Fix encoding + +* Sat Jul 19 2008 kwizart < kwizart at gmail.com > - 1.23-3 +- Add conditional build --with tests +- Add demos directory as %%doc + +* Mon May 19 2008 kwizart < kwizart at gmail.com > - 1.23-2 +- Fix directory owership for perl packages. +- Add BR libX11-devel + +* Wed Apr 30 2008 kwizart < kwizart at gmail.com > - 1.23-1 +- Initial package for Fedora + diff --git a/sources b/sources index e69de29..1701aed 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6b7653d129bf1a8327054a88b58d6364 Tk-TableMatrix-1.23.tar.gz