18861N/A#
18861N/A# spec file for package SFEswig
18861N/A#
18861N/A# Copyright 2008 Sun Microsystems, Inc.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
18861N/A# temp spec for swig, needed by graphviz, until SFW integrates swig
18861N/A#
18861N/A%include Solaris.inc
18861N/A
18861N/AName: SFEswig
18861N/ASummary: SWIG Interface compiler
18861N/AVersion: 1.3.35
18861N/ASource: http://downloads.sourceforge.net/swig/swig-%{version}.tar.gz
18861N/A# date:2008-07-24 owner:dermot type:bug
18861N/APatch1: swig-01-solaris_include.diff
18861N/AURL: http://www.swig.org/
18861N/ASUNW_BaseDir: %{_basedir}
18861N/ASUNW_Copyright: %{name}.copyright
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/A
18861N/A%include default-depend.inc
18861N/ARequires: SUNWlibC
18861N/ARequires: SUNWlibms
18861N/A
18861N/A
18861N/A%prep
18861N/A%setup -q -n swig-%version
18861N/A%patch1 -p0
18861N/A
18861N/A
18861N/A%build
18861N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
18861N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
18861N/A CPUS=1
18861N/Afi
18861N/Aexport CFLAGS="%optflags"
18861N/A%if %cc_is_gcc
18861N/A%else
18861N/Aexport CXX="${CXX} -norunpath"
18861N/A%endif
18861N/Aexport CXXFLAGS="%cxx_optflags"
18861N/A
18861N/A./configure --prefix=%{_prefix} --mandir=%{_mandir} \
18861N/A --libdir=%{_libdir} \
18861N/A --libexecdir=%{_libexecdir} \
18861N/A --sysconfdir=%{_sysconfdir}
18861N/A
18861N/Amake -j$CPUS
18861N/A
18861N/A%install
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/Amake install DESTDIR=$RPM_BUILD_ROOT
18861N/A
18861N/A%clean
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A
18861N/A%files
18861N/A%defattr (-, root, bin)
18861N/A%dir %attr (0755, root, bin) %{_bindir}
18861N/A%{_bindir}/*
18861N/A%dir %attr (0755, root, sys) %{_datadir}
18861N/A%{_datadir}/*
18861N/A
18861N/A%changelog
18861N/A* Wed Jul 30 2008 - dermot.mccluskey@sun.com
18861N/A- Bump to 1.3.35 and add patch for C++/Perl header issue.
18861N/A* Thu Jan 24 2008 - nonsea@users.sourceforge.net
18861N/A- Bump to 1.3.33.
18861N/A* Tue Mar 06 2007 - nonsea@users.sourceforge.net
18861N/A- Bump to 1.3.31
18861N/A* Tue Nov 11 2006 - halton.huo@sun.com
18861N/A- Bump to 1.3.30
18861N/A* Fri Jun 23 2006 - laca@sun.com
18861N/A- rename to SFEswig
18861N/A- delete -share subpkg
18861N/A- update file attributes to match JDS
18861N/A* Sun Jan 08 2005 - glynn.foster@sun.com
18861N/A- Initial spec file
19149N/A
19466N/A