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
4f70b9b
%global patchlevel bld92
Eric Smith 4e3e0b6
e3a5d28
Name:           asl
e3a5d28
URL:            http://john.ccac.rwth-aachen.de:8000/as/index.html
e3a5d28
Version:        1.42
4f70b9b
Release:        0.19.%{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)
56ed010
BuildRequires:  tex(latex)
56ed010
%if 0%{?fedora} > 18 || 0%{?rhel} > 6
56ed010
BuildRequires:  tex(german.sty)
56ed010
%endif
56ed010
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 5f740ae
# Also, sometimes the directory name is just "asl-current"
Eric Smith 5f740ae
#%setup -q -n asl-142-Bld82
Eric Smith 5f740ae
%setup -q -n asl-current
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
4f70b9b
* Sat Mar 08 2014 Eric Smith <spacewar@gmail.com> 1.42-0.19.bld92
4f70b9b
- Updated to latest upstream snapshot, which fixes a problem with
4f70b9b
  string quoting.
4f70b9b
56ed010
* Wed Mar 05 2014 Eric Smith <spacewar@gmail.com> 1.42-0.18.bld91
56ed010
- Fixed problem building on EL6; don't require tex(german.sty) on EL6.
56ed010
5197ca1
* Wed Mar 05 2014 Eric Smith <spacewar@gmail.com> 1.42-0.17.bld91
5197ca1
- Updated to latest upstream snapshot.
5197ca1
5197ca1
* Thu Aug 15 2013 Eric Smith <spacewar@gmail.com> 1.42-0.16.bld89
04f2ce2
- Updated to latest upstream snapshot.
04f2ce2
95fc006
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.42-0.15.bld88
95fc006
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
95fc006
5197ca1
* Thu Jun 06 2013 Eric Smith <spacewar@gmail.com> 1.42-0.14.bld88
f9604e5
- Updated to latest upstream snapshot.
f9604e5
b4eb43c
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.42-0.13.bld84
b4eb43c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b4eb43c
Eric Smith 1ff3048
* Mon Oct 29 2012 Eric Smith <eric@brouhaha.com> 1.42-0.12.bld84
Eric Smith 1ff3048
- Updated to latest upstream snapshot.
Eric Smith 1ff3048
- Added BuildRequires for tex(german.sty), formerly part of texlive-texmf,
Eric Smith 1ff3048
  but post-F18 moved into texlive-german.
Eric Smith a8501c6
588acbc
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.42-0.11.bld83
588acbc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
588acbc
Eric Smith 5f740ae
* Wed Jun 06 2012 Eric Smith <eric@brouhaha.com> 1.42-0.11.bld83
Eric Smith 5f740ae
- updated to latest upstream snapshot
Eric Smith 5f740ae
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