Release: 1
Copyright: distributable
Group: Development/Languages
+Group(de): Entwicklung/Sprachen
Group(pl): Programowanie/Jêzyki
Source0: %{name}%{version}.tar.gz
-Patch: swig1.1p2-fixed-paths.patch
+Patch0: %{name}1.1p2-fixed-paths.patch
Icon: swig.gif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
SWIG is a compiler that attempts to make it easy to integrate C, C++,
or Objective-C code with scripting languages including Perl, Tcl, and
-Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
+Python. In a nutshell, you give it a bunch of ANSI C/C++ declarations
and it generates an interface between C and your favorite scripting
-language. However, this is only scratching the surface of what SWIG
+language. However, this is only scratching the surface of what SWIG
can do--some of its more advanced features include automatic
documentation generation, module and library management, extensive
customization options, and more.
SWIG is entirely the product of users who have used the system and
-suggested new idea. There are far too many people to thank
+suggested new idea. There are far too many people to thank
individually, but without this support, SWIG would be not be nearly as
powerful or fun to use as it is now. Many thanks!
%description -l pl
-SWIG jesk kompilatorem, który próbuje ulatwic integrowanie kodu napisanego
-w C, C++ lub Objective-C z jêzykami skryptowymitakimi jak Perl, Tcl i Python.
-Mówi±c najpro¶ciej, jesli dostarczysz mu zestaw zdeklarowanych w ANSI C/C++
-funkcji, SWIG wygeneruje Ci interfejs pomiedzy C a Twoim ulubionym jêzykiem
-skryptowym. To tylko drobna czê¶æ tego co SWIG potrafi robiæ, bardziej
-zaawansowane zastosowania to automatyczne generowanie dokumentacji,
-zarzadzanie bibliotekami i modu³ami i wiele innych.
+SWIG jesk kompilatorem, który próbuje ulatwic integrowanie kodu
+napisanego w C, C++ lub Objective-C z jêzykami skryptowymitakimi jak
+Perl, Tcl i Python. Mówi±c najpro¶ciej, jesli dostarczysz mu zestaw
+zdeklarowanych w ANSI C/C++ funkcji, SWIG wygeneruje Ci interfejs
+pomiedzy C a Twoim ulubionym jêzykiem skryptowym. To tylko drobna
+czê¶æ tego co SWIG potrafi robiæ, bardziej zaawansowane zastosowania
+to automatyczne generowanie dokumentacji, zarzadzanie bibliotekami i
+modu³ami i wiele innych.
-SWIG jest w ca³o¶ci dzi³em ludzi, którzy go u¿ywali i wprowadzali nowe
-pomys³y. Zbyt wielu ich jest, aby dziêkowaæ ka¿demu z nich osobno,
-ale bez ich wsparcia, SWIG nie by³by anie tak pote¿nym na¿edziem, ani tak
+SWIG jest w ca³o¶ci dzi³em ludzi, którzy go u¿ywali i wprowadzali nowe
+pomys³y. Zbyt wielu ich jest, aby dziêkowaæ ka¿demu z nich osobno, ale
+bez ich wsparcia, SWIG nie by³by anie tak pote¿nym na¿edziem, ani tak
fajnym w u¿yciu jak jest teraz. Wiekie dziêki!
%prep
%build
%configure
-%{__make} OPT="$RPM_OPT_FLAGS"
+%{__make} OPT="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}"
%{__make} test
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/{%{_libdir}/swig_lib,%{_mandir}/man1,%{_prefix}/src/examples/swig}
+install -d $RPM_BUILD_ROOT/{%{_libdir}/swig_lib,%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}}
%{__make} install \
prefix=$RPM_BUILD_ROOT/%{_prefix} \
exec_prefix=$RPM_BUILD_ROOT/%{_prefix} \
MAN_DIR=$RPM_BUILD_ROOT/%{_mandir}/man1
-cp -a Examples/* $RPM_BUILD_ROOT/%{_prefix}/src/examples/swig/
+cp -a Examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
-gzip -9nf CHANGES NEW README TROUBLESHOOTING ToDo \
- $RPM_BUILD_ROOT/%{_mandir}/man1/*
+gzip -9nf CHANGES NEW README TROUBLESHOOTING ToDo
%clean
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(-,root,root,755)
+%defattr(644,root,root,755)
%doc Doc *.gz
%dir %{_libdir}/swig_lib
%{_libdir}/swig_lib/*
%{_includedir}/swig.h
%attr(755,root,root) %{_bindir}/swig
%{_mandir}/man1/*
-%{_prefix}/src/examples/swig
+%{_examplesdir}/%{name}-%{version}