diff --git a/_service b/_service deleted file mode 100644 index 1618ebe..0000000 --- a/_service +++ /dev/null @@ -1,18 +0,0 @@ - - - https://github.com/swig/swig.git - git - .git - @PARENT_TAG@ - v(.*) - v4.2.0 - enable - - - swig-*.tar - gz - - - swig - - diff --git a/_servicedata b/_servicedata deleted file mode 100644 index 6094568..0000000 --- a/_servicedata +++ /dev/null @@ -1,4 +0,0 @@ - - - https://github.com/swig/swig.git - d65157602d53d08c2fad5c362f66c8c0cae7a4f4 \ No newline at end of file diff --git a/swig-4.2.0.tar.gz b/swig-4.2.0.tar.gz deleted file mode 100644 index 19790d2..0000000 --- a/swig-4.2.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:93e8242d0dcb5216f9ddd314d668db8f22ff2a40575b1ee69ea2627113e839cc -size 3927127 diff --git a/swig-4.2.1.tar.gz b/swig-4.2.1.tar.gz new file mode 100644 index 0000000..75c796c --- /dev/null +++ b/swig-4.2.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa045354e2d048b2cddc69579e4256245d4676894858fcf0bab2290ecf59b7d8 +size 8364050 diff --git a/swig.changes b/swig.changes index 4b14bbd..cc75374 100644 --- a/swig.changes +++ b/swig.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sun Feb 25 09:25:59 UTC 2024 - Andreas Stieger + +- 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 diff --git a/swig.spec b/swig.spec index 4ceab3b..6ef0ccf 100644 --- a/swig.spec +++ b/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