Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
91600b97a3 !11 use make macros to run check in parallel
From: @panxh_purple
Reviewed-by: @xiezhipeng1,@yanglijin,@yanglijin
Signed-off-by: @xiezhipeng1,@yanglijin,@yanglijin
2021-04-20 17:03:55 +08:00
panxiaohe
a17a0256cf use make macros to run check in parallel 2021-04-20 15:57:07 +08:00
openeuler-ci-bot
a3ad5bd846 !7 【轻量级 PR】:Move make check stage to %check
From: @licihua
Reviewed-by: @orange-snn
Signed-off-by: @orange-snn
2021-02-27 16:32:32 +08:00
Monday
990c3be2c7 Move make check stage to %check 2021-02-27 14:09:59 +08:00
openeuler-ci-bot
7b4dff2cfe !3 update to 4.0.2
Merge pull request !3 from 桐小哥/master
2020-07-23 22:15:21 +08:00
sxt1001
65e539286a update to 4.0.2 2020-07-23 17:42:27 +08:00
openeuler-ci-bot
6ce647f77b !2 add swig.yaml
Merge pull request !2 from 成子晗/master
2020-05-08 10:09:04 +08:00
chengzihan2
f03e0b7bab add swig.yaml 2020-05-07 16:46:17 +08:00
openeuler-ci-bot
ab0dfc4b25 !1 package swig init
Merge pull request !1 from jackie_wu123/master
2019-12-05 15:34:31 +08:00
jackie_wu123
40c001d8d4 swig package init 2019-12-04 17:39:13 +08:00
7 changed files with 166 additions and 0 deletions

4
ccache-swig.csh Normal file
View File

@ -0,0 +1,4 @@
# Use ccache-swig by default. Users who don't want that can setenv the
# CCACHE_DISABLE environment variable in their personal profile.
alias swig 'ccache-swig swig'

4
ccache-swig.sh Normal file
View File

@ -0,0 +1,4 @@
# Use ccache-swig by default. Users who don't want that can set the
# CCACHE_DISABLE environment variable in their personal profile.
alias swig='ccache-swig swig'

12
description-ccache.h2m Normal file
View File

@ -0,0 +1,12 @@
[name]
ccache-swig - a fast compiler cache
[description]
ccache-swig is a compiler cache. It speeds up re-compilation of C/C++/SWIG
code by caching previous compiles and detecting when the same compile is
being done again. ccache-swig is ccache plus support for SWIG.
[notes]
For more information, see @DOCDIR@/swig-doc/Doc/Manual/CCache.html from the
swig-doc package.

24
description.h2m Normal file
View File

@ -0,0 +1,24 @@
[name]
swig - Simplified Wrapper and Interface Generator
[synopsis]
swig [ options ] " file"
[description]
The swig command is used to create wrapper code to connect C and C++ code to
scripting languages like Perl, Python, Tcl etc. from the definition of the
interface. For detailed information on writing those interface definitions
please refer to /usr/share/doc/swig-doc/Doc/Manual/index.html from the swig-doc
package.
This manpage concentrates on explaining the invocation of the swig command.
[author]
SWIG was originally created by David Beazley. For up-to-date information
about authors and contributors please check http://www.swig.org/guilty.html.
This manual page was written by Torsten Landschoff <torsten@debian.org> and
updated by Jitka Plesnikova <jplesnik@redhat.com> (but may be used by
others).

BIN
swig-4.0.2.tar.gz Normal file

Binary file not shown.

118
swig.spec Normal file
View File

@ -0,0 +1,118 @@
Name: swig
Version: 4.0.2
Release: 3
Summary: Links C/C++/Objective C to languages for some advanced programing
License: GPLv3+ and BSD
URL: http://swig.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz
Source1: description.h2m
BuildRequires: perl-interpreter pcre-devel python3-devel autoconf automake gawk dos2unix
BuildRequires: gcc-c++ help2man perl-devel perl(base) perl(Config) perl(Devel::Peek)
BuildRequires: perl(ExtUtils::MakeMaker) perl(fields) perl(Math::BigInt) perl(strict)
BuildRequires: perl(Test::More) perl(vars) perl(warnings) boost-devel bison tcl-devel
BuildRequires: lua-devel ruby-devel
Provides: %{name}-gdb = %{version}-%{release}
Obsoletes: %{name}-gdb < %{version}-%{release}
%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 help
Summary: Help document for the swig package
License: BSD
BuildArch: noarch
Provides: %{name}-doc = %{version}-%{release}
Obsoletes: %{name}-doc < %{version}-%{release}
%description help
Help document for the swig package.
%prep
%autosetup -n %{name}-%{version} -p1
%build
./autogen.sh
%configure --without-ocaml --without-python --with-python3=%__python3 --without-go --disable-ccache;
%make_build
%check
%make_build check
%install
%make_install
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' -o -name '*.csproj' -o \
-name '*.dsw' | xargs rm
find %{buildroot}%{_datadir}/swig -name '*.h' -perm /111 | \
xargs --no-run-if-empty chmod -x
echo "Options:" >help_swig
%{buildroot}%{_bindir}/swig --help >>help_swig
sed -i -e 's/^\(\s\+-[^-]\+\)- \(.*\)$/\1 \2/' help_swig
sed -i -e 's/^\(\s\+-\w\+-[^-]*\)- \(.*\)$/\1 \2/' help_swig
cat >h2m_helper_swig <<'EOF'
[ "$1" == "--version" ] && echo "" || cat help_swig
EOF
chmod a+x h2m_helper_swig
help2man -N --section 1 ./h2m_helper_swig --include %{SOURCE1} -o %{name}.1
mkdir -p %{buildroot}%{_mandir}/man1/
install -p -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/
install -d %{buildroot}%{_datadir}/%{name}/gdb
install -pm 644 Tools/swig.gdb %{buildroot}%{_datadir}/%{name}/gdb
%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/examples
%license LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
%doc COPYRIGHT
%exclude %{_datadir}/%name/%{version}/octave/std_carray.i
%files help
%license LICENSE LICENSE-GPL LICENSE-UNIVERSITIES
%doc Doc/{Devel,Manual} README TODO
%{_datadir}/%{name}/examples
%doc ANNOUNCE CHANGES CHANGES.current
%{_mandir}/man1/swig.1*
%changelog
* Tue Apr 20 2021 panxiaohe <panxiaohe@huawei.com> - 4.0.2-3
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:use make macros to run check in parallel
* Tue Feb 23 2021 licihua <licihua@huawei.com> - 4.0.2-2
- Type:bugfix
- CVE:NA
- SUG:NA
- DESC:Move make check stage to %check
* Thu Jul 23 2020 shixuantong <shixuantong@huawei.com> - 4.0.2-1
- update to 4.0.2-1
* Fri Nov 29 2019 wutao <wutao61@huawei.com> - 3.0.12-22
- Package init

4
swig.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: swig/swig
tag_prefix: rel-
seperator: .