2007-01-16 00:44:10 +01:00
|
|
|
#
|
2012-08-11 20:58:43 +02:00
|
|
|
# spec file for package yasm
|
2007-01-16 00:44:10 +01:00
|
|
|
#
|
2014-10-17 13:47:46 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:44:10 +01:00
|
|
|
#
|
2009-06-19 00:28:32 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-05-30 01:19:05 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:44:10 +01:00
|
|
|
#
|
|
|
|
|
2009-06-19 00:28:32 +02:00
|
|
|
|
2007-05-30 01:19:05 +02:00
|
|
|
Name: yasm
|
2010-01-18 14:23:52 +01:00
|
|
|
Summary: A complete rewrite of the NASM assembler
|
2012-08-11 21:01:53 +02:00
|
|
|
License: Artistic-1.0 and BSD-2-Clause and BSD-3-Clause and GPL-2.0+ and LGPL-2.0+
|
2012-08-11 20:58:43 +02:00
|
|
|
Group: Development/Languages/Other
|
2014-10-17 13:47:46 +02:00
|
|
|
Version: 1.3.0
|
2012-08-11 20:58:43 +02:00
|
|
|
Release: 0
|
|
|
|
Url: http://www.tortall.net/projects/yasm/
|
2014-10-17 13:47:46 +02:00
|
|
|
Source: http://www.tortall.net/projects/yasm/releases/yasm-%{version}.tar.gz
|
2012-08-11 20:58:43 +02:00
|
|
|
Patch0: %{name}-no-build-date.patch
|
|
|
|
Patch1: %{name}-no-rpm-opt-flags.patch
|
2007-05-30 01:19:05 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-09-26 13:06:33 +02:00
|
|
|
BuildRequires: python-base
|
2012-08-11 20:58:43 +02:00
|
|
|
BuildRequires: xmlto
|
2010-09-03 16:43:59 +02:00
|
|
|
|
2007-01-16 00:44:10 +01:00
|
|
|
%description
|
|
|
|
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
|
|
|
|
|
2007-05-30 01:19:05 +02:00
|
|
|
%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
|
|
|
|
libyasm.
|
|
|
|
|
2007-01-16 00:44:10 +01:00
|
|
|
%prep
|
2012-08-11 20:58:43 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
2014-10-17 13:47:46 +02:00
|
|
|
%patch0 -p1
|
2012-08-11 20:58:43 +02:00
|
|
|
%patch1
|
2010-09-03 16:43:59 +02:00
|
|
|
|
2007-01-16 00:44:10 +01:00
|
|
|
%build
|
2007-05-30 01:19:05 +02:00
|
|
|
export CFLAGS="%{optflags}"
|
2012-08-11 20:58:43 +02:00
|
|
|
%configure \
|
2013-04-05 16:07:13 +02:00
|
|
|
--with-gnu-ld \
|
|
|
|
--enable-python
|
2012-08-11 20:58:43 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:44:10 +01:00
|
|
|
|
|
|
|
%install
|
2013-04-05 16:07:13 +02:00
|
|
|
make DESTDIR=%{buildroot} install
|
2007-01-16 00:44:10 +01:00
|
|
|
|
2009-11-27 14:58:44 +01:00
|
|
|
%post -p /sbin/ldconfig
|
2007-01-16 00:44:10 +01:00
|
|
|
|
2009-11-27 14:58:44 +01:00
|
|
|
%postun -p /sbin/ldconfig
|
2007-01-16 00:44:10 +01:00
|
|
|
|
2012-08-11 21:01:53 +02:00
|
|
|
%check
|
2012-12-19 13:29:02 +01:00
|
|
|
# 2 win64 test crash but we don't care
|
2014-10-17 13:47:46 +02:00
|
|
|
make check
|
2012-08-11 20:58:43 +02:00
|
|
|
|
2007-01-16 00:44:10 +01:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-08-11 20:58:43 +02:00
|
|
|
%doc Artistic.txt BSD.txt COPYING GNU_GPL-2.0 GNU_LGPL-2.0
|
2013-04-05 16:07:13 +02:00
|
|
|
%doc ABOUT-NLS AUTHORS
|
2007-01-16 00:44:10 +01:00
|
|
|
/usr/bin/*
|
|
|
|
%_mandir/man7/*
|
|
|
|
%_mandir/man1/*
|
|
|
|
|
2007-05-30 01:19:05 +02:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/include/*
|
2007-11-02 01:42:28 +01:00
|
|
|
%_libdir/lib*.a
|
2009-06-19 00:28:32 +02:00
|
|
|
|
2007-05-30 01:19:05 +02:00
|
|
|
%changelog
|