yasm/yasm.spec

95 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package yasm (Version 0.8.0)
#
# Copyright (c) 2010 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 http://bugs.opensuse.org/
#
# norootforbuild
Name: yasm
Url: http://www.tortall.net/projects/yasm/
License: BSD3c
Group: Development/Languages/Other
AutoReqProv: on
Version: 0.8.0
Release: 1
Summary: A complete rewrite of the NASM assembler
Source: yasm-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python
%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
Authors:
--------
Peter Johnson <peter@tortall.net>
%package devel
License: BSD3c
Summary: YASM development package
Group: Development/Languages/Other
AutoReqProv: on
Requires: %{name} = %{version}
%description devel
This package includes everything needed to develop programs that use
libyasm.
Authors:
--------
Peter Johnson <peter@tortall.net>
%prep
%setup -q
%build
export CFLAGS="%{optflags}"
%configure --prefix=/usr --with-gnu-ld --enable-python
make %{?jobs:-j%jobs}
%install
make DESTDIR=%buildroot install
%clean
rm -rf %buildroot
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc ABOUT-NLS AUTHORS Artistic.txt BSD.txt COPYING GNU_GPL-2.0
%doc GNU_LGPL-2.0
/usr/bin/*
%_mandir/man7/*
%_mandir/man1/*
%files devel
%defattr(-,root,root)
/usr/include/*
%_libdir/lib*.a
%changelog