Summary: Modular Assembler Name: yasm Version: 1.3.0 Release: 6 License: BSD Group: Development/Other Url: http://www.tortall.net/projects/yasm/ Source0: http://www.tortall.net/projects/yasm/releases/%{name}-%{version}.tar.gz BuildRequires: python2-cython BuildRequires: python2-devel %description Yasm is a complete rewrite of the NASM assembler under the "new" BSD License (some portions are under other licenses, see COPYING for details). It is designed from the ground up to allow for multiple assembler syntaxes to be supported (eg, NASM, TASM, GAS, etc.) in addition to multiple output object formats and even multiple instruction sets. Another primary module of the overall design is an optimizer module. %package devel Summary: Development headers and files for %{name} Group: Development/C Obsoletes: %mklibname -d yasm 0 Requires: %{name} = %{version}-%{release} %description devel Development headers and files for %{name}. %package -n python2-%{name} Summary: Python bindings for %{name} Group: Development/Python Requires: %{name} = %{version}-%{release} %description -n python2-%{name} Python bindings for %{name}. %prep %setup -q %apply_patches %build ln -s %{_bindir}/python2 python export PATH=`pwd`:$PATH %ifnarch ix86 export CFLAGS="%{optflags} -fPIC" %endif %configure \ --disable-rpath \ --enable-python \ --enable-python-bindings %make %install %makeinstall_std rm -f %{buildroot}%{_libdir}/yasm/*.a %files %doc AUTHORS %{_bindir}/* %{_mandir}/man1/yasm.1* %{_mandir}/man7/yasm_arch.7* %{_mandir}/man7/yasm_dbgfmts.7.* %{_mandir}/man7/yasm_objfmts.7.* %{_mandir}/man7/yasm_parsers.7.* %files -n python2-%{name} %{python2_sitelib}/* %files devel %{_libdir}/lib*.a %{_includedir}/libyasm %{_includedir}/libyasm.h %{_includedir}/libyasm-stdint.h