Группа :: Разработка/Прочее
Пакет: asl
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Group: Development/Other
# BEGIN SourceDeps(oneline):
BuildRequires: gcc-c++
# END SourceDeps(oneline)
%define fedora 34
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# 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 <brouhaha at fedoraproject.org>
%global patchlevel bld134
Name: asl
URL: http://john.ccac.rwth-aachen.de:8000/as/index.html
Version: 1.42
Release: alt2_0.44.%{patchlevel}
License: GPLv2+
Summary: Macro Assembler AS
Source: http://john.ccac.rwth-aachen.de:8000/ftp/as/source/c_version/asl-current-142-%{patchlevel}.tar.bz2
Patch0: asl-Makefile.def.patch
Patch1: asl-sysdefs.h.patch
Patch2: asl-install.sh.patch
Patch3: asl-Makefile-DESTDIR.patch
BuildRequires: gcc
BuildRequires: tex(latex)
%if 0%{?fedora} > 18 || 0%{?rhel} > 7
BuildRequires: tex(german.sty)
%endif
Source44: import.info
%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
# It's a shame that the directory name has 142 instead of 1.42, and Bld82
# instead of bld82. Makes use of variable substitution difficult.
# Also, sometimes the directory name is just "asl-current"
#%setup -q -n asl-142-Bld82
%setup -q -n asl-current
%patch0 -p0 -b .m-def
%patch1 -p1 -b .sysdefs
%patch2 -p1 -b .install
%patch3 -p1 -b .destdir
# German documentation can't be built on EL7 because there is no
# tex(german.sty).
%if 0%{?rhel} != 0 && 0%{?rhel} <= 7
sed -i '/doc_DE/d' Makefile
%endif
%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
make install DESTDIR=$RPM_BUILD_ROOT
%if 0
# convert doc files from ISO-8859-1 to UTF-8 encoding
%if 0%{?rhel} != 0 && 0%{?rhel} <= 7
%global change_encoding_files changelog doc/as-EN.txt
%else
%global change_encoding_files changelog doc/as-EN.txt doc/as-DE.txt
%endif
for f in %{change_encoding_files}
do
iconv -fiso88591 -tutf8 $f >$f.new
touch -r $f $f.new
mv $f.new $f
done
%endif
%files
%{_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 --no-dereference COPYING
%doc 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
%if 0%{?rhel} == 0 || 0%{?rhel} > 7
#%lang(de) %doc doc/as-DE.html doc/as-DE.txt doc/as-DE.ps doc/as-DE.pdf doc/as-DE.dvi
%endif
%changelog -n asl
…
Полный changelog можно просмотреть здесь
# BEGIN SourceDeps(oneline):
BuildRequires: gcc-c++
# END SourceDeps(oneline)
%define fedora 34
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# 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 <brouhaha at fedoraproject.org>
%global patchlevel bld134
Name: asl
URL: http://john.ccac.rwth-aachen.de:8000/as/index.html
Version: 1.42
Release: alt2_0.44.%{patchlevel}
License: GPLv2+
Summary: Macro Assembler AS
Source: http://john.ccac.rwth-aachen.de:8000/ftp/as/source/c_version/asl-current-142-%{patchlevel}.tar.bz2
Patch0: asl-Makefile.def.patch
Patch1: asl-sysdefs.h.patch
Patch2: asl-install.sh.patch
Patch3: asl-Makefile-DESTDIR.patch
BuildRequires: gcc
BuildRequires: tex(latex)
%if 0%{?fedora} > 18 || 0%{?rhel} > 7
BuildRequires: tex(german.sty)
%endif
Source44: import.info
%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
# It's a shame that the directory name has 142 instead of 1.42, and Bld82
# instead of bld82. Makes use of variable substitution difficult.
# Also, sometimes the directory name is just "asl-current"
#%setup -q -n asl-142-Bld82
%setup -q -n asl-current
%patch0 -p0 -b .m-def
%patch1 -p1 -b .sysdefs
%patch2 -p1 -b .install
%patch3 -p1 -b .destdir
# German documentation can't be built on EL7 because there is no
# tex(german.sty).
%if 0%{?rhel} != 0 && 0%{?rhel} <= 7
sed -i '/doc_DE/d' Makefile
%endif
%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
make install DESTDIR=$RPM_BUILD_ROOT
%if 0
# convert doc files from ISO-8859-1 to UTF-8 encoding
%if 0%{?rhel} != 0 && 0%{?rhel} <= 7
%global change_encoding_files changelog doc/as-EN.txt
%else
%global change_encoding_files changelog doc/as-EN.txt doc/as-DE.txt
%endif
for f in %{change_encoding_files}
do
iconv -fiso88591 -tutf8 $f >$f.new
touch -r $f $f.new
mv $f.new $f
done
%endif
%files
%{_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 --no-dereference COPYING
%doc 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
%if 0%{?rhel} == 0 || 0%{?rhel} > 7
#%lang(de) %doc doc/as-DE.html doc/as-DE.txt doc/as-DE.ps doc/as-DE.pdf doc/as-DE.dvi
%endif
%changelog -n asl
…
Полный changelog можно просмотреть здесь