]> git.pld-linux.org Git - packages/swig.git/blame - swig.spec
- updated to 2.0.4
[packages/swig.git] / swig.spec
CommitLineData
1164fd14 1#
2dfe0926 2# Conditional build:
3%bcond_without guile # disable guile support
4%bcond_without ocaml # disable ocaml support
c9149a66 5%bcond_without octave # disable octave support
2dfe0926 6%bcond_without perl # disable perl support
a53a7b90 7%bcond_without php # disable php support
2dfe0926 8%bcond_without ruby # disable ruby support
a53a7b90
JB
9%bcond_without tcl # disable tcl support
10#
f1505a61 11Summary: Interface generator for Perl, Tcl, Guile and Python
eeba410f
ER
12Summary(pl.UTF-8): Generator interfejsów do Perla, Tcl-a, Guile'a i Pythona
13Summary(pt_BR.UTF-8): Gerador de Interfaces e "Wrappers" Simplificado (SWIG)
f1505a61 14Name: swig
b25c5e04
JB
15Version: 2.0.4
16Release: 1
8d185dc8 17License: GPL v3+ (utility), free (library)
f1505a61 18Group: Development/Languages
8d185dc8 19Source0: http://downloads.sourceforge.net/swig/%{name}-%{version}.tar.gz
b25c5e04 20# Source0-md5: 4319c503ee3a13d2a53be9d828c3adc0
2a3705bd 21Patch0: %{name}-php-freearg.patch
509026de 22Patch1: %{name}-guile2.patch
a778deab 23URL: http://www.swig.org/
8d185dc8
JB
24BuildRequires: autoconf >= 2.58
25BuildRequires: automake >= 1:1.7.2
2dfe0926 26%{?with_guile:BuildRequires: guile-devel}
17739701 27BuildRequires: libstdc++-devel
2dfe0926 28%{?with_ocaml:BuildRequires: ocaml}
c9149a66 29%{?with_octave:BuildRequires: octave-devel}
2dfe0926 30%{?with_perl:BuildRequires: perl-devel >= 1:5.6.1}
6ade4e80 31%{?with_php:BuildRequires: php-cli}
8b66670e 32%{?with_php:BuildRequires: php-devel >= 4.1.0}
86a07a9b 33BuildRequires: python-devel >= 1:2.3.2
8a65fc8c 34BuildRequires: python-modules
35BuildRequires: rpm-pythonprov
1bb19926 36%if %{with ruby}
37BuildRequires: rpmbuild(macros) >= 1.277
38BuildRequires: ruby-devel >= 1:1.6.3
1bb19926 39%endif
2dfe0926 40%{?with_tcl:BuildRequires: tcl-devel >= 8.3.3}
c44d5037 41Obsoletes: swig-ocaml
a42ebffc 42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
4c9f45fa 43
44%description
45SWIG is a compiler that attempts to make it easy to integrate C, C++,
46or Objective-C code with scripting languages including Perl, Tcl, and
7eb26fa0 47Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
4c9f45fa 48and it generates an interface between C and your favorite scripting
7eb26fa0 49language. However, this is only scratching the surface of what SWIG
4c9f45fa 50can do--some of its more advanced features include automatic
51documentation generation, module and library management, extensive
52customization options, and more.
53
54SWIG is entirely the product of users who have used the system and
7eb26fa0 55suggested new idea. There are far too many people to thank
4c9f45fa 56individually, but without this support, SWIG would be not be nearly as
57powerful or fun to use as it is now. Many thanks!
58
b386be58
JR
59%description -l pl.UTF-8
60SWIG jesk kompilatorem, który próbuje ułatwić integrowanie kodu
61napisanego w C, C++ lub Objective-C z językami skryptowymi, takimi jak
62Perl, Tcl i Python. Mówiąc najprościej, jeśli dostarczysz mu zestaw
2c3035a6 63zadeklarowanych w ANSI C/C++ funkcji, SWIG wygeneruje Ci interfejs
b386be58
JR
64pomiędzy C a Twoim ulubionym językiem skryptowym. To tylko drobna
65część tego co SWIG potrafi robić, bardziej zaawansowane zastosowania
66to automatyczne generowanie dokumentacji, zarządzanie bibliotekami i
67modułami i wiele innych.
9ba41159 68
b386be58
JR
69SWIG jest w całości dziełem ludzi, którzy go używali i wprowadzali
70nowe pomysły. Zbyt wielu ich jest, aby dziękować każdemu z nich
71osobno, ale bez ich wsparcia SWIG nie byłby ani tak potężnym
72narzędziem, ani tak fajnym w użyciu jak jest teraz. Wiekie dzięki!
9ba41159 73
b386be58 74%description -l pt_BR.UTF-8
ede1674d 75O SWIG gera interfaces para perl, python e Tcl a partir de uma arquivo
b386be58 76com uma interface de descrição que consiste de uma combinação de C/C++
60a191ce 77e diretivas especiais. Permite que linguagens tipo script usem C/C++
b386be58 78com um mínimo de esforço.
60a191ce 79
48fb2a6b
JB
80%package guile
81Summary: SWIG library: guile
eeba410f 82Summary(pl.UTF-8): Biblioteka SWIG: guile
8d185dc8 83License: free
48fb2a6b 84Group: Libraries
fd89abd1 85Requires: %{name} = %{version}-%{release}
48fb2a6b
JB
86
87%description guile
88SWIG library: guile.
89
b386be58 90%description guile -l pl.UTF-8
48fb2a6b
JB
91Biblioteka SWIG: guile.
92
93%package perl
94Summary: SWIG library: Perl
eeba410f 95Summary(pl.UTF-8): Biblioteka SWIG: Perl
8d185dc8 96License: free
48fb2a6b 97Group: Libraries
fd89abd1 98Requires: %{name} = %{version}-%{release}
48fb2a6b
JB
99
100%description perl
101SWIG library: perl.
102
b386be58 103%description perl -l pl.UTF-8
48fb2a6b
JB
104Biblioteka SWIG: perl.
105
106%package php
107Summary: SWIG library: php
eeba410f 108Summary(pl.UTF-8): Biblioteka SWIG: php
8d185dc8 109License: free
48fb2a6b 110Group: Libraries
fd89abd1 111Requires: %{name} = %{version}-%{release}
48fb2a6b
JB
112
113%description php
114SWIG library: php.
115
b386be58 116%description php -l pl.UTF-8
48fb2a6b
JB
117Biblioteka SWIG: php.
118
119%package python
120Summary: SWIG library: python
eeba410f 121Summary(pl.UTF-8): Biblioteka SWIG: python
8d185dc8 122License: free
48fb2a6b 123Group: Libraries
fd89abd1 124Requires: %{name} = %{version}-%{release}
48fb2a6b
JB
125
126%description python
127SWIG library: python.
128
b386be58 129%description python -l pl.UTF-8
48fb2a6b
JB
130Biblioteka SWIG: python.
131
132%package ruby
133Summary: SWIG library: ruby
eeba410f 134Summary(pl.UTF-8): Biblioteka SWIG: ruby
8d185dc8 135License: free
48fb2a6b 136Group: Libraries
fd89abd1 137Requires: %{name} = %{version}-%{release}
0a4291d4 138%{?ruby_mod_ver_requires_eq}
48fb2a6b
JB
139
140%description ruby
141SWIG library: ruby.
142
b386be58 143%description ruby -l pl.UTF-8
48fb2a6b
JB
144Biblioteka SWIG: ruby.
145
146%package tcl
147Summary: SWIG library: tcl
eeba410f 148Summary(pl.UTF-8): Biblioteka SWIG: tcl
8d185dc8 149License: free
48fb2a6b 150Group: Libraries
fd89abd1 151Requires: %{name} = %{version}-%{release}
48fb2a6b
JB
152
153%description tcl
154SWIG library: tcl.
155
b386be58 156%description tcl -l pl.UTF-8
48fb2a6b
JB
157Biblioteka SWIG: tcl.
158
4c9f45fa 159%prep
fd89abd1 160%setup -q
754c3c3a 161%patch0 -p1
509026de 162%patch1 -p1
4c9f45fa 163
164%build
c44d5037
JB
165%{__aclocal} -I Tools/config
166%{__autoconf}
fd89abd1 167%{__automake}
b41764c7 168%configure
4c9f45fa 169
a5c86aca 170%{__make} \
c44d5037 171 OPT="%{rpmcflags}"
a778deab 172
4c9f45fa 173%install
174rm -rf $RPM_BUILD_ROOT
2c3035a6 175install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}}
62bc0a5c 176
fd89abd1 177%{__make} install \
c44d5037
JB
178 DESTDIR=$RPM_BUILD_ROOT \
179 M4_INSTALL_DIR=$RPM_BUILD_ROOT%{_aclocaldir}
f1505a61 180
7eb26fa0 181cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
f1505a61 182
4c9f45fa 183%clean
184rm -rf $RPM_BUILD_ROOT
185
186%files
7eb26fa0 187%defattr(644,root,root,755)
8d185dc8 188%doc ANNOUNCE CHANGES CHANGES.current COPYRIGHT LICENSE LICENSE-UNIVERSITIES README RELEASENOTES TODO Doc
7c6ffd0d 189%attr(755,root,root) %{_bindir}/ccache-swig
f1505a61 190%attr(755,root,root) %{_bindir}/swig
fd89abd1 191%{_datadir}/%{name}
192%{?with_guile:%exclude %{_datadir}/%{name}/%{version}/guile}
193%{?with_perl:%exclude %{_datadir}/%{name}/%{version}/perl5}
c9149a66 194%{?with_php:%exclude %{_datadir}/%{name}/%{version}/php}
fd89abd1 195%exclude %{_datadir}/%{name}/%{version}/python
196%{?with_ruby:%exclude %{_datadir}/%{name}/%{version}/ruby}
197%{?with_tcl:%exclude %{_datadir}/%{name}/%{version}/tcl}
7c6ffd0d 198%{_mandir}/man1/ccache-swig.1*
7eb26fa0 199%{_examplesdir}/%{name}-%{version}
48fb2a6b
JB
200
201%if %{with guile}
202%files guile
203%defattr(644,root,root,755)
fd89abd1 204%{_datadir}/%{name}/%{version}/guile
48fb2a6b
JB
205%endif
206
207%if %{with perl}
208%files perl
209%defattr(644,root,root,755)
fd89abd1 210%{_datadir}/%{name}/%{version}/perl5
48fb2a6b
JB
211%endif
212
213%if %{with php}
214%files php
215%defattr(644,root,root,755)
c9149a66 216%{_datadir}/%{name}/%{version}/php
48fb2a6b
JB
217%endif
218
219%files python
220%defattr(644,root,root,755)
fd89abd1 221%{_datadir}/%{name}/%{version}/python
48fb2a6b
JB
222
223%if %{with ruby}
224%files ruby
225%defattr(644,root,root,755)
fd89abd1 226%{_datadir}/%{name}/%{version}/ruby
48fb2a6b
JB
227%endif
228
229%if %{with tcl}
230%files tcl
231%defattr(644,root,root,755)
fd89abd1 232%{_datadir}/%{name}/%{version}/tcl
48fb2a6b 233%endif
This page took 0.126611 seconds and 4 git commands to generate.