This commit is contained in:
committed by
Git OBS Bridge
parent
76b8f9c3c4
commit
a3583282bd
49
swig.spec
49
swig.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package swig (Version 1.3.29)
|
||||
# spec file for package swig (Version 1.3.31)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
@@ -17,13 +17,11 @@ License: BSD License and BSD-like
|
||||
Group: Development/Languages/C and C++
|
||||
Autoreqprov: on
|
||||
Summary: Simplified Wrapper and Interface Generator
|
||||
Version: 1.3.29
|
||||
Release: 24
|
||||
Source: %{name}-%{version}.tar.bz2
|
||||
Patch1: %{name}-%{version}-testsuite.patch
|
||||
Patch2: %{name}-%{version}-autoconf260.patch
|
||||
Patch3: swig-1.3.29-python25.patch
|
||||
Patch4: swig-1.3.29-python-module-crash.patch
|
||||
Version: 1.3.31
|
||||
Release: 2
|
||||
Source: swig-%{version}.tar.bz2
|
||||
Patch1: swig-testsuite.patch
|
||||
Patch2: swig-1.3.31-testsuite-warnings.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@@ -41,6 +39,7 @@ customization options, and more.
|
||||
Authors:
|
||||
--------
|
||||
Dave Beazley <beazley@cs.utah.edu>
|
||||
William S Fulton <wsf@fultondesigns.co.uk>
|
||||
|
||||
%package doc
|
||||
Summary: SWIG Manual
|
||||
@@ -80,7 +79,7 @@ can do--some of its more advanced features include automatic
|
||||
documentation generation, module and library management, extensive
|
||||
customization options, and more.
|
||||
|
||||
This package contains SWIG examples, usefull both for testing and
|
||||
This package contains SWIG examples, useful both for testing and
|
||||
understandig SWIG usage.
|
||||
|
||||
|
||||
@@ -94,25 +93,33 @@ Authors:
|
||||
chmod -x Doc/Manual/*
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3
|
||||
%patch4
|
||||
|
||||
%build
|
||||
ACLOCAL="aclocal -I Tools/config" autoreconf -fi
|
||||
export CCSHARED="-fPIC $RPM_OPT_FLAGS"
|
||||
export CCSHARED="-fPIC -fno-strict-aliasing $RPM_OPT_FLAGS"
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS"
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=%{_libdir}
|
||||
make %{?jobs:-j%jobs}
|
||||
%ifarch %ix86 s390
|
||||
# this test is known to fail on these architectures as of swig-1.3.31
|
||||
mv Examples/test-suite/perl5/li_std_string_runme.pl \
|
||||
Examples/test-suite/perl5/li_std_string_runme.pl.DISABLED
|
||||
# reminder
|
||||
test %version = 1.3.31
|
||||
%endif
|
||||
make check
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
install -d $RPM_BUILD_ROOT%{_docdir}/%{name}
|
||||
cp -a FUTURE TODO NEW ANNOUNCE CHANGES* LICENSE README Doc/{Devel,Manual} \
|
||||
Examples $RPM_BUILD_ROOT%{_docdir}/%{name}/
|
||||
$RPM_BUILD_ROOT%{_docdir}/%{name}/
|
||||
install -d $RPM_BUILD_ROOT%{_libdir}/swig
|
||||
cp -a Examples $RPM_BUILD_ROOT%_libdir/swig/
|
||||
ln -s %_libdir/swig/Examples $RPM_BUILD_ROOT%_docdir/%name/
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
@@ -132,8 +139,20 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%files examples
|
||||
%defattr(-,root,root)
|
||||
%{_docdir}/%{name}/Examples
|
||||
%{_libdir}/swig
|
||||
|
||||
%changelog -n swig
|
||||
%changelog
|
||||
* Wed Apr 04 2007 - mmarek@suse.cz
|
||||
- install the precompiled examples to %%_libdir/swig
|
||||
* Wed Jan 24 2007 - mmarek@suse.cz
|
||||
- temporarily disabled li_std_string run test under perl5 on ix86
|
||||
and s390
|
||||
- build examples and testsuite with -fno-strict-aliasing (packages
|
||||
using swig & python should do the same for now)
|
||||
- fixed testsuite-warnings.patch
|
||||
* Fri Dec 15 2006 - mmarek@suse.cz
|
||||
- updated to 1.3.31, for changes see
|
||||
http://swig.svn.sourceforge.net/viewvc/swig/trunk/CHANGES?r1=9073&r2=9585&diff_format=u
|
||||
* Wed Nov 08 2006 - mmarek@suse.cz
|
||||
- fixed bug in the python module that caused aborts on some
|
||||
architectures
|
||||
|
Reference in New Issue
Block a user