From 98362dbaa3939d3051ad1f61624882a01257ee84 Mon Sep 17 00:00:00 2001 From: Jitka Plesnikova <jples...@redhat.com> Date: Thu, 20 Jul 2017 10:17:43 +0200 Subject: Initial import
--- .gitignore | 1 + perl-Tk-FontDialog.spec | 64 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 66 insertions(+) create mode 100644 perl-Tk-FontDialog.spec diff --git a/.gitignore b/.gitignore index e69de29..96c697c 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Tk-FontDialog-0.18.tar.gz diff --git a/perl-Tk-FontDialog.spec b/perl-Tk-FontDialog.spec new file mode 100644 index 0000000..00e5a91 --- /dev/null +++ b/perl-Tk-FontDialog.spec @@ -0,0 +1,64 @@ +%global use_x11_tests 1 + +Name: perl-Tk-FontDialog +Version: 0.18 +Release: 1%{?dist} +Summary: Font dialog widget for perl/Tk +License: GPL+ or Artistic +URL: http://search.cpan.org/dist/Tk-FontDialog/ +Source0: http://www.cpan.org/authors/id/S/SR/SREZIC/Tk-FontDialog-%{version}.tar.gz +BuildArch: noarch +BuildRequires: make +BuildRequires: perl-generators +BuildRequires: perl-interpreter +BuildRequires: perl(:VERSION) >= 5.4 +BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 +# Run-time +BuildRequires: perl(strict) +BuildRequires: perl(Tk) >= 800 +BuildRequires: perl(Tk::Font) +BuildRequires: perl(Tk::HList) +BuildRequires: perl(Tk::ItemStyle) +BuildRequires: perl(vars) +# Tests +BuildRequires: perl(charnames) +BuildRequires: perl(Test::More) +%if %{use_x11_tests} +# X11 tests: +BuildRequires: xorg-x11-server-Xvfb +BuildRequires: xorg-x11-xinit +BuildRequires: font(:lang=en) +%endif +Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version)) +Requires: perl(Tk::HList) +Requires: perl(Tk::ItemStyle) + +%description +This module implements a font dialog widget for perl/Tk. + +%prep +%setup -q -n Tk-FontDialog-%{version} + +%build +perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +%if %{use_x11_tests} + xvfb-run -a make test +%else + make test +%endif + +%files +%doc Changes README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Jul 19 2017 Jitka Plesnikova <jples...@redhat.com> - 0.18-1 +- Initial release diff --git a/sources b/sources index e69de29..08907b5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (Tk-FontDialog-0.18.tar.gz) = 1a4e4a97c7ef4b13793196e2d58943b91e5dc8f02bd1c9e1742957e5e858df4b66e0c63ee83046d6deeeeca1a76795c2c0560e86f0249f45c876a190c0fc01b9 -- cgit v1.1 https://src.fedoraproject.org/cgit/perl-Tk-FontDialog.git/commit/?h=master&id=98362dbaa3939d3051ad1f61624882a01257ee84 _______________________________________________ perl-devel mailing list -- perl-devel@lists.fedoraproject.org To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org