[perl-Math-Clipper] Initial import (#887913)
Miro Hrončok
churchyard at fedoraproject.org
Thu Jan 17 14:49:45 UTC 2013
commit 9da87adfde570e52e8ff7e5409fbf8d22a33671b
Author: Miro Hrončok <miro at hroncok.cz>
Date: Thu Jan 17 15:49:38 2013 +0100
Initial import (#887913)
.gitignore | 1 +
perl-Math-Clipper-1.16-1.no-c-sources.patch | 36 +++++++++++
perl-Math-Clipper.spec | 90 +++++++++++++++++++++++++++
sources | 1 +
4 files changed, 128 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..498c508 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Math-Clipper-1.17.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..48b61cb
--- /dev/null
+++ b/perl-Math-Clipper.spec
@@ -0,0 +1,90 @@
+Name: perl-Math-Clipper
+Version: 1.17
+Release: 2%{?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 >= 5.0.3
+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 <mhroncok at redhat.com> - 1.17-2
+- %%{__perl} to perl
+- dropped perl(Module::Build) BR
+
+* Thu Jan 17 2013 Miro Hrončok <mhroncok at redhat.com> - 1.17-1
+- New release
+- Wants newer polyclipping
+
+* Thu Jan 03 2013 Miro Hrončok <miro at hroncok.cz> - 1.16-2
+- Removed META.json and xsp from doc
+- Specified version for polyclipping-devel BR
+- Specified version for perl(Module::Build::WithXSpp) BR
+- Removed perl(ExtUtils::XSpp) BR
+- Added BRs perl(XSLoader) and perl(constant)
+
+* Fri Dec 28 2012 Miro Hrončok <miro at hroncok.cz> - 1.16-1
+- New version
+- Removed boundled C clipper and using the distribution one
+- Removed no longer needed dos2unix
+
+* Mon Dec 17 2012 Miro Hrončok <miro at hroncok.cz> - 1.15-1
+- New version
+- Added perl(Config) and perl(Exporter) to BRs
+- Removed deleting empty directories
+- using dos2unix instead of sed
+
+* Fri Nov 16 2012 Miro Hrončok <miro at hroncok.cz> - 1.14-2
+- Removed BRs provided by perl package
+
+* Sun Oct 07 2012 Miro Hrončok <miro at hroncok.cz> 1.14-1
+- New version.
+
+* Sun Oct 07 2012 Miro Hrončok <miro at hroncok.cz> 1.09-2
+- Rebuilding for 32bit, no spec changes.
+
+* Thu Oct 04 2012 Miro Hrončok <miro at hroncok.cz> 1.09-1
+- Specfile autogenerated by cpanspec 1.78 and revised.
diff --git a/sources b/sources
index e69de29..e8cddf9 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1fcba1c1106c4e56c2f4d740f97619c4 Math-Clipper-1.17.tar.gz
More information about the scm-commits
mailing list