File yasm.spec of Package yasm

# spec file for package yasm
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           yasm
Summary:        A complete rewrite of the NASM assembler
License:        Artistic-1.0 and BSD-2-Clause and BSD-3-Clause and GPL-2.0+ and LGPL-2.0+
Group:          Development/Languages/Other
Version:        1.2.0
Release:        0
Patch0:         %{name}-no-build-date.patch
Patch1:         %{name}-no-rpm-opt-flags.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-base
BuildRequires:  xmlto

YASM is a complete rewrite of the NASM assembler. It is designed from
the ground up to allow for multiple syntaxes to be supported (e.g.,
NASM, TASM, GAS, etc.) in addition to multiple output object formats.
Another primary module of the overall design is an optimizer module.
Actually it supports ix86 and AMD64, next will be PowerPC

%package devel
Summary:        YASM development package
Group:          Development/Languages/Other
Requires:       %{name} = %{version}

%description devel
This package includes everything needed to develop programs that use

%setup -q -n %{name}-%{version}

export CFLAGS="%{optflags}" 
%configure \
    --with-gnu-ld \
make %{?_smp_mflags}

make DESTDIR=%{buildroot} install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

# 2 win64 test crash but we don't care
make check || true

%doc Artistic.txt BSD.txt COPYING GNU_GPL-2.0 GNU_LGPL-2.0

%files devel

openSUSE Build Service is sponsored by