Skip to content

Commit

Permalink
Add debian repo for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Trophime committed Feb 11, 2021
1 parent a43143b commit e592a52
Show file tree
Hide file tree
Showing 15 changed files with 1,970 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pythonocc-core for Debian
------------------------

<possible notes regarding this package - if none, delete this file>

-- Christophe Trophime <[email protected]> Mon, 14 Sep 2020 10:57:01 +0200
10 changes: 10 additions & 0 deletions debian/README.source
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pythonocc-core for Debian
------------------------

<this file describes information about the source package, see Debian policy
manual section 4.14. You WILL either need to modify or delete this file>



-- Christophe Trophime <[email protected]> Mon, 14 Sep 2020 10:57:01 +0200

5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pythonocc-core (7.4.0-1) unstable; urgency=medium

* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>

-- Christophe Trophime <[email protected]> Mon, 14 Sep 2020 10:57:01 +0200
46 changes: 46 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Source: pythonocc-core
Section: unknown
Priority: optional
Maintainer: Christophe Trophime <[email protected]>
Build-Depends: debhelper-compat (= 13),
dh-python,
cmake,
python3-setuptools,
python3-all-dev,
occt-misc,
libocct-foundation-dev,
libocct-modeling-algorithms-dev,
libocct-modeling-data-dev,
libocct-ocaf-dev,
libocct-visualization-dev,
libocct-data-exchange-dev,
libocct-draw-dev,
swig,
libtbb-dev, libxi-dev,
python3-six
Standards-Version: 4.5.0
Homepage: https://github.com/tpaviot/pythonocc-core
#Vcs-Browser: https://salsa.debian.org/debian/pythonocc-core
#Vcs-Git: https://salsa.debian.org/debian/pythonocc-core.git
#Testsuite: autopkgtest-pkg-python
Rules-Requires-Root: no

Package: python3-pythonocc-core
Architecture: all
Depends: ${python3:Depends}, ${misc:Depends}
Suggests: python-pythonocc-core-doc
Description: Python bindings to OpenCascade (Python 3)
pythonocc is a python package whose purpose is to provide 3D modeling features.
It is intended to CAD/PDM/PLM and BIM related development.
.
This package installs the library for Python 3.

Package: python-pythonocc-core-doc
Architecture: all
Section: doc
Depends: ${sphinxdoc:Depends}, ${misc:Depends}
Description: Python bindings to OpenCascade (common documentation)
pythonocc is a python package whose purpose is to provide 3D modeling features.
It is intended to CAD/PDM/PLM and BIM related development.
.
This is the common documentation package.
27 changes: 27 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: pythonocc-core
Upstream-Contact: <preferred name and address to reach the upstream project>
Source: https://github.com/tpaviot/pythonocc-core

Files: *
Copyright: 2016-2020 Thomas Paviot <[email protected]>
License: LGPL-v3

Files: debian/*
Copyright: 2020 Christophe Trophime <[email protected]>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
70 changes: 70 additions & 0 deletions debian/patches/FTBS-7.4.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
pythonocc-core (7.4.0-1) unstable; urgency=medium
.
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
Author: Christophe Trophime <[email protected]>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2020-09-14

Index: pythonocc-core-7.4.0/src/SWIG_files/wrapper/BOPAlgo.i
===================================================================
--- pythonocc-core-7.4.0.orig/src/SWIG_files/wrapper/BOPAlgo.i
+++ pythonocc-core-7.4.0/src/SWIG_files/wrapper/BOPAlgo.i
@@ -632,17 +632,6 @@ class BOPAlgo_Tools {
:rtype: void") PerformCommonBlocks;
static void PerformCommonBlocks (const BOPDS_IndexedDataMapOfPaveBlockListOfInteger & theMBlocks,const opencascade::handle<NCollection_BaseAllocator> & theAllocator,BOPDS_PDS & pDS,const opencascade::handle<IntTools_Context> & theContext = opencascade::handle<IntTools_Context>());

- /****************** TreatCompound ******************/
- %feature("compactdefaultargs") TreatCompound;
- %feature("autodoc", "* Collect in the output list recursively all non-compound subshapes of the first level of the given shape theS. If a shape presents in the map theMFence it is skipped. All shapes put in the output are also added into theMFence.
- :param theS:
- :type theS: TopoDS_Shape
- :param theMFence:
- :type theMFence: TopTools_MapOfShape
- :param theLS:
- :type theLS: TopTools_ListOfShape
- :rtype: void") TreatCompound;
- static void TreatCompound (const TopoDS_Shape & theS,TopTools_MapOfShape & theMFence,TopTools_ListOfShape & theLS);

/****************** WiresToFaces ******************/
%feature("compactdefaultargs") WiresToFaces;
Index: pythonocc-core-7.4.0/src/SWIG_files/wrapper/BOPTools.i
===================================================================
--- pythonocc-core-7.4.0.orig/src/SWIG_files/wrapper/BOPTools.i
+++ pythonocc-core-7.4.0/src/SWIG_files/wrapper/BOPTools.i
@@ -776,6 +776,18 @@ class BOPTools_AlgoTools {
:rtype: int") Sense;
static Standard_Integer Sense (const TopoDS_Face & theF1,const TopoDS_Face & theF2,const opencascade::handle<IntTools_Context> & theContext);

+ /****************** TreatCompound ******************/
+ %feature("compactdefaultargs") TreatCompound;
+ %feature("autodoc", "* Collect in the output list recursively all non-compound subshapes of the first level of the given shape theS. If a shape presents in the map theMFence it is skipped. All shapes put in the output are also added into theMFence.
+ :param theS:
+ :type theS: TopoDS_Shape
+ :param theLS:
+ :type theLS: TopTools_ListOfShape
+ :param theMFence:
+ :type theMFence: TopTools_MapOfShape
+ :rtype: void") TreatCompound;
+ static void TreatCompound (const TopoDS_Shape & theS,TopTools_ListOfShape & theLS, TopTools_MapOfShape * theMFence);
+
/****************** UpdateVertex ******************/
%feature("compactdefaultargs") UpdateVertex;
%feature("autodoc", "* @name Updating the vertex Update the tolerance value for vertex <aV> taking into account the fact that <aV> lays on the curve <aIC>
Loading

0 comments on commit e592a52

Please sign in to comment.