~ubuntu-branches/ubuntu/maverick/swig1.3/maverick

« back to all changes in this revision

Viewing changes to Tools/swig.spec

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Landschoff
  • Date: 2002-03-29 01:56:07 UTC
  • Revision ID: james.westby@ubuntu.com-20020329015607-c0wt03xu8oy9ioj7
Tags: upstream-1.3.11
ImportĀ upstreamĀ versionĀ 1.3.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%define ver          1.3.7
 
2
%define rel          1
 
3
%define prefix       /usr
 
4
%define home_page    http://swig.sourceforge.net/
 
5
%define docprefix    %{prefix}/share
 
6
 
 
7
######################################################################
 
8
# Usually, nothing needs to be changed below here between releases
 
9
######################################################################
 
10
Summary: Simplified Wrapper and Interface Generator
 
11
Name: swig
 
12
Version: %{ver}
 
13
Release: %{rel}
 
14
URL: %{home_page}
 
15
Source0: %{name}-%{version}.tar.gz
 
16
License: BSD
 
17
Group: Development/Tools
 
18
BuildRoot: %{_tmppath}/%{name}-root
 
19
 
 
20
%description
 
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
 
26
 
 
27
%prep
 
28
%setup -q -n SWIG-%{version}
 
29
 
 
30
%build
 
31
%configure
 
32
make
 
33
 
 
34
%install
 
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}
 
39
DIR=${RPM_BUILD_ROOT}
 
40
find $DIR -type f | sed -e "s#^${RPM_BUILD_ROOT}##g" > %{name}.files
 
41
#cp %{name}.files %{_topdir}
 
42
 
 
43
%clean
 
44
rm -rf ${RPM_BUILD_ROOT}
 
45
 
 
46
%files -f %{name}.files
 
47
%doc Examples
 
48
%doc Doc
 
49
%defattr(-,root,root)
 
50
 
 
51
 
 
52
%changelog
 
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.