Browse Source

swig: update to 3.0.0

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@8367 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 10 years ago
parent
commit
b320eff3b3
1 changed files with 11 additions and 5 deletions
  1. 11 5
      s/swig/swig-vl.spec

+ 11 - 5
s/swig/swig-vl.spec

@@ -4,16 +4,17 @@
 Summary: Connects C/C++/Objective C to some high-level programming languages
 Summary(ja): C/C++/Objective C を高レベル言語から利用するためのツール
 Name: swig
-Version: 2.0.8
+Version: 3.0.0
 Release: 1%{?_dist_release}
 License: GPLv3+ and BSD
 Group: Development/Tools
 URL: http://swig.sourceforge.net/
 Source: http://downloads.sourceforge.net/project/swig/swig/swig-%{version}/swig-%{version}.tar.gz
-Patch4: swig203-rh706140.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: perl, python-devel, pcre-devel
+BuildRequires: ruby-devel
+BuildRequires: lua-devel
 %if %{tcl}
 BuildRequires: tcl-devel
 %endif
@@ -44,7 +45,6 @@ This package contains documentation for SWIG and useful examples
 
 %prep
 %setup -q -n swig-%{version}
-%patch4 -p1 -b .rh706140
 
 # 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
@@ -54,7 +54,7 @@ cat << \EOF > %{name}-prov
 %{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'`
 EOF
 
-%define __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov
+%global __perl_provides %{_builddir}/%{name}-%{version}/%{name}-prov
 chmod +x %{__perl_provides}
 
 cat << \EOF > %{name}-req
@@ -62,7 +62,7 @@ cat << \EOF > %{name}-req
 %{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-doc-%{version}\S+||'`
 EOF
 
-%define __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
+%global __perl_requires %{_builddir}/%{name}-%{version}/%{name}-req
 chmod +x %{__perl_requires}
 
 for all in CHANGES README; do
@@ -82,6 +82,8 @@ make %{?_smp_mflags}
 %install
 rm -rf %{buildroot}
 
+make clean-examples
+
 pushd Examples/
 # Remove all arch dependent files in Examples/
 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
 
 %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
 - update to 2.0.8
 - build with pcre-8.31