|
@@ -4,16 +4,17 @@
|
|
Summary: Connects C/C++/Objective C to some high-level programming languages
|
|
Summary: Connects C/C++/Objective C to some high-level programming languages
|
|
Summary(ja): C/C++/Objective C を高レベル言語から利用するためのツール
|
|
Summary(ja): C/C++/Objective C を高レベル言語から利用するためのツール
|
|
Name: swig
|
|
Name: swig
|
|
-Version: 2.0.8
|
|
|
|
|
|
+Version: 3.0.0
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
License: GPLv3+ and BSD
|
|
License: GPLv3+ and BSD
|
|
Group: Development/Tools
|
|
Group: Development/Tools
|
|
URL: http://swig.sourceforge.net/
|
|
URL: http://swig.sourceforge.net/
|
|
Source: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz
|
|
Source: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz
|
|
-Patch4: swig203-rh706140.patch
|
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRequires: perl, python-devel, pcre-devel
|
|
BuildRequires: perl, python-devel, pcre-devel
|
|
|
|
+BuildRequires: ruby-devel
|
|
|
|
+BuildRequires: lua-devel
|
|
%if %{tcl}
|
|
%if %{tcl}
|
|
BuildRequires: tcl-devel
|
|
BuildRequires: tcl-devel
|
|
%endif
|
|
%endif
|
|
@@ -44,7 +45,6 @@ This package contains documentation for SWIG and useful examples
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n swig-%{version}
|
|
%setup -q -n swig-%{version}
|
|
-%patch4 -p1 -b .rh706140
|
|
|
|
|
|
|
|
# as written on https://fedoraproject.org/wiki/Packaging_talk:Perl, section 2
|
|
# as written on https://fedoraproject.org/wiki/Packaging_talk:Perl, section 2
|
|
# (specific req/prov filtering). Before you remove this hack make sure you don't
|
|
# (specific req/prov filtering). Before you remove this hack make sure you don't
|
|
@@ -54,7 +54,7 @@ cat << \EOF > %{name}-prov
|
|
%{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'`
|
|
%{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'`
|
|
EOF
|
|
EOF
|
|
|
|
|
|
-%define __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov
|
|
|
|
|
|
+%global __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov
|
|
chmod +x %{__perl_provides}
|
|
chmod +x %{__perl_provides}
|
|
|
|
|
|
cat << \EOF > %{name}-req
|
|
cat << \EOF > %{name}-req
|
|
@@ -62,7 +62,7 @@ cat << \EOF > %{name}-req
|
|
%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'`
|
|
%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'`
|
|
EOF
|
|
EOF
|
|
|
|
|
|
-%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
|
|
|
|
|
|
+%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
|
|
chmod +x %{__perl_requires}
|
|
chmod +x %{__perl_requires}
|
|
|
|
|
|
for all in CHANGES README; do
|
|
for all in CHANGES README; do
|
|
@@ -82,6 +82,8 @@ make %{?_smp_mflags}
|
|
%install
|
|
%install
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
+make clean-examples
|
|
|
|
+
|
|
pushd Examples/
|
|
pushd Examples/
|
|
# Remove all arch dependent files in Examples/
|
|
# Remove all arch dependent files in Examples/
|
|
find -type f -name 'Makefile.in' | xargs rm -f --
|
|
find -type f -name 'Makefile.in' | xargs rm -f --
|
|
@@ -116,6 +118,10 @@ rm -rf %{buildroot}
|
|
%doc Doc Examples LICENSE LICENSE-GPL LICENSE-UNIVERSITIES COPYRIGHT
|
|
%doc Doc Examples LICENSE LICENSE-GPL LICENSE-UNIVERSITIES COPYRIGHT
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Fri Apr 18 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0.0-1
|
|
|
|
+- update to 3.0.0
|
|
|
|
+- add BR: ruby-devel, lua-devel
|
|
|
|
+
|
|
* Thu Oct 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.8-1
|
|
* Thu Oct 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.8-1
|
|
- update to 2.0.8
|
|
- update to 2.0.8
|
|
- build with pcre-8.31
|
|
- build with pcre-8.31
|