SPECS/swig/swig.spec
f4d17450
 Summary:	Connects C/C++/Objective C to some high-level programming languages
 Name:		swig
31204a78
 Version:	3.0.12
815e7831
 Release:	2%{?dist}
 License:	GPLv3+
f4d17450
 URL:		http://swig.sourceforge.net/
 Source0:	http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz
31204a78
 %define sha1 swig=5cc1af41d041e4cc609580b99bb3dcf720effa25
f4d17450
 Vendor:		VMware, Inc.
 Distribution:	Photon
 BuildRequires:	pcre-devel
 Requires:	pcre
 
 %description
 Simplified Wrapper and Interface Generator (SWIG) is a software
 development tool for connecting C, C++ and Objective C programs with a
 variety of high-level programming languages.  SWIG is primarily used
 with Perl, Python and Tcl/TK, but it has also been extended to Java,
 Eiffel and Guile. SWIG is normally used to create high-level
 interpreted programming environments, systems integration, and as a
 tool for building user interfaces
 
 %prep
 %setup -q -n swig-%{version}
 
 %build
 ./autogen.sh
 
 %configure \
 	--without-ocaml \
  	--without-java \
  	--without-r \
  	--without-go
 
 make %{?_smp_mflags}
 
 %install
 
 make DESTDIR=%{buildroot} install
 
 # Enable ccache-swig by default, if ccache is installed.
 mkdir -p %{buildroot}%{_libdir}/ccache
 ln -fs ../../bin/ccache-swig %{buildroot}%{_libdir}/ccache/swig
 
85c433d7
 %check
 make %{?_smp_mflags} check
 
f4d17450
 %files
 %{_bindir}/*
 %{_datadir}/swig
 %{_libdir}/ccache
 
 %changelog
815e7831
 *       Tue May 02 2017 Vinay Kulkarni <kulkarniv@vmware.com> 3.0.12-2
 -       Correct the license.
31204a78
 *       Wed Apr 12 2017 Vinay Kulkarni <kulkarniv@vmware.com> 3.0.12-1
 -       Update to version 3.0.12
 *       Tue Oct 04 2016 ChangLee <changlee@vmware.com> 3.0.8-3
85c433d7
 -       Modified %check
c3a3fd12
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.0.8-2
 -	GA - Bump release of all rpms
a3a3250f
 * 	Tue Feb 23 2016 Anish Swaminathan <anishs@vmware.com>  3.0.8-1
 - 	Upgrade to 3.0.8
 * 	Thu Feb 26 2015 Divya Thaluru <dthaluru@vmware.com> 3.0.5-1
 - 	Initial version
f4d17450