[perl-Tk-ToolBar] initial import (rhbz#795605)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



commit 8c046a4affe288395d5dfebcfe9f3ce29bad8a91
Author: Iain Arnell <iarnell@xxxxxxxxx>
Date:   Mon Feb 27 09:27:10 2012 -0700

    initial import (rhbz#795605)

 .gitignore                     |    1 +
 perl-Tk-ToolBar-no-demos.patch |   14 +++++++++
 perl-Tk-ToolBar.spec           |   62 ++++++++++++++++++++++++++++++++++++++++
 sources                        |    1 +
 4 files changed, 78 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9fa83e9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Tk-ToolBar-0.10.zip
diff --git a/perl-Tk-ToolBar-no-demos.patch b/perl-Tk-ToolBar-no-demos.patch
new file mode 100644
index 0000000..c36eeef
--- /dev/null
+++ b/perl-Tk-ToolBar-no-demos.patch
@@ -0,0 +1,14 @@
+diff -up Tk-ToolBar-0.10/Makefile.PL.orig Tk-ToolBar-0.10/Makefile.PL
+--- Tk-ToolBar-0.10/Makefile.PL.orig	2010-02-27 16:11:44.000000000 -0700
++++ Tk-ToolBar-0.10/Makefile.PL	2012-02-20 17:16:18.012721646 -0700
+@@ -23,10 +23,6 @@ WriteMakefile1(
+ 	      },
+ 	      PM               => {
+ 				   'ToolBar.pm'       => '$(INST_LIB)/Tk/ToolBar.pm',
+-				   'toolbar.pl'       => ($] >= 5.005 ?
+-							  '$(INST_ARCHLIB)' :
+-							  '$(INST_LIB)') .
+-				   '/Tk/demos/widtrib/toolbar.pl',
+ 				   'ToolBar/tkIcons'  => '$(INST_LIB)/Tk/ToolBar/tkIcons',
+ 				  },
+ 	     );
diff --git a/perl-Tk-ToolBar.spec b/perl-Tk-ToolBar.spec
new file mode 100644
index 0000000..fe965bf
--- /dev/null
+++ b/perl-Tk-ToolBar.spec
@@ -0,0 +1,62 @@
+Name:           perl-Tk-ToolBar
+Version:        0.10
+Release:        2%{?dist}
+Summary:        Toolbar widget for Perl/Tk
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Tk-ToolBar/
+Source0:        http://www.cpan.org/authors/id/C/CH/CHORNY/Tk-ToolBar-%{version}.zip
+# don't install toolbar.pl demo - add to docs instead
+Patch0:         perl-Tk-ToolBar-no-demos.patch
+BuildArch:      noarch
+BuildRequires:  perl >= 0:5.005
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(Test)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Test::Pod)
+BuildRequires:  perl(Tk)
+BuildRequires:  perl(Tk::CursorControl)
+Requires:       perl(Tk::CursorControl)
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+%{?perl_default_filter}
+
+%description
+This module implements a dockable toolbar. It is in the same spirit as the
+"short-cut" toolbars found in most major applications, such as most web
+browsers and text editors (where you find the "back" or "save" and other
+shortcut buttons).
+
+%prep
+%setup -q -n Tk-ToolBar-%{version}
+%patch0 -p1
+
+# strip CRLF
+find -type f -print0 | xargs -0 sed -i 's/\r$//'
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+make pure_install DESTDIR=%{buildroot}
+
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+%check
+make test
+
+%files
+%doc Changes README toolbar.pl
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+
+%changelog
+* Wed Feb 22 2012 Iain Arnell <iarnell@xxxxxxxxx> 0.10-2
+- R/BR perl(Tk::CursorControl) now that it's available
+
+* Mon Feb 20 2012 Iain Arnell <iarnell@xxxxxxxxx> 0.10-1
+- Specfile autogenerated by cpanspec 1.79.
diff --git a/sources b/sources
index e69de29..dd3d6ba 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c21f0f0320651eac05c5c6071f87df35  Tk-ToolBar-0.10.zip
--
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



[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]
  Powered by Linux