commit 446c2f6ec575a160bad0ed9436ae01acd64096ad Author: Petr Písař <ppisar@xxxxxxxxxx> Date: Wed Mar 7 18:14:20 2012 +0100 Import .gitignore | 1 + perl-Tk-ColoredButton.spec | 60 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 62 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..bdbabeb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Tk-ColoredButton-1.05.tar.gz diff --git a/perl-Tk-ColoredButton.spec b/perl-Tk-ColoredButton.spec new file mode 100644 index 0000000..23316c3 --- /dev/null +++ b/perl-Tk-ColoredButton.spec @@ -0,0 +1,60 @@ +Name: perl-Tk-ColoredButton +Version: 1.05 +Release: 1%{?dist} +Summary: Button widget with background gradient color +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Tk-ColoredButton/ +Source0: http://www.cpan.org/authors/id/D/DJ/DJIBEL/Tk-ColoredButton-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +# Run-time +BuildRequires: perl(base) +BuildRequires: perl(Carp) +BuildRequires: perl(Tk) >= 800 +BuildRequires: perl(Tk::Balloon) +BuildRequires: perl(Tk::Canvas::GradientColor) >= 1.04 +BuildRequires: perl(Tk::Derived) +# Tests +BuildRequires: perl(Test::More) +# Optional tests +BuildRequires: perl(Pod::Coverage) >= 0.18 +BuildRequires: perl(Test::Pod) >= 1.22 +BuildRequires: perl(Test::Pod::Coverage) >= 1.08 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +Requires: perl(Tk) >= 800 +Requires: perl(Tk::Canvas::GradientColor) >= 1.04 + +# Filter under-speciefied dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Tk::Canvas::GradientColor\\)$ + +%description +Tk::ColoredButton is an extension of the Tk::Canvas::GradientColor +widget. It is an easy way to simulate a button widget with gradient +background color. + +%prep +%setup -q -n Tk-ColoredButton-%{version} +sed -i -e 's/\r$//' Changes demo/create_buttons.pl README + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; +find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +make test + +%files +%doc Changes demo README +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Wed Feb 22 2012 Petr Pisar <ppisar@xxxxxxxxxx> 1.05-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..fa393bc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1bbd75e97708610cd7e8e563e225e90c Tk-ColoredButton-1.05.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel