Name: avl
Version: 3.35
Release: 1%{?dist}
Summary: Aerodynamic and flight-dynamic analysis of rigid aircrafts
# Plotlib is LGPLv2+, the rest is GPLv2+
License: GPLv2+ and LGPLv2+
URL: http://web.mit.edu/drela/Public/web/avl/
Source0: http://web.mit.edu/drela/Public/web/avl/avl%{version}.tgz
# The package does not ship a license file
Source1: LICENSE.GPL
Source2: LICENSE.LGPL
# Makefile variables and flags
Patch0: avl3.35-makefile.patch
BuildRequires: gcc-gfortran libX11-devel
Requires: xorg-x11-fonts-misc
# There was a previous, now orphaned package called avl in the repos
Conflicts: avl < 3.32-1
%description
AVL is a program for the aerodynamic and flight-dynamic analysis of rigid aircraft
of arbitrary configuration. It employs an extended vortex lattice model for
the lifting surfaces, together with a slender-body model for fuselages and nacelles.
General nonlinear flight states can be specified. The flight dynamic analysis
combines a full linearization of the aerodynamic model about any flight state,
together with specified mass properties.
%prep
%setup -q -n Avl
%patch0 -p1
cp %{SOURCE1} .
cp %{SOURCE2} .
%build
export FFLAGS="%{optflags}"
export CFLAGS="%{optflags}"
make %{?_smp_mflags} -C plotlib
make %{?_smp_mflags} -C eispack
make %{?_smp_mflags} -C bin
%install
%make_install -C bin BINDIR=%{_bindir}
%files
%doc LICENSE.GPL LICENSE.LGPL version_notes.txt avl_doc.txt session1.txt session2.txt
%{_bindir}/avl
%changelog
* Wed Feb 12 2014 Sandro Mani <manisandro@gmail.com> - 3.35-1
- Update to version 3.35
* Sat Jan 25 2014 Sandro Mani <manisandro@gmail.com> - 3.32-5
- Rebuild without-fdefault-real-8
* Fri Sep 20 2013 Sandro Mani <manisandro@gmail.com> - 3.32-4
- Conflict with old avl
* Fri Sep 13 2013 Sandro Mani <manisandro@gmail.com> - 3.32-3
- Fix license
* Thu Sep 12 2013 Sandro Mani <manisandro@gmail.com> - 3.32-2
- Add license file
* Thu Sep 12 2013 Sandro Mani <manisandro@gmail.com> - 3.32-1
- Initial package for review