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
This commit is contained in:
William S Fulton 2004-07-23 21:45:07 +00:00
commit a348b0015e

View file

@ -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 <wsf@fultondesigns.co.uk>
- 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 <sam@liddicott.com>
- Added runtime package of runtime libs
* Mon Sep 10 2001 Tony Seward <anthony.seward@ieee.org>