Skip to content

Commit 25a5baf

Browse files
authored
Merge pull request tpaviot#963 from feelpp/debian
Add debian repo for packaging
2 parents a43143b + e592a52 commit 25a5baf

File tree

15 files changed

+1970
-0
lines changed

15 files changed

+1970
-0
lines changed

debian/README.Debian

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pythonocc-core for Debian
2+
------------------------
3+
4+
<possible notes regarding this package - if none, delete this file>
5+
6+
-- Christophe Trophime <christophe.trophime@lncmi.cnrs.fr> Mon, 14 Sep 2020 10:57:01 +0200

debian/README.source

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
pythonocc-core for Debian
2+
------------------------
3+
4+
<this file describes information about the source package, see Debian policy
5+
manual section 4.14. You WILL either need to modify or delete this file>
6+
7+
8+
9+
-- Christophe Trophime <christophe.trophime@lncmi.cnrs.fr> Mon, 14 Sep 2020 10:57:01 +0200
10+

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pythonocc-core (7.4.0-1) unstable; urgency=medium
2+
3+
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
4+
5+
-- Christophe Trophime <christophe.trophime@lncmi.cnrs.fr> Mon, 14 Sep 2020 10:57:01 +0200

debian/control

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Source: pythonocc-core
2+
Section: unknown
3+
Priority: optional
4+
Maintainer: Christophe Trophime <christophe.trophime@lncmi.cnrs.fr>
5+
Build-Depends: debhelper-compat (= 13),
6+
dh-python,
7+
cmake,
8+
python3-setuptools,
9+
python3-all-dev,
10+
occt-misc,
11+
libocct-foundation-dev,
12+
libocct-modeling-algorithms-dev,
13+
libocct-modeling-data-dev,
14+
libocct-ocaf-dev,
15+
libocct-visualization-dev,
16+
libocct-data-exchange-dev,
17+
libocct-draw-dev,
18+
swig,
19+
libtbb-dev, libxi-dev,
20+
python3-six
21+
Standards-Version: 4.5.0
22+
Homepage: https://github.com/tpaviot/pythonocc-core
23+
#Vcs-Browser: https://salsa.debian.org/debian/pythonocc-core
24+
#Vcs-Git: https://salsa.debian.org/debian/pythonocc-core.git
25+
#Testsuite: autopkgtest-pkg-python
26+
Rules-Requires-Root: no
27+
28+
Package: python3-pythonocc-core
29+
Architecture: all
30+
Depends: ${python3:Depends}, ${misc:Depends}
31+
Suggests: python-pythonocc-core-doc
32+
Description: Python bindings to OpenCascade (Python 3)
33+
pythonocc is a python package whose purpose is to provide 3D modeling features.
34+
It is intended to CAD/PDM/PLM and BIM related development.
35+
.
36+
This package installs the library for Python 3.
37+
38+
Package: python-pythonocc-core-doc
39+
Architecture: all
40+
Section: doc
41+
Depends: ${sphinxdoc:Depends}, ${misc:Depends}
42+
Description: Python bindings to OpenCascade (common documentation)
43+
pythonocc is a python package whose purpose is to provide 3D modeling features.
44+
It is intended to CAD/PDM/PLM and BIM related development.
45+
.
46+
This is the common documentation package.

debian/copyright

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2+
Upstream-Name: pythonocc-core
3+
Upstream-Contact: <preferred name and address to reach the upstream project>
4+
Source: https://github.com/tpaviot/pythonocc-core
5+
6+
Files: *
7+
Copyright: 2016-2020 Thomas Paviot <tpaviot@gmail.com>
8+
License: LGPL-v3
9+
10+
Files: debian/*
11+
Copyright: 2020 Christophe Trophime <christophe.trophime@lncmi.cnrs.fr>
12+
License: GPL-2+
13+
This package is free software; you can redistribute it and/or modify
14+
it under the terms of the GNU General Public License as published by
15+
the Free Software Foundation; either version 2 of the License, or
16+
(at your option) any later version.
17+
.
18+
This package is distributed in the hope that it will be useful,
19+
but WITHOUT ANY WARRANTY; without even the implied warranty of
20+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+
GNU General Public License for more details.
22+
.
23+
You should have received a copy of the GNU General Public License
24+
along with this program. If not, see <https://www.gnu.org/licenses/>
25+
.
26+
On Debian systems, the complete text of the GNU General
27+
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".

debian/patches/FTBS-7.4.1.patch

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
Description: <short summary of the patch>
2+
TODO: Put a short summary on the line above and replace this paragraph
3+
with a longer explanation of this change. Complete the meta-information
4+
with other relevant fields (see below for details). To make it easier, the
5+
information below has been extracted from the changelog. Adjust it or drop
6+
it.
7+
.
8+
pythonocc-core (7.4.0-1) unstable; urgency=medium
9+
.
10+
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
11+
Author: Christophe Trophime <christophe.trophime@lncmi.cnrs.fr>
12+
13+
---
14+
The information above should follow the Patch Tagging Guidelines, please
15+
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
16+
are templates for supplementary fields that you might want to add:
17+
18+
Origin: <vendor|upstream|other>, <url of original patch>
19+
Bug: <url in upstream bugtracker>
20+
Bug-Debian: https://bugs.debian.org/<bugnumber>
21+
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
22+
Forwarded: <no|not-needed|url proving that it has been forwarded>
23+
Reviewed-By: <name and email of someone who approved the patch>
24+
Last-Update: 2020-09-14
25+
26+
Index: pythonocc-core-7.4.0/src/SWIG_files/wrapper/BOPAlgo.i
27+
===================================================================
28+
--- pythonocc-core-7.4.0.orig/src/SWIG_files/wrapper/BOPAlgo.i
29+
+++ pythonocc-core-7.4.0/src/SWIG_files/wrapper/BOPAlgo.i
30+
@@ -632,17 +632,6 @@ class BOPAlgo_Tools {
31+
:rtype: void") PerformCommonBlocks;
32+
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>());
33+
34+
- /****************** TreatCompound ******************/
35+
- %feature("compactdefaultargs") TreatCompound;
36+
- %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.
37+
- :param theS:
38+
- :type theS: TopoDS_Shape
39+
- :param theMFence:
40+
- :type theMFence: TopTools_MapOfShape
41+
- :param theLS:
42+
- :type theLS: TopTools_ListOfShape
43+
- :rtype: void") TreatCompound;
44+
- static void TreatCompound (const TopoDS_Shape & theS,TopTools_MapOfShape & theMFence,TopTools_ListOfShape & theLS);
45+
46+
/****************** WiresToFaces ******************/
47+
%feature("compactdefaultargs") WiresToFaces;
48+
Index: pythonocc-core-7.4.0/src/SWIG_files/wrapper/BOPTools.i
49+
===================================================================
50+
--- pythonocc-core-7.4.0.orig/src/SWIG_files/wrapper/BOPTools.i
51+
+++ pythonocc-core-7.4.0/src/SWIG_files/wrapper/BOPTools.i
52+
@@ -776,6 +776,18 @@ class BOPTools_AlgoTools {
53+
:rtype: int") Sense;
54+
static Standard_Integer Sense (const TopoDS_Face & theF1,const TopoDS_Face & theF2,const opencascade::handle<IntTools_Context> & theContext);
55+
56+
+ /****************** TreatCompound ******************/
57+
+ %feature("compactdefaultargs") TreatCompound;
58+
+ %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.
59+
+ :param theS:
60+
+ :type theS: TopoDS_Shape
61+
+ :param theLS:
62+
+ :type theLS: TopTools_ListOfShape
63+
+ :param theMFence:
64+
+ :type theMFence: TopTools_MapOfShape
65+
+ :rtype: void") TreatCompound;
66+
+ static void TreatCompound (const TopoDS_Shape & theS,TopTools_ListOfShape & theLS, TopTools_MapOfShape * theMFence);
67+
+
68+
/****************** UpdateVertex ******************/
69+
%feature("compactdefaultargs") UpdateVertex;
70+
%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>

0 commit comments

Comments
 (0)