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