e3a5d28
# spec file for package asl
e3a5d28
# 
e3a5d28
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
e3a5d28
# This file and all modifications and additions to the pristine
e3a5d28
# package are under the same license as the package itself.
e3a5d28
#
e3a5d28
# Spec file for Fedora modified by Eric Smith <eric@brouhaha.com>
e3a5d28
Eric Smith 396a272
%global patchlevel bld82
Eric Smith 4e3e0b6
e3a5d28
Name:           asl
e3a5d28
URL:            http://john.ccac.rwth-aachen.de:8000/as/index.html
e3a5d28
Version:        1.42
Eric Smith 396a272
Release:        0.10.%{patchlevel}%{?dist}
e3a5d28
Group:          Development/Languages
e3a5d28
License:        GPLv2+
e3a5d28
Summary:        Macro Assembler AS
Eric Smith 4e3e0b6
Source:         http://john.ccac.rwth-aachen.de:8000/ftp/as/source/c_version/asl-current-142-%{patchlevel}.tar.bz2
e3a5d28
Patch0:         asl-Makefile.def.patch
e3a5d28
Patch1:         asl-sysdefs.h.patch
e3a5d28
Patch2:         asl-install.sh.patch
e3a5d28
Patch3:         asl-Makefile-DESTDIR.patch
e3a5d28
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
e3a5d28
BuildRequires:  tex(latex)
e3a5d28
e3a5d28
%description
e3a5d28
AS is a portable macro cross-assembler for a variety of
e3a5d28
microprocessors and controllers. Although it is mainly targeted at
e3a5d28
embedded processors and single-board computers, CPU families that are
e3a5d28
used in workstations and PCs in the target list.
e3a5d28
e3a5d28
%prep
Eric Smith 396a272
# It's a shame that the directory name has 142 instead of 1.42, and Bld82
Eric Smith 396a272
# instead of bld82. Makes use of variable substitution difficult.
Eric Smith 396a272
%setup -q -n asl-142-Bld82
e3a5d28
e3a5d28
%patch0 -p0 -b .m-def
e3a5d28
%patch1 -p0 -b .sysdefs
Eric Smith 396a272
%patch2 -p1 -b .install
e3a5d28
%patch3 -p0 -b .destdir
e3a5d28
e3a5d28
%build
e3a5d28
# make seems to have problems with %{_smp_mflags}
e3a5d28
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
e3a5d28
# make docs isn't SMP-safe, so can't use %{_smp_mflags}
e3a5d28
make docs
e3a5d28
e3a5d28
%check
e3a5d28
make test
e3a5d28
e3a5d28
%install
e3a5d28
rm -rf $RPM_BUILD_ROOT
e3a5d28
make install DESTDIR=$RPM_BUILD_ROOT
e3a5d28
e3a5d28
# convert doc files from ISO-8859-1 to UTF-8 encoding
e3a5d28
for f in changelog doc/as-EN.txt doc/as-DE.txt
e3a5d28
do
e3a5d28
  iconv -fiso88591 -tutf8 $f >$f.new
e3a5d28
  touch -r $f $f.new
e3a5d28
  mv $f.new $f
e3a5d28
done
e3a5d28
e3a5d28
%clean
e3a5d28
rm -rf $RPM_BUILD_ROOT
e3a5d28
e3a5d28
%files
e3a5d28
%defattr(-,root,root,-)
e3a5d28
%{_bindir}/asl
e3a5d28
%{_bindir}/alink
e3a5d28
%{_bindir}/p2bin
e3a5d28
%{_bindir}/p2hex
e3a5d28
%{_bindir}/pbind
e3a5d28
%{_bindir}/plist
e3a5d28
%dir %{_datadir}/%{name}
e3a5d28
%{_datadir}/%{name}/include/
e3a5d28
%{_datadir}/%{name}/lib/
e3a5d28
%{_mandir}/man1/asl.1*
e3a5d28
%{_mandir}/man1/p2bin.1*
e3a5d28
%{_mandir}/man1/p2hex.1*
e3a5d28
%{_mandir}/man1/pbind.1*
e3a5d28
%{_mandir}/man1/plist.1*
e3a5d28
%{_mandir}/man1/alink.1*
e3a5d28
%doc COPYING README README.LANGS TODO BENCHES changelog
e3a5d28
%doc doc/as-EN.html doc/as-EN.txt doc/as-EN.ps doc/as-EN.pdf doc/as-EN.dvi
e3a5d28
%lang(de) %doc doc/as-DE.html doc/as-DE.txt doc/as-DE.ps doc/as-DE.pdf doc/as-DE.dvi
e3a5d28
e3a5d28
%changelog -n asl
Eric Smith 396a272
* Sat Jan 21 2012 Eric Smith <eric@brouhaha.com> 1.42-0.10.bld82
Eric Smith 396a272
- updated to latest upstream snapshot
Eric Smith 396a272
d8bd37b
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.42-0.9.bld81
d8bd37b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d8bd37b
Eric Smith 4e3e0b6
* Thu Nov 10 2011 Eric Smith <eric@brouhaha.com> 1.42-0.8.bld81
Eric Smith 4e3e0b6
- updated to latest upstream snapshot
Eric Smith 4e3e0b6
6badead
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.42-0.7.bld79
6badead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6badead
Eric Smith 4b05c31
* Sun Jan 02 2011 Eric Smith <eric@brouhaha.com> 1.42-0.6.bld79
Eric Smith 4b05c31
- updated to latest upstream snapshot
Eric Smith 4b05c31
- upstream has removed doc_DE/dina4.sty, so we no longer need to use
Eric Smith 4b05c31
  a cleaned tarball
Eric Smith 4b05c31
026020c
* Sat Apr 24 2010 Eric Smith <eric@brouhaha.com> 1.42-0.5.bld77
026020c
- rebuilding because cvs-import.sh failed to import one patch for F-12
026020c
e3a5d28
* Wed Apr 21 2010 Eric Smith <eric@brouhaha.com> 1.42-0.4.bld77
e3a5d28
- use cleaned source tarball until upstream removes doc_DE/dina4.sty
e3a5d28
- removed strcpy() patch
e3a5d28
e3a5d28
* Tue Apr 20 2010 Eric Smith <eric@brouhaha.com> 1.42-0.3.bld77
e3a5d28
- updated to latest upstream snapshot
e3a5d28
- removed doc_DE/dina4.sty due to unacceptable license
e3a5d28
- added lang tag for de docs
e3a5d28
- changed BuildRequires for latex to a virtual provides name
e3a5d28
e3a5d28
* Mon Apr 12 2010 Eric Smith <eric@brouhaha.com> 1.42-0.2.bld75
e3a5d28
- removed obsolete PPC64 patch
e3a5d28
e3a5d28
* Sun Apr 11 2010 Eric Smith <eric@brouhaha.com> 1.42-0.1.bld75
e3a5d28
- spec based on earlier review request 240807
e3a5d28
- updated to latest upstream
e3a5d28
- fixed strcpy() usage bug in KillPrefBlanks