# spec file for package asl # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Spec file for Fedora modified by Eric Smith Name: asl URL: http://john.ccac.rwth-aachen.de:8000/as/index.html Version: 1.42 Release: 0.4.bld77%{?dist} Group: Development/Languages License: GPLv2+ Summary: Macro Assembler AS # In the upstream release tarball, there is a license issue with one file, # doc_DE/dina4.sty. It does not appear that this file is actually necessary. # The problem has been reported upstream, though there is no tracking number. #Source: http://john.ccac.rwth-aachen.de:8000/ftp/as/source/c_version/asl-current-142-bld77.tar.bz2 Source: asl-current-142-bld77-clean.tar.bz2 # Download the upstream tarball and invoke this script while in the tarball's # directory: # ./asl-generate-tarball.sh 142-bld77 Source1: asl-generate-tarball.sh Patch0: asl-Makefile.def.patch Patch1: asl-sysdefs.h.patch Patch2: asl-install.sh.patch Patch3: asl-Makefile-DESTDIR.patch BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: tex(latex) %description AS is a portable macro cross-assembler for a variety of microprocessors and controllers. Although it is mainly targeted at embedded processors and single-board computers, CPU families that are used in workstations and PCs in the target list. %prep %setup -q -n asl-current %patch0 -p0 -b .m-def %patch1 -p0 -b .sysdefs %patch2 -p0 -b .install %patch3 -p0 -b .destdir %build # make seems to have problems with %{_smp_mflags} make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" # make docs isn't SMP-safe, so can't use %{_smp_mflags} make docs %check make test %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT # convert doc files from ISO-8859-1 to UTF-8 encoding for f in changelog doc/as-EN.txt doc/as-DE.txt do iconv -fiso88591 -tutf8 $f >$f.new touch -r $f $f.new mv $f.new $f done %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/asl %{_bindir}/alink %{_bindir}/p2bin %{_bindir}/p2hex %{_bindir}/pbind %{_bindir}/plist %dir %{_datadir}/%{name} %{_datadir}/%{name}/include/ %{_datadir}/%{name}/lib/ %{_mandir}/man1/asl.1* %{_mandir}/man1/p2bin.1* %{_mandir}/man1/p2hex.1* %{_mandir}/man1/pbind.1* %{_mandir}/man1/plist.1* %{_mandir}/man1/alink.1* %doc COPYING README README.LANGS TODO BENCHES changelog %doc doc/as-EN.html doc/as-EN.txt doc/as-EN.ps doc/as-EN.pdf doc/as-EN.dvi %lang(de) %doc doc/as-DE.html doc/as-DE.txt doc/as-DE.ps doc/as-DE.pdf doc/as-DE.dvi %changelog -n asl * Wed Apr 21 2010 Eric Smith 1.42-0.4.bld77 - use cleaned source tarball until upstream removes doc_DE/dina4.sty - removed strcpy() patch * Tue Apr 20 2010 Eric Smith 1.42-0.3.bld77 - updated to latest upstream snapshot - removed doc_DE/dina4.sty due to unacceptable license - added lang tag for de docs - changed BuildRequires for latex to a virtual provides name * Mon Apr 12 2010 Eric Smith 1.42-0.2.bld75 - removed obsolete PPC64 patch * Sun Apr 11 2010 Eric Smith 1.42-0.1.bld75 - spec based on earlier review request 240807 - updated to latest upstream - fixed strcpy() usage bug in KillPrefBlanks