[perl-SOOT] Import

Petr Pisar ppisar at fedoraproject.org
Wed May 29 07:52:15 UTC 2013


commit d5f83d9b0153fb6bfd00928747d5f548ef02cccb
Author: Petr Písař <ppisar at redhat.com>
Date:   Wed May 29 09:51:52 2013 +0200

    Import

 .gitignore     |    1 +
 perl-SOOT.spec |   89 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources        |    1 +
 3 files changed, 91 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..aa5f447 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/SOOT-0.17.tar.gz
diff --git a/perl-SOOT.spec b/perl-SOOT.spec
new file mode 100644
index 0000000..d0a8e43
--- /dev/null
+++ b/perl-SOOT.spec
@@ -0,0 +1,89 @@
+Name:           perl-SOOT
+Version:        0.17
+Release:        1%{?dist}
+Summary:        Use ROOT from Perl
+License:        LGPLv2+
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/SOOT/
+Source0:        http://www.cpan.org/authors/id/S/SM/SMUELLER/SOOT-%{version}.tar.gz
+BuildRequires:  perl
+BuildRequires:  perl(Alien::ROOT) >= 5.26.0.1
+BuildRequires:  perl(base)
+BuildRequires:  perl(Carp) >= 1.01
+BuildRequires:  perl(Config)
+BuildRequires:  perl(ExtUtils::CppGuess) >= 0.01
+BuildRequires:  perl(ExtUtils::ParseXS) >= 3.02
+BuildRequires:  perl(ExtUtils::Typemaps)
+BuildRequires:  perl(ExtUtils::XSpp) >= 0.10
+BuildRequires:  perl(File::Find)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(Getopt::Long)
+# inc::latest not used
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Module::Build)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+BuildRequires:  perl(warnings)
+BuildRequires:  root-reflex
+BuildRequires:  root-graf3d
+BuildRequires:  root-physics
+# Run-time:
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(File::Basename)
+BuildRequires:  perl(overload)
+BuildRequires:  perl(XSLoader)
+# Tests:
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(Carp) >= 1.01
+Provides:       perl(TArray) = %{version}
+Provides:       perl(TClass) = %{version}
+Provides:       perl(TObject) = %{version}
+
+%{?perl_default_filter}
+# Remove under-specified dependencies
+%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Carp\\)$
+
+%description
+SOOT is a Perl extension for using the ROOT library. It is very similar to the
+Ruby-ROOT or PyROOT extensions for their respective languages. Specifically,
+SOOT was implemented after the model of Ruby-ROOT.
+
+%prep
+%setup -q -n SOOT-%{version}
+# Remove bundled modules
+find inc -depth -mindepth 1 \! -name SOOTBuilder.pm -delete
+sed -i -e '/^inc\//d' MANIFEST
+find inc -type f >> MANIFEST
+# Bypass inc::latest as it requires packlists
+sed -i -e "s/use inc::latest '\([^']*\)'/use \1/" Build.PL inc/SOOTBuilder.pm
+# Correct charset
+for F in examples/Graph/markerwarning.pl; do
+    iconv --from ISO-8859-1 --to UTF-8 < "$F" > "${F}.utf8"
+    touch -r "$F" "${F}.utf8"
+    mv "${F}.utf8" "$F"
+done
+
+%build
+perl Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
+./Build
+
+%install
+./Build install destdir=$RPM_BUILD_ROOT create_packlist=0
+find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \;
+%{_fixperms} $RPM_BUILD_ROOT/*
+
+%check
+./Build test
+
+%files
+%doc Changes examples LICENSE README TODO
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/SOOT*
+%{perl_vendorarch}/T*
+%{_mandir}/man3/*
+
+%changelog
+* Tue May 14 2013 Petr Pisar <ppisar at redhat.com> 0.17-1
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..5d9a183 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9a085afbbe21029ec492b50242e15eab  SOOT-0.17.tar.gz


More information about the scm-commits mailing list