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:
parent
206198adfd
commit
a348b0015e
1 changed files with 13 additions and 26 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
# You can make the package from CVS by something like:
|
# You can build the package from CVS using something like:
|
||||||
# tar -cvzf swig-1.3.11cvs.tar.gz SWIG-1.3.11cvs && rpm -tb swig-1.3.11cvs.tar.gz
|
# tar -czf swig-@PACKAGE_VERSION@.tar.gz SWIG-@PACKAGE_VERSION@ && rpmbuild -tb swig-@PACKAGE_VERSION@.tar.gz
|
||||||
# @configure_input@
|
# @configure_input@
|
||||||
|
|
||||||
%define ver @PACKAGE_VERSION@
|
%define ver @PACKAGE_VERSION@
|
||||||
%define rel 1
|
%define rel 1
|
||||||
%define prefix /usr
|
%define prefix /usr
|
||||||
%define home_page http://swig.sourceforge.net/
|
%define home_page http://www.swig.org
|
||||||
%define docprefix %{prefix}/share
|
%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
|
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.
|
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
|
%prep
|
||||||
%setup -q -n SWIG-%{version}
|
%setup -q -n SWIG-%{version}
|
||||||
|
|
||||||
|
|
@ -49,31 +40,27 @@ Dynamically loading swig-generated modules should use the swig-runtime libs.
|
||||||
[ ! -r configure ] && ./autogen.sh
|
[ ! -r configure ] && ./autogen.sh
|
||||||
%configure
|
%configure
|
||||||
make
|
make
|
||||||
make runtime
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
# Why is exec_prefix not used in BIN_DIR in Makefile?
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||||||
%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
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
# -f %{name}.files
|
|
||||||
/usr/bin/*
|
|
||||||
/usr/lib/swig*
|
|
||||||
#%doc /usr/share/doc/swig*
|
|
||||||
#/usr/share/doc/swig*
|
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc ANNOUNCE CHANGES FUTURE INSTALL LICENSE NEW README TODO
|
||||||
%files runtime
|
%doc Doc/*
|
||||||
/usr/lib/lib*
|
%{_bindir}/*
|
||||||
|
%{_libdir}/swig1.3
|
||||||
|
%{prefix}/share/aclocal/*
|
||||||
|
|
||||||
%changelog
|
%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>
|
* Wed Jul 24 2002 Sam Liddicott <sam@liddicott.com>
|
||||||
- Added runtime package of runtime libs
|
- Added runtime package of runtime libs
|
||||||
* Mon Sep 10 2001 Tony Seward <anthony.seward@ieee.org>
|
* Mon Sep 10 2001 Tony Seward <anthony.seward@ieee.org>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue