Accepting request 356184 from home:pluskalm:branches:devel:tools:compiler

- Cleanup spec-file with spec cleaner

OBS-URL: https://build.opensuse.org/request/show/356184
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/yasm?expand=0&rev=25
This commit is contained in:
Ismail Dönmez 2016-01-27 09:28:13 +00:00 committed by Git OBS Bridge
parent fa2786a276
commit 1ed62e10bb
2 changed files with 24 additions and 15 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jan 27 07:55:04 UTC 2016 - mpluskal@suse.com
- Cleanup spec-file with spec cleaner
-------------------------------------------------------------------
Tue Feb 3 11:45:57 UTC 2015 - crrodriguez@opensuse.org

View File

@ -1,7 +1,7 @@
#
# spec file for package yasm
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,19 +17,19 @@
Name: yasm
Version: 1.3.0
Release: 0
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.3.0
Release: 0
Url: http://www.tortall.net/projects/yasm/
Source: http://www.tortall.net/projects/yasm/releases/yasm-%{version}.tar.gz
Patch0: %{name}-no-build-date.patch
Patch1: %{name}-no-rpm-opt-flags.patch
Patch2: yasm-re2c-nogendate.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-base
BuildRequires: xmlto
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
YASM is a complete rewrite of the NASM assembler. It is designed from
@ -48,19 +48,18 @@ This package includes everything needed to develop programs that use
libyasm.
%prep
%setup -q -n %{name}-%{version}
%setup -q
%patch0 -p1
%patch1
%patch2 -p1
%build
export CFLAGS="%{optflags}"
%configure \
--with-gnu-ld \
--enable-python
--enable-python
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%post -p /sbin/ldconfig
@ -68,19 +67,24 @@ make DESTDIR=%{buildroot} install
%check
# 2 win64 test crash but we don't care
make check || true
make %{?_smp_mflags} check || true
%files
%defattr(-,root,root)
%doc Artistic.txt BSD.txt COPYING GNU_GPL-2.0 GNU_LGPL-2.0
%doc ABOUT-NLS AUTHORS
/usr/bin/*
%_mandir/man7/*
%_mandir/man1/*
%{_bindir}/vsyasm
%{_bindir}/yasm
%{_bindir}/ytasm
%{_mandir}/man1/yasm.1%{ext_man}
%{_mandir}/man7/yasm_arch.7%{ext_man}
%{_mandir}/man7/yasm_dbgfmts.7%{ext_man}
%{_mandir}/man7/yasm_objfmts.7%{ext_man}
%{_mandir}/man7/yasm_parsers.7%{ext_man}
%files devel
%defattr(-,root,root)
/usr/include/*
%_libdir/lib*.a
%{_includedir}/*
%{_libdir}/libyasm.a
%changelog