%define __spec_install_post /usr/lib/rpm/brp-compress || : Summary: An open source ActionScript 2 compiler Name: mtasc Version: 1.13 Release: 1 License: GPL Group: Programming/Language Source: http://www.mtasc.org/_media/%{name}-%{version}.tar.bz2 URL: http://www.mtasc.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: zlib BuildPreReq: sed, ocaml >= 3.08 BuildRequires: zlib-devel Packager: Daichi Shinozaki %description MTASC is the first ActionScript 2 Open Source free compiler. It can compile large number of .as class files in a very short time and generate directly the corresponding SWF bytecode without relying on Macromedia Flash or other tools. %prep %setup -q pushd . cd ocaml sed -e 's/\(\tdownload();\)/(*\1*)/g' %{name}/doc/install.ml >%{name}/doc/install.ml.new mv %{name}/doc/install.ml.new %{name}/doc/install.ml popd %build ocaml ocaml/%{name}/doc/install.ml %install rm -rf $RPM_BUILD_ROOT mkdir -m755 -p $RPM_BUILD_ROOT%{_bindir} mkdir -m755 -p $RPM_BUILD_ROOT%{_mandir}/man1 pushd . cd ocaml/%{name} cp -R std $RPM_BUILD_ROOT%{_bindir} cp -R std8 $RPM_BUILD_ROOT%{_bindir} install doc/%{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1 chmod -R ug+rwX $RPM_BUILD_ROOT popd for f in bin/*; do install --strip $f $RPM_BUILD_ROOT%{_bindir} done %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc ocaml/%{name}/doc/CHANGES.txt ocaml/%{name}/doc/Future.txt ocaml/%{name}/doc/Readme.txt %attr(755,root,root) %{_bindir}/mtasc %attr(755,root,root) %{_bindir}/mtasc-byte %{_bindir}/std %{_bindir}/std8 %{_mandir}/man1/* %changelog * Fri Sep 7 2007 Daichi Shinozaki 1.13-1 - Initial release.