diff options
author | Dave Beazley <dave-swig@dabeaz.com> | 2002-11-30 22:01:28 +0000 |
---|---|---|
committer | Dave Beazley <dave-swig@dabeaz.com> | 2002-11-30 22:01:28 +0000 |
commit | 12a43edc2df8853e8e0315f742e57be88f0c4269 (patch) | |
tree | e3237f5f8c0a67c9bfa9bb5d6d095a739a49e4b2 /swig.spec.in | |
parent | 5fcae5eb66d377e1c3f81da7465c44a62295a72b (diff) | |
download | swig-12a43edc2df8853e8e0315f742e57be88f0c4269.tar.gz |
The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'swig.spec.in')
-rw-r--r-- | swig.spec.in | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/swig.spec.in b/swig.spec.in new file mode 100644 index 000000000..ee79c96dd --- /dev/null +++ b/swig.spec.in @@ -0,0 +1,78 @@ +# 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 +# @configure_input@ + +%define ver @SWIG_MAJOR_VERSION@.@SWIG_MINOR_VERSION@.@SWIG_SPIN@ +%define rel 1 +%define prefix /usr +%define home_page http://swig.sourceforge.net/ +%define docprefix %{prefix}/share + +###################################################################### +# Usually, nothing needs to be changed below here between releases +###################################################################### +Summary: Simplified Wrapper and Interface Generator +Name: swig +Version: %{ver} +Release: %{rel} +URL: %{home_page} +Source0: %{name}-%{version}.tar.gz +License: BSD +Group: Development/Tools +BuildRoot: %{_tmppath}/%{name}-root + +%description +SWIG is an interface compiler that connects programs written in C, +C++, and Objective-C with scripting languages including Perl, Python, +and Tcl/Tk. It works by taking the declarations commonly found in +C/C++ header files and using them to generate the glue code (wrappers) +that scripting languages need to access the underlying C/C++ code + +%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} + +%build +# so we can build package from cvs source too +[ ! -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 + +%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* + +%changelog +* 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> +- Merge Red Hat's and Dustin Mitchell's .spec files. +- Install all of the examples in the documantation directory. +- Auto create the list of installed files. |