Sync from SUSE:ALP:Source:Standard:1.0 saltbundle-swig revision 20af222c4e2d77b618c121dccd225cd3
This commit is contained in:
commit
272c916123
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
36
remove-pthread_setname_np-test.patch
Normal file
36
remove-pthread_setname_np-test.patch
Normal file
@ -0,0 +1,36 @@
|
||||
diff -urN a/Examples/test-suite/director_thread.i b/Examples/test-suite/director_thread.i
|
||||
--- a/Examples/test-suite/director_thread.i 2022-11-30 08:35:05.000000000 +0100
|
||||
+++ b/Examples/test-suite/director_thread.i 2024-01-27 17:33:22.863045414 +0100
|
||||
@@ -105,24 +105,6 @@
|
||||
MilliSecondSleep(500);
|
||||
}
|
||||
|
||||
- void setThreadName() {
|
||||
-%#ifdef _WIN32
|
||||
-%#else
|
||||
-
|
||||
-%#ifdef __APPLE__
|
||||
- int setname = pthread_setname_np("MyThreadName");
|
||||
-%#else
|
||||
- int setname = pthread_setname_np(pthread_self(), "MyThreadName");
|
||||
-%#endif
|
||||
-
|
||||
- if (setname != 0) {
|
||||
- errno = setname;
|
||||
- perror("calling pthread_setname_np in setThreadName()");
|
||||
- assert(0);
|
||||
- }
|
||||
-%#endif
|
||||
- }
|
||||
-
|
||||
static bool namedThread() {
|
||||
%#ifdef _WIN32
|
||||
return false;
|
||||
@@ -146,7 +128,6 @@
|
||||
#endif
|
||||
{
|
||||
Foo* f = static_cast<Foo*>(t);
|
||||
- f->setThreadName();
|
||||
while (!get_thread_terminate()) {
|
||||
MilliSecondSleep(50);
|
||||
f->do_foo();
|
1212
saltbundle-swig.changes
Normal file
1212
saltbundle-swig.changes
Normal file
File diff suppressed because it is too large
Load Diff
199
saltbundle-swig.spec
Normal file
199
saltbundle-swig.spec
Normal file
@ -0,0 +1,199 @@
|
||||
#
|
||||
# spec file for package saltbundle-swig
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%bcond_with swig_ocaml
|
||||
%if 0%{?fedora} + 0%{?rhel} + 0%{?centos_version} + 0%{?openeuler_version} > 0
|
||||
%define docpath %{_docdir}/%{name}-%{version}
|
||||
BuildRequires: perl-Test-Simple
|
||||
BuildRequires: perl-devel
|
||||
%if 0%{?centos_version} && 0%{?centos_version} < 800
|
||||
BuildRequires: ruby
|
||||
%endif
|
||||
%endif
|
||||
%if 0%{?suse_version} > 0
|
||||
%define docpath %{_docdir}/%{name}
|
||||
BuildRequires: ruby-devel
|
||||
%endif
|
||||
Name: saltbundle-swig
|
||||
Version: 4.1.1
|
||||
Release: 0
|
||||
Summary: Simplified Wrapper and Interface Generator
|
||||
License: BSD-3-Clause AND GPL-3.0-or-later
|
||||
Group: Development/Languages/C and C++
|
||||
URL: http://www.swig.org/
|
||||
Source: https://github.com/swig/swig/archive/v%{version}/swig-v%{version}.tar.gz
|
||||
Source1: swig.rpmlintrc
|
||||
%if 0%{?suse_version} == 1110
|
||||
Patch1: remove-pthread_setname_np-test.patch
|
||||
%endif
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: bison
|
||||
BuildRequires: fdupes
|
||||
%if 0%{?suse_version} == 1110
|
||||
BuildRequires: gcc48-c++
|
||||
%else
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
BuildRequires: libtool
|
||||
%if 0%{?debian} || 0%{?ubuntu} || 0%{?raspbian}
|
||||
BuildRequires: libpcre2-dev
|
||||
%else
|
||||
BuildRequires: pcre2-devel
|
||||
%endif
|
||||
BuildRequires: perl
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: saltbundlepy-devel
|
||||
BuildRequires: saltbundlepy-rpm-macros
|
||||
BuildRequires: saltbundlepy-tools
|
||||
%if 0%{?centos_version} >= 800
|
||||
BuildRequires: boost-devel
|
||||
%else
|
||||
%if 0%{?suse_version} >= 1500
|
||||
BuildRequires: libboost_headers-devel
|
||||
%else
|
||||
BuildRequires: boost-devel
|
||||
%endif
|
||||
%endif
|
||||
%if %{with swig_ocaml}
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: ocaml >= 3.12.0
|
||||
BuildRequires: ocaml-camlp4-devel
|
||||
BuildRequires: ocaml-findlib
|
||||
%endif
|
||||
|
||||
%description
|
||||
SWIG is a compiler that attempts to make it easy to integrate C, C++,
|
||||
or Objective-C code with scripting languages including Perl, Tcl, and
|
||||
Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
|
||||
and it generates an interface between C and your favorite scripting
|
||||
language. However, this is only scratching the surface of what SWIG
|
||||
can do--some of its more advanced features include automatic
|
||||
documentation generation, module and library management, extensive
|
||||
customization options, and more.
|
||||
|
||||
%package doc
|
||||
Summary: SWIG Manual
|
||||
License: BSD-3-Clause
|
||||
Group: Documentation/Man
|
||||
Requires: swig
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
SWIG is a compiler that attempts to make it easy to integrate C, C++,
|
||||
or Objective-C code with scripting languages including Perl, Tcl, and
|
||||
Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
|
||||
and it generates an interface between C and your favorite scripting
|
||||
language. However, this is only scratching the surface of what SWIG
|
||||
can do--some of its more advanced features include automatic
|
||||
documentation generation, module and library management, extensive
|
||||
customization options, and more.
|
||||
|
||||
This package contains the SWIG manual.
|
||||
|
||||
%package examples
|
||||
Summary: SWIG example files
|
||||
License: BSD-3-Clause
|
||||
Group: Documentation/Howto
|
||||
Requires: swig
|
||||
|
||||
%description examples
|
||||
SWIG is a compiler that attempts to make it easy to integrate C, C++,
|
||||
or Objective-C code with scripting languages including Perl, Tcl, and
|
||||
Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
|
||||
and it generates an interface between C and your favorite scripting
|
||||
language. However, this is only scratching the surface of what SWIG
|
||||
can do--some of its more advanced features include automatic
|
||||
documentation generation, module and library management, extensive
|
||||
customization options, and more.
|
||||
|
||||
This package contains SWIG examples, useful both for testing and
|
||||
understandig SWIG usage.
|
||||
|
||||
%prep
|
||||
%setup -q -n swig-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%if 0%{?suse_version} == 1110
|
||||
export CC=gcc-4.8
|
||||
export CXX=g++-4.8
|
||||
%endif
|
||||
%ifarch s390 s390x
|
||||
export CCSHARED="-fPIC"
|
||||
%endif
|
||||
./autogen.sh
|
||||
%configure \
|
||||
%if %{without swig_ocaml}
|
||||
--without-ocaml \
|
||||
%endif
|
||||
%if 0%{?suse_version} == 1110
|
||||
--without-perl5 \
|
||||
--without-ruby \
|
||||
%endif
|
||||
--disable-ccache
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%if 0%{?suse_version} == 1110
|
||||
export CC=gcc-4.8
|
||||
export CXX=g++-4.8
|
||||
%endif
|
||||
export PY3=true
|
||||
make %{?_smp_mflags} check EXTRA_CXXFLAGS="-fexcess-precision=fast"
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
install -d %{buildroot}%{docpath}
|
||||
cp -a TODO ANNOUNCE CHANGES* LICENSE README Doc/{Devel,Manual} \
|
||||
%{buildroot}%{docpath}
|
||||
install -d %{buildroot}%{_datadir}/swig
|
||||
cp -a Examples %{buildroot}%{_datadir}/swig/examples
|
||||
rm -rf %{buildroot}%{_datadir}/swig/examples/test-suite
|
||||
|
||||
# rm files that are not needed for running or rebuilding the examples
|
||||
find %{buildroot}%{_datadir}/swig \
|
||||
-name '*.dsp' -o -name '*.vcproj' -o -name '*.sln' -o \
|
||||
-name '*.o' -o -name '*_wrap.c' | xargs rm
|
||||
|
||||
# fix perms
|
||||
chmod -x %{buildroot}%{docpath}/Manual/*
|
||||
find %{buildroot}%{_datadir}/swig -name '*.h' -perm /111 | \
|
||||
xargs --no-run-if-empty chmod -x
|
||||
ln -s %{_datadir}/swig/examples %{buildroot}%{docpath}/Examples
|
||||
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(644,root,root,755)
|
||||
%dir %{docpath}
|
||||
%{docpath}/[A-Z][A-Z]*
|
||||
%{_datadir}/swig
|
||||
%exclude %{_datadir}/swig/examples
|
||||
%attr(755,root,root) %{_bindir}/swig
|
||||
|
||||
%files doc
|
||||
%{docpath}/Devel
|
||||
%{docpath}/Manual
|
||||
|
||||
%files examples
|
||||
%{docpath}/Examples
|
||||
%{_datadir}/swig/examples
|
||||
|
||||
%changelog
|
BIN
swig-v4.1.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
swig-v4.1.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
1
swig.rpmlintrc
Normal file
1
swig.rpmlintrc
Normal file
@ -0,0 +1 @@
|
||||
addFilter("devel-file-in-non-devel-package .*/usr/share/swig/.*/.*/.*")
|
Loading…
Reference in New Issue
Block a user