File avra.spec of Package avra
#
# spec file for package avra
#
# Copyright (c) 2012 Wojciech Kazubski wk@ire.pw.edu.pl
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: avra
Version: 1.3.0
Release: 4
Summary: Assembler for Atmel AVR microcontrollers
Group: Development/Languages/Other
License: GPL-2.0-or-later
URL: http://avra.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/avra/avra/%{version}/avra-%{version}.tar.bz2
BuildRequires: autoconf
BuildRequires: automake
%description
Avra is an assembler for Atmel's AVR 8-bit RISC microcontollers, mostly
compatible with Atmel's own assembler, but providing some new features
such as better macro support and additional preprocessor directives.
This package also contains device definition files for various
microcontrollers.
%prep
%setup -q
%build
#./Build
# Build script uses provided makefiles with wrong options,
# building from scratch
touch NEWS
touch ChangeLog
cd src
./bootstrap
%configure
make
strip %{name}
%install
cd src
make install INSTALL="%{_bindir}/install -p" DESTDIR=%{buildroot}
cd ..
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/include
install -p -m 0644 includes/*.inc %{buildroot}%{_datadir}/%{name}-%{version}/include
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/examples
install -p -m 0644 examples/*.inc %{buildroot}%{_datadir}/%{name}-%{version}/examples
install -p -m 0644 examples/*.asm %{buildroot}%{_datadir}/%{name}-%{version}/examples
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/doc
install -p -m 0644 doc/*.html %{buildroot}%{_datadir}/%{name}-%{version}/doc
install -p -m 0644 doc/*.css %{buildroot}%{_datadir}/%{name}-%{version}/doc
cp -R doc/images %{buildroot}%{_datadir}/%{name}-%{version}/doc
%clean
rm -rf %{buildroot}
%files
%doc AUTHORS TODO COPYING doc/*.txt
%{_datadir}/%{name}-%{version}
%{_bindir}/%{name}
%changelog