From a348b0015ed52884e1d7e867a5e2ea3ceda99f0c Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 23 Jul 2004 21:45:07 +0000 Subject: [PATCH] Patch from Robert H De Vries. RPM file generation fix for Fedora Core 1 and Redhat AS2.1. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6048 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/swig.spec.in | 39 +++++++++++++-------------------------- 1 file changed, 13 insertions(+), 26 deletions(-) diff --git a/SWIG/swig.spec.in b/SWIG/swig.spec.in index d88fbbae6..4453315f5 100644 --- a/SWIG/swig.spec.in +++ b/SWIG/swig.spec.in @@ -1,11 +1,11 @@ -# You can make the package from CVS by something like: -# tar -cvzf swig-1.3.11cvs.tar.gz SWIG-1.3.11cvs && rpm -tb swig-1.3.11cvs.tar.gz +# You can build the package from CVS using something like: +# tar -czf swig-@PACKAGE_VERSION@.tar.gz SWIG-@PACKAGE_VERSION@ && rpmbuild -tb swig-@PACKAGE_VERSION@.tar.gz # @configure_input@ %define ver @PACKAGE_VERSION@ %define rel 1 %define prefix /usr -%define home_page http://swig.sourceforge.net/ +%define home_page http://www.swig.org %define docprefix %{prefix}/share ###################################################################### @@ -32,15 +32,6 @@ high-level interpreted or compiled programming environments, user interfaces, and as a tool for testing and prototyping C/C++ software. SWIG can also export its parse tree in the form of XML and Lisp s-expressions. -%package runtime -Summary: Runtime libraries required for dynamically loading swig-generated modules -Group: Development/Libraries - -%description runtime -The swig-runtime package contains shared libraries used to share type -information between swig-generated modules loaded into the same application. -Dynamically loading swig-generated modules should use the swig-runtime libs. - %prep %setup -q -n SWIG-%{version} @@ -49,31 +40,27 @@ Dynamically loading swig-generated modules should use the swig-runtime libs. [ ! -r configure ] && ./autogen.sh %configure make -make runtime %install rm -rf ${RPM_BUILD_ROOT} -# Why is exec_prefix not used in BIN_DIR in Makefile? -%makeinstall prefix=${RPM_BUILD_ROOT}%prefix BIN_DIR=${RPM_BUILD_ROOT}%{_exec_prefix}/bin - -DIR=${RPM_BUILD_ROOT} -find $DIR -type f | sed -e "s#^${RPM_BUILD_ROOT}##g" > %{name}.files +make DESTDIR=$RPM_BUILD_ROOT install %clean rm -rf ${RPM_BUILD_ROOT} %files -# -f %{name}.files -/usr/bin/* -/usr/lib/swig* -#%doc /usr/share/doc/swig* -#/usr/share/doc/swig* %defattr(-,root,root) - -%files runtime -/usr/lib/lib* +%doc ANNOUNCE CHANGES FUTURE INSTALL LICENSE NEW README TODO +%doc Doc/* +%{_bindir}/* +%{_libdir}/swig1.3 +%{prefix}/share/aclocal/* %changelog +* Tue Jul 20 2004 William Fulton +- Update for SWIG-1.3.22 - Removed runtime package +* Wed Mar 03 2004 Robert H De Vries +- Update to work with Fedora Core 1 rpm 4.2.1 * Wed Jul 24 2002 Sam Liddicott - Added runtime package of runtime libs * Mon Sep 10 2001 Tony Seward