diff --git a/README.md b/README.md index d4c0d07..f64d69c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # swig +SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages + diff --git a/swig-2.0.9-php-5.4.11.patch b/swig-2.0.9-php-5.4.11.patch new file mode 100644 index 0000000..3140a6a --- /dev/null +++ b/swig-2.0.9-php-5.4.11.patch @@ -0,0 +1,10 @@ +--- swig-2.0.9/Source/Modules/php.cxx.orig 2013-02-27 13:02:04.248418984 +0100 ++++ swig-2.0.9/Source/Modules/php.cxx 2013-02-27 13:01:41.800681771 +0100 +@@ -418,6 +418,7 @@ + Append(s_header, "static void SWIG_FAIL() __attribute__ ((__noreturn__));\n"); + Append(s_header, "#endif\n\n"); + Append(s_header, "static void SWIG_FAIL() {\n"); ++ Append(s_header, " TSRMLS_FETCH();\n"); + Append(s_header, " zend_error(SWIG_ErrorCode(), \"%s\", SWIG_ErrorMsg());\n"); + // zend_error() should never return with the parameters we pass, but if it + // does, we really don't want to let SWIG_FAIL() return. This also avoids diff --git a/swig.spec b/swig.spec new file mode 100644 index 0000000..56e5d98 --- /dev/null +++ b/swig.spec @@ -0,0 +1,102 @@ +Name: swig +Version: 3.0.0 +Release: 1mamba +Summary: SWIG is a software development tool that connects programs written in C and C++ +Group: Applications/Development +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.swig.org/ +Source: http://downloads.sourceforge.net/sourceforge/swig/swig-%{version}.tar.gz +Patch0: swig-2.0.9-php-5.4.11.patch +License: BSD +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libpcre-devel +BuildRequires: libstdc++6-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +%if "%{stage1}" != "1" +BuildRequires: php-devel +%endif + +%description +SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages + +%prep +%setup -q +#%patch0 -p1 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +#install -d %{buildroot}%{_bindir} +%makeinstall + +install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/* +%{_datadir}/%{name}/%{version}/* +%{_mandir}/man1/ccache-swig.1* +%doc LICENSE +#CHANGES README TODO + +%changelog +* Wed Mar 26 2014 Automatic Build System 3.0.0-1mamba +- automatic version update by autodist + +* Tue Feb 11 2014 Automatic Build System 2.0.12-1mamba +- automatic version update by autodist + +* Tue Sep 17 2013 Automatic Build System 2.0.11-1mamba +- automatic version update by autodist + +* Mon Jun 10 2013 Automatic Build System 2.0.10-1mamba +- automatic version update by autodist + +* Wed Feb 27 2013 Silvan Calarco 2.0.9-2mamba +- added patch for php 5.4.11 + +* Thu Jan 03 2013 Automatic Build System 2.0.9-1mamba +- automatic version update by autodist + +* Fri Aug 05 2011 Automatic Build System 2.0.4-1mamba +- automatic version update by autodist + +* Thu Feb 24 2011 Automatic Build System 2.0.2-1mamba +- automatic update by autodist + +* Mon Oct 11 2010 Automatic Build System 2.0.1-1mamba +- automatic update by autodist + +* Sun Jun 06 2010 Automatic Build System 2.0.0-1mamba +- automatic update by autodist + +* Fri Aug 28 2009 Automatic Build System 1.3.40-1mamba +- automatic update by autodist + +* Thu Jul 09 2009 Automatic Build System 1.3.39-1mamba +- automatic update by autodist + +* Sat Jul 19 2008 gil 1.3.36-1mamba +- update to 1.3.36 + +* Sun Feb 10 2008 Silvan Calarco 1.3.33-1mamba +- update to 1.3.33 +- changed maintainer + +* Tue Jun 13 2006 Stefano Cotta Ramusino 1.3.29-1qilnx +- update to version 1.3.29 by autospec + +* Mon Jul 18 2005 Alessandro Ramazzina 1.3.25-1qilnx +- package created by autospec