[perl-Tk-Pod] Import

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

 



commit 9e31e33c72735f74c77c8b0d931fcba761d5d680
Author: Petr Písař <ppisar@xxxxxxxxxx>
Date:   Wed Nov 23 14:01:46 2011 +0100

    Import

 .gitignore       |    1 +
 perl-Tk-Pod.spec |   88 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cca7d74 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Tk-Pod-0.9939.tar.gz
diff --git a/perl-Tk-Pod.spec b/perl-Tk-Pod.spec
new file mode 100644
index 0000000..c098986
--- /dev/null
+++ b/perl-Tk-Pod.spec
@@ -0,0 +1,88 @@
+%if %fedora == 17
+# F17 has broken X11, re-enable once fixed.
+%global use_x11_tests 0
+%else
+%global use_x11_tests 1
+%endif
+
+Name:           perl-Tk-Pod
+Version:        0.9939
+Release:        1%{?dist}
+Summary:        Pod browser top-level widget
+License:        GPL+ or Artistic
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Tk-Pod/
+Source0:        http://www.cpan.org/authors/id/S/SR/SREZIC/Tk-Pod-%{version}.tar.gz
+BuildArch:      noarch
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(Pod::Simple)
+BuildRequires:  perl(Tk) >= 800.004
+# Tests:
+BuildRequires:  perl(base)
+BuildRequires:  perl(Devel::Hide)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::Command::MM)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(File::Temp)
+BuildRequires:  perl(FindBin)
+BuildRequires:  perl(Getopt::Long)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(Tk::Derived)
+BuildRequires:  perl(Tk::ROText)
+BuildRequires:  perl(Test)
+# Optional tests:
+#BuildRequires:  perl(Tk::HistEntry) >= 0.4
+#BuildRequires:  perl(Text::English)
+%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(File::Temp)
+Requires:       perl(Pod::Simple)
+Requires:       perl(Tk) >= 800.004
+
+# Remove under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Tk(::Pod)?\\)\\s*$
+# Remove not-yet-packages optional dependencies
+%global __requires_exclude %__requires_exclude|^perl\\(Text::English\\)
+
+%description
+Simple Pod browser with hypertext capabilities in a Toplevel widget.
+
+%prep
+%setup -q -n Tk-Pod-%{version}
+chmod -x Pod_usage.pod
+
+%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
+%if %{use_x11_tests}
+    xinit /bin/sh -c 'rm -f ok; make test && touch ok' -- /usr/bin/Xvfb :666
+    test -e ok
+%else
+    make test
+%endif
+
+%files
+%doc Changes README TODO
+%{perl_vendorlib}/*
+%{_bindir}/*
+%{_mandir}/man3/*
+%{_mandir}/man1/*
+
+%changelog
+* Mon Nov 21 2011 Petr Pisar <ppisar@xxxxxxxxxx> 0.9939-1
+- Specfile autogenerated by cpanspec 1.78.
+- Remove BuildRoot and defattr from spec code
diff --git a/sources b/sources
index e69de29..0b02ed9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+a8aac5996c584abac1b05115c4684fd0  Tk-Pod-0.9939.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



[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