4
%define home_page http://swig.sourceforge.net/
5
%define docprefix %{prefix}/share
7
######################################################################
8
# Usually, nothing needs to be changed below here between releases
9
######################################################################
10
Summary: Simplified Wrapper and Interface Generator
15
Source0: %{name}-%{version}.tar.gz
17
Group: Development/Tools
18
BuildRoot: %{_tmppath}/%{name}-root
21
SWIG is an interface compiler that connects programs written in C,
22
C++, and Objective-C with scripting languages including Perl, Python,
23
and Tcl/Tk. It works by taking the declarations commonly found in
24
C/C++ header files and using them to generate the glue code (wrappers)
25
that scripting languages need to access the underlying C/C++ code
28
%setup -q -n SWIG-%{version}
35
rm -rf ${RPM_BUILD_ROOT}
36
# Why is exec_prefix not used in BIN_DIR in Makefile?
37
%makeinstall BIN_DIR=${RPM_BUILD_ROOT}%{_exec_prefix}/bin
38
#make install prefix=${RPM_BUILD_ROOT}%{_prefix}
40
find $DIR -type f | sed -e "s#^${RPM_BUILD_ROOT}##g" > %{name}.files
41
#cp %{name}.files %{_topdir}
44
rm -rf ${RPM_BUILD_ROOT}
46
%files -f %{name}.files
53
* Mon Sep 10 2001 Tony Seward <anthony.seward@ieee.org>
54
- Merge Red Hat's and Dustin Mitchell's .spec files.
55
- Install all of the examples in the documantation directory.
56
- Auto create the list of installed files.