%define name yasm %define version 0.4.0 %define rel 1 %define release %mkrel %rel %define major 0 %define libname %mklibname %name %major #fixed2 %{?!mkrel:%define mkrel(c:) %{-c: 0.%{-c*}.}%{!?_with_unstable:%(perl -e '$_="%{1}";m/(.\*\\D\+)?(\\d+)$/;$rel=${2}-1;re;print "$1$rel";').%{?subrel:%subrel}%{!?subrel:1}.%{?distversion:%distversion}%{?!distversion:%(echo $[%{mdkversion}/10])}}%{?_with_unstable:%{1}}%{?distsuffix:%distsuffix}%{?!distsuffix:mdk}} Summary: Modular Assembler Name: %{name} Version: %{version} Release: %{release} Source0: http://www.tortall.net/projects/yasm/releases/%{name}-%{version}.tar.bz2 License: BSD Group: Development/Other Url: http://www.tortall.net/projects/yasm/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %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 -n %libname Group:System/Libraries Summary: Yasm modular assembler library %description -n %libname 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 -n %libname-devel Group:Development/C Summary: Yasm modular assembler library Requires: %libname = %version Provides: lib%name-devel = %version-%release %description -n %libname-devel 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. %prep %setup -q %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std rm -f %buildroot%_libdir/yasm/*.a %clean rm -rf $RPM_BUILD_ROOT %post -n %libname -p /sbin/ldconfig %postun -n %libname -p /sbin/ldconfig %files %defattr(-,root,root) %doc AUTHORS %_bindir/%name %_libdir/yasm/ %_mandir/man1/yasm.1* %_mandir/man7/yasm_arch.7* %files -n %libname %defattr(-,root,root) %_libdir/lib*.so.* %files -n %libname-devel %defattr(-,root,root) %_libdir/lib*.so %_libdir/lib*a %_includedir/libyasm %_includedir/libyasm.h %changelog * Thu May 19 2005 Götz Waschk <waschk@mandriva.org> 0.4.0-1mdk - initial package