From 396d941d0b0ff44628a99632d33f1f63a042a801 Mon Sep 17 00:00:00 2001 From: Alex Musolino Date: Sep 30 2009 05:02:58 +0000 Subject: Imported avra into F-11 branch --- diff --git a/.cvsignore b/.cvsignore index e69de29..138f310 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +avra-1.2.3a-src.tar.bz2 diff --git a/avra.spec b/avra.spec new file mode 100644 index 0000000..8e4b54e --- /dev/null +++ b/avra.spec @@ -0,0 +1,83 @@ +Name: avra +Version: 1.2.3 +Release: 4%{?dist} +Summary: Atmel AVR assembler + +Group: Applications/Engineering +License: GPLv2+ +URL: http://avra.sourceforge.net/ +Source0: http://downloads.sourceforge.net/project/avra/avra/%{version}/avra-%{version}a-src.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: dos2unix +BuildRequires: unzip + +%description +Avra is an assembler for Atmel's AVR 8-bit RISC microcontollers. +It is mostly compatible with Atmel's own assembler, but provides new features +such as better macro support and additional preprocessor directives. +This package also contains various device definition files. + + +%prep +%setup -q +rm avra + +aclocal +autoconf +automake -a + +# Fix up encoding of documentation +dos2unix -k AUTHORS +iconv -f ISO-8859-1 -t UTF-8 README -o README.new +touch -r README README.new +mv README.new README + +# Unpack include files +unzip AVR000.zip -d include + +# Fix permissions and encoding of examples +chmod 644 Example/* +dos2unix -k Example/* + + +%build +%configure +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install INSTALL="%{_bindir}/install -p" DESTDIR=$RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/usr/share/%{name}-%{version}/ +install -p -m 0644 include/*.inc $RPM_BUILD_ROOT/usr/share/%{name}-%{version}/ + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc AUTHORS TODO README ChangeLog COPYING Example +%{_datadir}/%{name}-%{version} +%{_bindir}/%{name} + + +%changelog +* Tue Sep 29 2009 Alex Musolino - 1.2.3-4 +- Pass `install` arguments to make via command line arguments + +* Fri Sep 25 2009 Alex Musolino - 1.2.3-3 +- Moved build preperation commands to %%prep section +- Retain timestamps throughout +- Mentioned device definitions in %%description + +* Sun Sep 20 2009 Alex Musolino - 1.2.3-2 +- Added examples +- Added include files + +* Sat Sep 19 2009 Alex Musolino - 1.2.3-1 +- Initial RPM package diff --git a/import.log b/import.log new file mode 100644 index 0000000..b053922 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +avra-1_2_3-4_fc10:F-11:avra-1.2.3-4.fc10.src.rpm:1254286939 diff --git a/sources b/sources index e69de29..5e5029a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +738a40e52bb5b836ee7fd816669a99c2 avra-1.2.3a-src.tar.bz2