Browse Source

2014-12-12 Ryoichi INAGAKI <ryo1@toki.waseda.jp>

	* ming: updated
	


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@9149 ec354946-7b23-47d6-9f5a-488ba84defc7
inagaki 9 years ago
parent
commit
034e102fdc
1 changed files with 82 additions and 39 deletions
  1. 82 39
      m/ming/ming-vl.spec

+ 82 - 39
m/ming/ming-vl.spec

@@ -1,87 +1,123 @@
 Name:    ming
-Summary: Ming - an SWF output library
-Summary(ja): SWF 出力ライブラリ
-Version: 0.4.3
-Release: 2%{?_dist_release}
-License: LGPL
+Summary: A library for generating Macromedia Flash files
+Summary(ja): Macromedia Flash ファイル生成ライブラリ
+Version: 0.4.5
+Release: 1%{?_dist_release}
+
 Group:   System Environment/Libraries
-URL:     http://sourceforge.net/projects/ming/
-Source:  %{name}-%{version}.tar.bz2
+License: LGPLv2+
+URL:     http://www.libming.org/FrontPage
+
+Source0: http://downloads.sourceforge.net/project/ming/Releases/ming-%{version}.tar.bz2
+# make ming-config multilib-compatible
+Patch0: ming-multilib.patch
+# install perl modules to vendorarch dir and link dynamically with libming.so
+Patch1: ming-perl.patch
+
+# To build with giflib-4.2.x
+Patch100: ming-0.4.5-gif-error.patch
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-Requires: freetype2 zlib libungif libpng
-BuildRequires: freetype2-devel zlib-devel libungif-devel libpng-devel
+BuildRequires: bison
+BuildRequires: flex
+BuildRequires: freetype2-devel
+BuildRequires: giflib-devel
+BuildRequires: libpng-devel
+BuildRequires: perl
+BuildRequires: php5-devel
+BuildRequires: python-devel
 BuildRequires: swig
+BuildRequires: tcl
+BuildRequires: zlib-devel
 
 %description
 Ming is a library for generating Macromedia Flash files (.swf), written in C,
 and includes useful utilities for working with .swf files. 
-It has wrappers that allow it to be used in C++, PHP, Python, Ruby, and Perl.
-See http://www.libming.net/FrontPage
 
 %package devel
-Summary:    A SWF output library
+Summary:    A library for generating Macromedia Flash files - development files
+Summary(ja): %{name} の開発用ファイル
 Group:      Development/Libraries
-Requires:   %{name} = %{version}
-Requires:   freetype2-devel zlib-devel libungif-devel libpng-devel
+Requires:   %{name} = %{version}-%{release}
 
 %description devel
 The ming-devel package includes the static libraries,
 header files, and developer docs for the ming package.
 
-Install ming-devel if you want to develop programs which
-will use ming.
-
 %package python
 Summary:    Ming Python wrapper
 Group:      Development/Libraries
-Requires:   %{name} = %{version}
-BuildRequires: python-devel 
+Requires:   %{name} = %{version}-%{release}
+
 %description python
 %{summary}
 
 %package tcl
 Summary:    Ming Tcl wrapper
 Group:      Development/Libraries
-Requires:   %{name} = %{version}
+Requires:   %{name} = %{version}-%{release}
+Requires:   tcl
+
 %description tcl
 %{summary}
 
 %package perl
 Summary:    Ming Perl wrapper
 Group:      Development/Libraries
-Requires:   %{name} = %{version}
+Requires:   perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+Provides:   perl-SWF = %{version}-%{release}
+
 %description perl
 %{summary}
 
 %package php
 Summary:    Ming PHP wrapper
 Group:      Development/Libraries
-Requires:   %{name} = %{version}
-BuildRequires: php5-devel 
+Requires:   %{name} = %{version}-%{release}
+Requires:   php5
+
 %description php
 %{summary}
 
 %prep
 %setup -q
+%patch0 -p1 -b .multilib
+%patch1 -p1 -b .p
+%patch100 -p2 -b .p
+
+pushd src
+chmod -x actioncompiler/{compile,listaction}.* blocks/{matrix,outputblock}.* \
+         displaylist.* position.*
+popd
+iconv -f iso8859-1 -t utf8 -o ChangeLog.utf8 ChangeLog && \
+touch -r ChangeLog ChangeLog.utf8 && \
+mv ChangeLog.utf8 ChangeLog
+
+# force rebuild of python bindings
+rm py_ext/ming_wrap.c
 
 %build
 %configure \
-	--enable-python \
-	--enable-tcl \
-	--enable-php \
-	--enable-perl \
-	--with-pic \
-	;
-make %{?_smp_mflags}
+    --disable-static \
+    --enable-python \
+    --enable-tcl \
+    --enable-php \
+    --enable-perl \
+    --with-pic \
+
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+make V=1 %{?_smp_mflags}
 
 %install
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
-make install \
-	DESTDIR=$RPM_BUILD_ROOT \
+make install DESTDIR=$RPM_BUILD_ROOT \
 	pkgconfigdir=%{_libdir}/pkgconfig \
-	docdir=$RPM_BUILD_ROOT%{_docdir}/%{name} \
-	;
-chmod 755 $RPM_BUILD_ROOT%{perl_sitearch}/auto/SWF/*.so
+	docdir=$RPM_BUILD_ROOT%{_docdir}/%{name}
+
+find $RPM_BUILD_ROOT -type f -name perllocal.pod -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
+chmod 755 $RPM_BUILD_ROOT%{perl_vendorarch}/auto/SWF/*.so
 make -C ./docs/man mandir=$RPM_BUILD_ROOT%{_mandir} install-man1
 make -C ./docs/man mandir=$RPM_BUILD_ROOT%{_mandir} install-man3
 
@@ -95,23 +131,24 @@ make -C ./docs/man mandir=$RPM_BUILD_ROOT%{_mandir} install-man3
 %postun tcl -p /sbin/ldconfig
 %postun perl -p /sbin/ldconfig
 %postun php -p /sbin/ldconfig
+
 %clean
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
 %doc README AUTHORS COPYING ChangeLog
-%{_libdir}/libming*.so.*
 %{_bindir}/*
+%{_libdir}/libming*.so.*
 %{_mandir}/man1/*
 
 %files devel
 %defattr(-, root, root)
 %{_includedir}/*
 %{_libdir}/libming.so
-%{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/*.pc
 %{_mandir}/man3/*
-%exclude %{_libdir}/*.a
+%exclude %{_mandir}/man3/SWF*.3pm*
 %exclude %{_libdir}/*.la
 
 %files python
@@ -123,18 +160,24 @@ make -C ./docs/man mandir=$RPM_BUILD_ROOT%{_mandir} install-man3
 %files tcl
 %defattr(-, root, root)
 %{_libdir}/%{name}/tcl/*.so
-%exclude %{_libdir}/%{name}/tcl/*.a
 %exclude %{_libdir}/%{name}/tcl/*.la
 
 %files perl
 %defattr(-, root, root)
 %{_libdir}/perl5/*
+%{_mandir}/man3/SWF*.3pm*
 
 %files php
 %defattr(-, root, root)
 %{_libdir}/php5/*
 
 %changelog
+* Fri Dec 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.4.5-1
+- updated to 0.4.5
+- added Patch0, 1 and 100
+- built with libpng 1.6.12, giflib 4.2.3 and perl 5.16.3
+- updated URL
+
 * Sun Sep 26 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.3-2
 - rebuilt with rpm-4.8.1 for pkg-config