commit cc4a90c4bcf2f163118bd3139dc0f7eeb19694b3
Author: Miro Hrončok <m...@hroncok.cz>
Date:   Thu Jan 17 16:16:20 2013 +0100

    Initial import for F18

 .gitignore                                  |    1 +
 perl-Math-Clipper-1.16-1.no-c-sources.patch |   36 ++++++++++++++++
 perl-Math-Clipper.spec                      |   59 +++++++++++++++++++++++++++
 sources                                     |    1 +
 4 files changed, 97 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cb807d9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Math-Clipper-1.15.tar.gz
diff --git a/perl-Math-Clipper-1.16-1.no-c-sources.patch 
b/perl-Math-Clipper-1.16-1.no-c-sources.patch
new file mode 100644
index 0000000..c237eee
--- /dev/null
+++ b/perl-Math-Clipper-1.16-1.no-c-sources.patch
@@ -0,0 +1,36 @@
+diff -ru a/Build.PL b/Build.PL
+--- a/Build.PL 2012-12-26 15:31:43.000000000 +0100
++++ b/Build.PL 2012-12-29 15:49:20.306844474 +0100
+@@ -14,6 +14,8 @@
+   # _GLIBCXX_USE_C99 : to get the long long type for g++
+   # HAS_BOOL         : stops Perl/lib/CORE/handy.h from doing "#  define bool 
char" for MSVC
+   extra_compiler_flags => [qw(-D_GLIBCXX_USE_C99 -DHAS_BOOL)],
++  # Link it to libpolyclipping
++  extra_linker_flags => [qw(-lpolyclipping)],
+   # Provides extra C typemaps that are auto-merged
+   extra_typemap_modules => {
+     'ExtUtils::Typemaps::Default' => '0.05',
+diff -ru a/MANIFEST b/MANIFEST
+--- a/MANIFEST 2012-12-26 15:31:43.000000000 +0100
++++ b/MANIFEST 2012-12-29 15:50:54.963555010 +0100
+@@ -4,8 +4,6 @@
+ MANIFEST                      This list of files
+ MANIFEST.SKIP
+ META.yml
+-src/clipper.cpp
+-src/clipper.hpp
+ src/myinit.h
+ src/poly2av.h
+ src/ppport.h
+diff -ru a/src/myinit.h b/src/myinit.h
+--- a/src/myinit.h     2012-12-26 15:31:43.000000000 +0100
++++ b/src/myinit.h     2012-12-29 15:48:17.674024173 +0100
+@@ -1,7 +1,7 @@
+ #ifndef __clipper_myinit_h_
+ #define __clipper_myinit_h_
+ 
+-#include "clipper.hpp"
++#include <polyclipping/clipper.hpp>
+ 
+ #include "poly2av.h"
+ 
diff --git a/perl-Math-Clipper.spec b/perl-Math-Clipper.spec
new file mode 100644
index 0000000..f9cbbdf
--- /dev/null
+++ b/perl-Math-Clipper.spec
@@ -0,0 +1,59 @@
+Name:           perl-Math-Clipper
+Version:        1.15
+Release:        1%{?dist}
+Summary:        Perl wrapper around Clipper library
+License:        Boost
+Group:          Development/Libraries
+URL:            http://search.cpan.org/dist/Math-Clipper/
+Source0:        
http://www.cpan.org/authors/id/A/AA/AAR/Math-Clipper-%{version}.tar.gz
+Patch0:         %{name}-1.16-1.no-c-sources.patch
+BuildRequires:  perl(Carp)
+BuildRequires:  perl(Config)
+BuildRequires:  perl(constant)
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(ExtUtils::Typemaps::Default) >= 0.05
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(Module::Build::WithXSpp) >= 0.10
+BuildRequires:  perl(Test::Deep)
+BuildRequires:  perl(Test::More)
+BuildRequires:  perl(XSLoader)
+BuildRequires:  polyclipping-devel >= 4.9.6
+Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
+
+%{?perl_default_filter} # Filters (not)shared c libs
+
+%description
+Perl module Math::Clipper is a wrapper around a Clipper library
+that implements polygon clipping.
+
+%prep
+%setup -q -n Math-Clipper-%{version}
+%patch0 -p1
+rm -f src/clipper.{c,h}pp
+
+%build
+perl Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
+./Build
+
+%install
+./Build install destdir=%{buildroot} create_packlist=0
+find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
+
+%{_fixperms} %{buildroot}/*
+
+%check
+./Build test
+
+%files
+%doc Changes
+%{perl_vendorarch}/auto/*
+%{perl_vendorarch}/Math*
+%{_mandir}/man3/*
+
+%changelog
+* Thu Jan 17 2013 Miro Hrončok <mhron...@redhat.com> - 1.17-2
+- %%{__perl} to perl
+- dropped perl(Module::Build) BR
+
+* Thu Jan 17 2013 Miro Hrončok <mhron...@redhat.com> - 1.15-1
+- Release to match polyclipping in F18
diff --git a/sources b/sources
index e69de29..be89560 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d6c7c3dc3e8ce76d0008e3df366704b1  Math-Clipper-1.15.tar.gz
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to