diff --git a/swig.spec b/swig.spec index 7dbbf83c8508cd62ce2641a0b60c3a225f769e31..183a6eb662c008ffd2d75d3b4779e2879bb578bf 100644 --- a/swig.spec +++ b/swig.spec @@ -1,6 +1,6 @@ Name: swig Version: 3.0.12 -Release: 23 +Release: 24 Summary: Links C/C++/Objective C to languages for some advanced programing License: GPLv3+ and BSD URL: http://swig.sourceforge.net/ @@ -60,25 +60,23 @@ Help document for the swig package. %configure --without-ocaml --without-python --with-python3=%__python3 --without-go --disable-ccache; %make_build +%check make check %install -make clean-examples - -cd Examples/ -find -type f -name 'Makefile.in' -delete -print - -rm -rf test-suite -find -type f -name '*.dsp' -delete -print -find -type f -name '*.dsw' -delete -print +%make_install +install -d %{buildroot}%{_datadir}/swig +cp -a Examples %{buildroot}%{_datadir}/swig/examples +rm -rf %{buildroot}%{_datadir}/swig/examples/test-suite -for all in `find -type f`; do - dos2unix -k $all - chmod -x $all -done -cd - +# 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 -%make_install +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 @@ -102,17 +100,26 @@ 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 Examples README TODO +%doc Doc/{Devel,Manual} README TODO +%{_datadir}/%{name}/examples %doc ANNOUNCE CHANGES CHANGES.current %{_mandir}/man1/swig.1* %changelog +* Tue Feb 23 2021 licihua - 3.0.12-22.h1 +- Type:bugfix +- CVE:NA +- SUG:NA +- DESC:Move make check stage to %check + * Wed Nov 11 2020 liuweibo - 3.0.12-23 - Append help requires to swig