Accepting request 850226 from devel:tools:building
Fixes https://bugzilla.suse.com/show_bug.cgi?id=1179055 - move examples to /usr/share/swig/examples OBS-URL: https://build.opensuse.org/request/show/850226 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/swig?expand=0&rev=72
This commit is contained in:
commit
bb01767cc2
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 23 10:08:22 UTC 2020 - Klaus Kämpf <kkaempf@suse.com>
|
||||||
|
|
||||||
|
- move examples to /usr/share/swig/examples
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Jun 10 07:27:02 UTC 2020 - Klaus Kämpf <kkaempf@suse.com>
|
Wed Jun 10 07:27:02 UTC 2020 - Klaus Kämpf <kkaempf@suse.com>
|
||||||
|
|
||||||
|
15
swig.spec
15
swig.spec
@ -139,20 +139,20 @@ make %{?_smp_mflags} check
|
|||||||
install -d %{buildroot}%{docpath}
|
install -d %{buildroot}%{docpath}
|
||||||
cp -a TODO ANNOUNCE CHANGES* LICENSE README Doc/{Devel,Manual} \
|
cp -a TODO ANNOUNCE CHANGES* LICENSE README Doc/{Devel,Manual} \
|
||||||
%{buildroot}%{docpath}
|
%{buildroot}%{docpath}
|
||||||
install -d %{buildroot}%{_libdir}/swig
|
install -d %{buildroot}%{_datadir}/swig
|
||||||
cp -a Examples %{buildroot}%{_libdir}/swig/examples
|
cp -a Examples %{buildroot}%{_datadir}/swig/examples
|
||||||
rm -rf %{buildroot}%{_libdir}/swig/examples/test-suite
|
rm -rf %{buildroot}%{_datadir}/swig/examples/test-suite
|
||||||
|
|
||||||
# rm files that are not needed for running or rebuilding the examples
|
# rm files that are not needed for running or rebuilding the examples
|
||||||
find %{buildroot}%{_libdir}/swig \
|
find %{buildroot}%{_datadir}/swig \
|
||||||
-name '*.dsp' -o -name '*.vcproj' -o -name '*.sln' -o \
|
-name '*.dsp' -o -name '*.vcproj' -o -name '*.sln' -o \
|
||||||
-name '*.o' -o -name '*_wrap.c' | xargs rm
|
-name '*.o' -o -name '*_wrap.c' | xargs rm
|
||||||
|
|
||||||
# fix perms
|
# fix perms
|
||||||
chmod -x %{buildroot}%{docpath}/Manual/*
|
chmod -x %{buildroot}%{docpath}/Manual/*
|
||||||
find %{buildroot}%{_libdir}/swig -name '*.h' -perm /111 | \
|
find %{buildroot}%{_datadir}/swig -name '*.h' -perm /111 | \
|
||||||
xargs --no-run-if-empty chmod -x
|
xargs --no-run-if-empty chmod -x
|
||||||
ln -s %{_libdir}/swig/examples %{buildroot}%{docpath}/Examples
|
ln -s %{_datadir}/swig/examples %{buildroot}%{docpath}/Examples
|
||||||
|
|
||||||
%fdupes %{buildroot}
|
%fdupes %{buildroot}
|
||||||
|
|
||||||
@ -161,6 +161,7 @@ ln -s %{_libdir}/swig/examples %{buildroot}%{docpath}/Examples
|
|||||||
%dir %{docpath}
|
%dir %{docpath}
|
||||||
%{docpath}/[A-Z][A-Z]*
|
%{docpath}/[A-Z][A-Z]*
|
||||||
%{_datadir}/swig
|
%{_datadir}/swig
|
||||||
|
%exclude %{_datadir}/swig/examples
|
||||||
%attr(755,root,root) %{_bindir}/swig
|
%attr(755,root,root) %{_bindir}/swig
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
@ -169,6 +170,6 @@ ln -s %{_libdir}/swig/examples %{buildroot}%{docpath}/Examples
|
|||||||
|
|
||||||
%files examples
|
%files examples
|
||||||
%{docpath}/Examples
|
%{docpath}/Examples
|
||||||
%{_libdir}/swig
|
%{_datadir}/swig/examples
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user