|
@@ -1,87 +1,123 @@
|
|
Name: ming
|
|
Name: ming
|
|
-Summary: Ming - an SWF output library
|
|
+Summary: A library for generating Macromedia Flash files
|
|
-Summary(ja): SWF 出力ライブラリ
|
|
+Summary(ja): Macromedia Flash ファイル生成ライブラリ
|
|
-Version: 0.4.3
|
|
+Version: 0.4.5
|
|
-Release: 2%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
-License: LGPL
|
|
+
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
-URL: http://sourceforge.net/projects/ming/
|
|
+License: LGPLv2+
|
|
-Source: %{name}-%{version}.tar.bz2
|
|
+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
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-Requires: freetype2 zlib libungif libpng
|
|
+BuildRequires: bison
|
|
-BuildRequires: freetype2-devel zlib-devel libungif-devel libpng-devel
|
|
+BuildRequires: flex
|
|
|
|
+BuildRequires: freetype2-devel
|
|
|
|
+BuildRequires: giflib-devel
|
|
|
|
+BuildRequires: libpng-devel
|
|
|
|
+BuildRequires: perl
|
|
|
|
+BuildRequires: php5-devel
|
|
|
|
+BuildRequires: python-devel
|
|
BuildRequires: swig
|
|
BuildRequires: swig
|
|
|
|
+BuildRequires: tcl
|
|
|
|
+BuildRequires: zlib-devel
|
|
|
|
|
|
%description
|
|
%description
|
|
Ming is a library for generating Macromedia Flash files (.swf), written in C,
|
|
Ming is a library for generating Macromedia Flash files (.swf), written in C,
|
|
and includes useful utilities for working with .swf files.
|
|
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
|
|
%package devel
|
|
-Summary: A SWF output library
|
|
+Summary: A library for generating Macromedia Flash files - development files
|
|
|
|
+Summary(ja): %{name} の開発用ファイル
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-Requires: %{name} = %{version}
|
|
+Requires: %{name} = %{version}-%{release}
|
|
-Requires: freetype2-devel zlib-devel libungif-devel libpng-devel
|
|
|
|
|
|
|
|
%description devel
|
|
%description devel
|
|
The ming-devel package includes the static libraries,
|
|
The ming-devel package includes the static libraries,
|
|
header files, and developer docs for the ming package.
|
|
header files, and developer docs for the ming package.
|
|
|
|
|
|
-Install ming-devel if you want to develop programs which
|
|
|
|
-will use ming.
|
|
|
|
-
|
|
|
|
%package python
|
|
%package python
|
|
Summary: Ming Python wrapper
|
|
Summary: Ming Python wrapper
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-Requires: %{name} = %{version}
|
|
+Requires: %{name} = %{version}-%{release}
|
|
-BuildRequires: python-devel
|
|
+
|
|
%description python
|
|
%description python
|
|
%{summary}
|
|
%{summary}
|
|
|
|
|
|
%package tcl
|
|
%package tcl
|
|
Summary: Ming Tcl wrapper
|
|
Summary: Ming Tcl wrapper
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-Requires: %{name} = %{version}
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+Requires: tcl
|
|
|
|
+
|
|
%description tcl
|
|
%description tcl
|
|
%{summary}
|
|
%{summary}
|
|
|
|
|
|
%package perl
|
|
%package perl
|
|
Summary: Ming Perl wrapper
|
|
Summary: Ming Perl wrapper
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-Requires: %{name} = %{version}
|
|
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
|
|
+Provides: perl-SWF = %{version}-%{release}
|
|
|
|
+
|
|
%description perl
|
|
%description perl
|
|
%{summary}
|
|
%{summary}
|
|
|
|
|
|
%package php
|
|
%package php
|
|
Summary: Ming PHP wrapper
|
|
Summary: Ming PHP wrapper
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
-Requires: %{name} = %{version}
|
|
+Requires: %{name} = %{version}-%{release}
|
|
-BuildRequires: php5-devel
|
|
+Requires: php5
|
|
|
|
+
|
|
%description php
|
|
%description php
|
|
%{summary}
|
|
%{summary}
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%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
|
|
%build
|
|
%configure \
|
|
%configure \
|
|
- --enable-python \
|
|
+ --disable-static \
|
|
- --enable-tcl \
|
|
+ --enable-python \
|
|
- --enable-php \
|
|
+ --enable-tcl \
|
|
- --enable-perl \
|
|
+ --enable-php \
|
|
- --with-pic \
|
|
+ --enable-perl \
|
|
- ;
|
|
+ --with-pic \
|
|
-make %{?_smp_mflags}
|
|
+
|
|
|
|
+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
|
|
%install
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
-make install \
|
|
+make install DESTDIR=$RPM_BUILD_ROOT \
|
|
- DESTDIR=$RPM_BUILD_ROOT \
|
|
|
|
pkgconfigdir=%{_libdir}/pkgconfig \
|
|
pkgconfigdir=%{_libdir}/pkgconfig \
|
|
- docdir=$RPM_BUILD_ROOT%{_docdir}/%{name} \
|
|
+ docdir=$RPM_BUILD_ROOT%{_docdir}/%{name}
|
|
- ;
|
|
+
|
|
-chmod 755 $RPM_BUILD_ROOT%{perl_sitearch}/auto/SWF/*.so
|
|
+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-man1
|
|
make -C ./docs/man mandir=$RPM_BUILD_ROOT%{_mandir} install-man3
|
|
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 tcl -p /sbin/ldconfig
|
|
%postun perl -p /sbin/ldconfig
|
|
%postun perl -p /sbin/ldconfig
|
|
%postun php -p /sbin/ldconfig
|
|
%postun php -p /sbin/ldconfig
|
|
|
|
+
|
|
%clean
|
|
%clean
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%doc README AUTHORS COPYING ChangeLog
|
|
%doc README AUTHORS COPYING ChangeLog
|
|
-%{_libdir}/libming*.so.*
|
|
|
|
%{_bindir}/*
|
|
%{_bindir}/*
|
|
|
|
+%{_libdir}/libming*.so.*
|
|
%{_mandir}/man1/*
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%{_includedir}/*
|
|
%{_includedir}/*
|
|
%{_libdir}/libming.so
|
|
%{_libdir}/libming.so
|
|
-%{_libdir}/pkgconfig
|
|
+%{_libdir}/pkgconfig/*.pc
|
|
%{_mandir}/man3/*
|
|
%{_mandir}/man3/*
|
|
-%exclude %{_libdir}/*.a
|
|
+%exclude %{_mandir}/man3/SWF*.3pm*
|
|
%exclude %{_libdir}/*.la
|
|
%exclude %{_libdir}/*.la
|
|
|
|
|
|
%files python
|
|
%files python
|
|
@@ -123,18 +160,24 @@ make -C ./docs/man mandir=$RPM_BUILD_ROOT%{_mandir} install-man3
|
|
%files tcl
|
|
%files tcl
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%{_libdir}/%{name}/tcl/*.so
|
|
%{_libdir}/%{name}/tcl/*.so
|
|
-%exclude %{_libdir}/%{name}/tcl/*.a
|
|
|
|
%exclude %{_libdir}/%{name}/tcl/*.la
|
|
%exclude %{_libdir}/%{name}/tcl/*.la
|
|
|
|
|
|
%files perl
|
|
%files perl
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%{_libdir}/perl5/*
|
|
%{_libdir}/perl5/*
|
|
|
|
+%{_mandir}/man3/SWF*.3pm*
|
|
|
|
|
|
%files php
|
|
%files php
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
%{_libdir}/php5/*
|
|
%{_libdir}/php5/*
|
|
|
|
|
|
%changelog
|
|
%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
|
|
* Sun Sep 26 2010 Shu KONNO <owa@bg.wakwak.com> 0.4.3-2
|
|
- rebuilt with rpm-4.8.1 for pkg-config
|
|
- rebuilt with rpm-4.8.1 for pkg-config
|
|
|
|
|