Accepting request 1150449 from home:AndreasStieger:branches:devel:tools:building
swig 4.2.1 OBS-URL: https://build.opensuse.org/request/show/1150449 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/swig?expand=0&rev=150
This commit is contained in:
parent
7a4cda7555
commit
d03b693edf
18
_service
18
_service
@ -1,18 +0,0 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="manual">
|
||||
<param name="url">https://github.com/swig/swig.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="exclude">.git</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
<param name="revision">v4.2.0</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="recompress" mode="manual">
|
||||
<param name="file">swig-*.tar</param>
|
||||
<param name="compression">gz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="manual">
|
||||
<param name="basename">swig</param>
|
||||
</service>
|
||||
</services>
|
@ -1,4 +0,0 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/swig/swig.git</param>
|
||||
<param name="changesrevision">d65157602d53d08c2fad5c362f66c8c0cae7a4f4</param></service></servicedata>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:93e8242d0dcb5216f9ddd314d668db8f22ff2a40575b1ee69ea2627113e839cc
|
||||
size 3927127
|
3
swig-4.2.1.tar.gz
Normal file
3
swig-4.2.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fa045354e2d048b2cddc69579e4256245d4676894858fcf0bab2290ecf59b7d8
|
||||
size 8364050
|
12
swig.changes
12
swig.changes
@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Feb 25 09:25:59 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
|
||||
|
||||
- update to 4.2.1:
|
||||
* Tcl 9.0 support
|
||||
* Octave 9.0 support
|
||||
* Improvements wrapping friend functions
|
||||
* Variadic templated functions within a template support
|
||||
* Type deduction enhancements
|
||||
* Stability and regression fixes
|
||||
- package examples as noarch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 25 11:22:31 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
|
39
swig.spec
39
swig.spec
@ -30,30 +30,25 @@ BuildRequires: ruby
|
||||
BuildRequires: ruby-devel
|
||||
%endif
|
||||
Name: swig
|
||||
Version: 4.2.0
|
||||
Version: 4.2.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}/%{name}-%{version}.tar.gz
|
||||
URL: https://www.swig.org/
|
||||
Source: https://sourceforge.net/projects/swig/files/swig/swig-%{version}/%{name}-%{version}.tar.gz
|
||||
Source1: %{name}.rpmlintrc
|
||||
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: bison >= 3.5
|
||||
BuildRequires: fdupes
|
||||
%if 0%{?suse_version} <= 1600
|
||||
BuildRequires: gcc12
|
||||
BuildRequires: gcc12-c++
|
||||
%else
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pcre2-devel
|
||||
BuildRequires: perl
|
||||
BuildRequires: pkgconfig
|
||||
%if 0%{?suse_version} <= 1600
|
||||
BuildRequires: gcc12
|
||||
BuildRequires: gcc12-c++
|
||||
%else
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
%if 0%{?centos_version} >= 800
|
||||
BuildRequires: boost-devel
|
||||
BuildRequires: python3-devel
|
||||
@ -109,6 +104,7 @@ Summary: SWIG example files
|
||||
License: BSD-3-Clause
|
||||
Group: Documentation/Howto
|
||||
Requires: swig
|
||||
BuildArch: noarch
|
||||
|
||||
%description examples
|
||||
SWIG is a compiler that attempts to make it easy to integrate C, C++,
|
||||
@ -124,7 +120,7 @@ This package contains SWIG examples, useful both for testing and
|
||||
understandig SWIG usage.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
%if 0%{?suse_version} <= 1600
|
||||
@ -134,25 +130,24 @@ export CXX=g++-12
|
||||
%ifarch s390 s390x
|
||||
export CCSHARED="-fPIC"
|
||||
%endif
|
||||
./autogen.sh
|
||||
%configure \
|
||||
%if %{without swig_ocaml}
|
||||
--without-ocaml \
|
||||
%endif
|
||||
--disable-ccache
|
||||
make %{?_smp_mflags}
|
||||
%make_build
|
||||
|
||||
%check
|
||||
%if 0%{?suse_version} >= 1500 || 0%{?centos_version} >= 800
|
||||
export PY3=true
|
||||
%endif
|
||||
make %{?_smp_mflags} check EXTRA_CXXFLAGS="-fexcess-precision=fast"
|
||||
%make_build check EXTRA_CXXFLAGS="-fexcess-precision=fast"
|
||||
|
||||
%install
|
||||
%make_install
|
||||
|
||||
install -d %{buildroot}%{docpath}
|
||||
cp -a TODO ANNOUNCE CHANGES* LICENSE README Doc/{Devel,Manual} \
|
||||
cp -a TODO ANNOUNCE CHANGES* README Doc/{Devel,Manual} \
|
||||
%{buildroot}%{docpath}
|
||||
install -d %{buildroot}%{_datadir}/swig
|
||||
cp -a Examples %{buildroot}%{_datadir}/swig/examples
|
||||
@ -172,7 +167,7 @@ ln -s %{_datadir}/swig/examples %{buildroot}%{docpath}/Examples
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(644,root,root,755)
|
||||
%license LICENSE
|
||||
%dir %{docpath}
|
||||
%{docpath}/[A-Z][A-Z]*
|
||||
%{_datadir}/swig
|
||||
@ -180,10 +175,12 @@ ln -s %{_datadir}/swig/examples %{buildroot}%{docpath}/Examples
|
||||
%attr(755,root,root) %{_bindir}/swig
|
||||
|
||||
%files doc
|
||||
%license LICENSE
|
||||
%{docpath}/Devel
|
||||
%{docpath}/Manual
|
||||
|
||||
%files examples
|
||||
%license LICENSE
|
||||
%{docpath}/Examples
|
||||
%{_datadir}/swig/examples
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user