1899
|
1 # You can build the package from Git using something like:
|
|
2 # tar -czf swig-@PACKAGE_VERSION@.tar.gz swig-@PACKAGE_VERSION@ && rpmbuild -tb swig-@PACKAGE_VERSION@.tar.gz
|
|
3 # @configure_input@
|
|
4
|
|
5 %define ver @PACKAGE_VERSION@
|
|
6 %define rel 1
|
|
7 %define prefix /usr
|
|
8 %define home_page http://www.swig.org
|
|
9 %define docprefix %{prefix}/share
|
|
10
|
|
11 ######################################################################
|
|
12 # Usually, nothing needs to be changed below here between releases
|
|
13 ######################################################################
|
|
14 Summary: Simplified Wrapper and Interface Generator
|
|
15 Name: swig
|
|
16 Version: %{ver}
|
|
17 Release: %{rel}
|
|
18 URL: %{home_page}
|
|
19 Source0: %{name}-%{version}.tar.gz
|
|
20 License: BSD
|
|
21 Group: Development/Tools
|
|
22 BuildRoot: %{_tmppath}/%{name}-root
|
|
23
|
|
24 %description
|
|
25 SWIG is a software development tool that connects programs written in C and C++
|
|
26 with a variety of high-level programming languages. SWIG is primarily used with
|
|
27 common scripting languages such as Perl, Python, Tcl/Tk, and Ruby, however the
|
|
28 list of supported languages also includes non-scripting languages such as Java,
|
|
29 OCAML and C#. Also several interpreted and compiled Scheme implementations
|
|
30 (Guile, MzScheme, Chicken) are supported. SWIG is most commonly used to create
|
|
31 high-level interpreted or compiled programming environments, user interfaces,
|
|
32 and as a tool for testing and prototyping C/C++ software. SWIG can also export
|
|
33 its parse tree in the form of XML and Lisp s-expressions.
|
|
34
|
|
35 %prep
|
|
36 %setup -q -n %{name}-%{version}
|
|
37
|
|
38 %build
|
|
39 # so we can build package from Git source too
|
|
40 [ ! -r configure ] && ./autogen.sh
|
|
41 %configure
|
|
42 make
|
|
43
|
|
44 %install
|
|
45 rm -rf ${RPM_BUILD_ROOT}
|
|
46 make DESTDIR=$RPM_BUILD_ROOT install
|
|
47
|
|
48 %clean
|
|
49 rm -rf ${RPM_BUILD_ROOT}
|
|
50
|
|
51 %files
|
|
52 %defattr(-,root,root)
|
|
53 %doc ANNOUNCE CHANGES INSTALL LICENSE LICENSE-GPL LICENSE-UNIVERSITIES README RELEASENOTES
|
|
54 %doc Doc/*
|
|
55 %{_bindir}/*
|
|
56 %{prefix}/share/*
|
|
57
|
|
58 %changelog
|
|
59 * Thu Sep 16 2004 Marcelo Matus <mmatus@acms.arizona.edu>
|
|
60 - Small fixes needed after removing the runtime package
|
|
61 * Tue Jul 20 2004 William Fulton <wsf@fultondesigns.co.uk>
|
|
62 - Update for SWIG-1.3.22 - Removed runtime package
|
|
63 * Wed Mar 03 2004 Robert H De Vries
|
|
64 - Update to work with Fedora Core 1 rpm 4.2.1
|
|
65 * Wed Jul 24 2002 Sam Liddicott <sam@liddicott.com>
|
|
66 - Added runtime package of runtime libs
|
|
67 * Mon Sep 10 2001 Tony Seward <anthony.seward@ieee.org>
|
|
68 - Merge Red Hat's and Dustin Mitchell's .spec files.
|
|
69 - Install all of the examples in the documentation directory.
|
|
70 - Auto create the list of installed files.
|