%global libname libaime
Name: aime
Version: 7.20140427
Release: 2%{?dist}
Summary: An application embeddable programming language interpreter
License: GPLv3+
URL: http://aime-embedded.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/aime-embedded/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
%description
aime is a programming language with a C like syntax, intended for application
extending purposes. The aime collection comprises the language description, an
application embeddable interpreter (libaime), the interpreter C interface
description and a standalone interpreter. Many examples on how the interpreter
can be used (embedded in an application) are also available, together with
some hopefully useful applications, such as expression evaluators.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains header files for developing applications that
use %{name}.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -name '*.a' -delete -print
rm -f %{buildroot}%{_infodir}/dir
%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
/sbin/install-info %{_infodir}/%{libname}.info %{_infodir}/dir || :
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
/sbin/install-info --delete %{_infodir}/%{libname}.info %{_infodir}/dir || :
fi
%files
%doc COPYING README TODO
%{_bindir}/*
%{_mandir}/man1/*.1*
%{_infodir}/*.info*
%files devel
%{_includedir}/%{name}.h
%changelog
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.20140427-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed Apr 30 2014 Christopher Meng <rpm@cicku.me> - 7.20140427-1
- Update to 7.20140427
* Mon Jan 06 2014 Ralf Cors├ępius <corsepiu@fedoraproject.org> - 7.20131209-2
- Use R: /sbin/install-info (Fix broken installation dependency).
- Use /sbin/install-info instead of install-info in scriptlets.
- Make %%preun compliant to the FPG.
* Sat Dec 21 2013 Christopher Meng <rpm@cicku.me> - 7.20131209-1
- Update to 7.20131209
* Fri Oct 11 2013 Christopher Meng <rpm@cicku.me> - 6.20130921-1
- Update to 6.20130921
* Mon Aug 26 2013 Christopher Meng <rpm@cicku.me> - 6.20130824-1
- Update to 6.20130824
* Mon Jul 29 2013 Christopher Meng <rpm@cicku.me> - 6.20130713-1
- Update to 6.20130713
* Fri May 31 2013 Christopher Meng <rpm@cicku.me> - 5.20130520-1
- Initial Package.