diff --git a/.gitignore b/.gitignore index e69de29..43be9da 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/lwtools-4.10.tar.gz diff --git a/lwtools.spec b/lwtools.spec new file mode 100644 index 0000000..c245e78 --- /dev/null +++ b/lwtools.spec @@ -0,0 +1,57 @@ +Name: lwtools +Version: 4.10 +Release: 1%{?dist} +Summary: Cross-development tool chain for Motorola 6809 and Hitachi 6309 + +Group: Development/Tools +License: GPLv3 +URL: http://lwtools.projects.l-w.ca/ +Source0: http://lwtools.projects.l-w.ca/releases/lwtools/lwtools-%{version}.tar.gz + +%description +LWTOOLS is a set of cross-development tools for the Motorola 6809 and +Hitachi 6309 microprocessors. It supports assembling to raw binaries, +CoCo LOADM binaries, and a proprietary object file format for later +linking. It also supports macros and file inclusion among other things. + +%package doc +Summary: Documentation for the LWTOOLS cross-development tool chain +BuildArch: noarch +Requires: %{name} = %{version}-%{release} + +%description doc +The complete documentation for the LWTOOLS cross-development tool chain. + + +%prep +%setup -q + + +%build +export LDFLAGS=${LDFLAGS:-%__global_ldflags} +make %{?_smp_mflags} CFLAGS="%{optflags}" + + +%install +make install INSTALLDIR=%{buildroot}%{_bindir}/ + +mkdir -p %{buildroot}%{_docdir}/%{name} +mv docs/*.txt %{buildroot}%{_docdir}/%{name} +mv docs/manual %{buildroot}%{_docdir}/%{name} +cp -a COPYING GPL3 00README.txt %{buildroot}%{_docdir}/%{name} + + +%files +%{_bindir}/* +%dir %{_docdir}/%{name} +%{_docdir}/%{name}/COPYING +%{_docdir}/%{name}/GPL3 + +%files doc +%{_docdir}/%{name}/*.txt +%{_docdir}/%{name}/manual + + +%changelog +* Fri Jun 13 2014 John W. Linville 4.10-1 +- Initial import diff --git a/sources b/sources index e69de29..84456de 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7f4ffd6418d8b625c5ff96c7b44bd9b8 lwtools-4.10.tar.gz