%define oname Falcon Name: falcon Version: 0.8.14.2 Release: %mkrel 1 Summary: The Falcon Programming Language License: GPLv2+ Group: Development/Other URL: http://www.falconpl.org/ Source: http://www.falconpl.org/project_dl/_official_rel/%{oname}-%{version}.tar.gz BuildRoot: %_tmppath/%name-%version-%release-root BuildRequires: bison BuildRequires: cmake BuildRequires: pcre-devel BuildRequires: zlib-devel %description The Falcon Programming Language is an embeddable scripting language aiming to empower even simple applications with a powerful, flexible, extensible and highly configurable scripting engine. Falcon is also a standalone multiplatform scripting language that aims to be both simple and powerful. %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog copyright README RELNOTES LICENSE LICENSE_GPLv2 %{_bindir}/falcon %{_bindir}/faldisass %{_bindir}/fallc.fal %{_bindir}/falrun %{_libdir}/falcon %{_libdir}/*.so.* %{_mandir}/man1/falcon.1.* %{_mandir}/man1/faldisass.1.* %{_mandir}/man1/fallc.fal.1.* %{_mandir}/man1/falrun.1.* #-------------------------------------------------------------------- %package devel Summary: Development files for %{name} Group: Development/Other Requires: %{name} = %{version}-%{release} %description devel The Falcon Programming Language is an embeddable scripting language aiming to empower even simple applications with a powerful, flexible, extensible and highly configurable scripting engine. Falcon is also a standalone multiplatform scripting language that aims to be both simple and powerful. This package contains development files for %{name}. This is not necessary for using the %{name} interpreter. %files devel %defattr(-,root,root,-) %{_bindir}/falcon-conf %{_bindir}/falconeer.fal %{_bindir}/faltest %{_includedir}/* %{_libdir}/*.so %{_mandir}/man1/falcon-conf* %{_mandir}/man1/falconeer.fal* %{_mandir}/man1/faltest* #-------------------------------------------------------------------- %prep %setup -q -n %oname-0.8.14 %build CXXFLAGS="$RPM_OPT_FLAGS -w" CFLAGS="$RPM_OPT_FLAGS -w" ./build.sh \ -p $RPM_BUILD_ROOT%{_prefix} -f %{_prefix} -l %{_lib} %{?_smp_flags} %install rm -rf $RPM_BUILD_ROOT ./build.sh -i # with cmake-2.6, the default install target misses some files [ -f $RPM_BUILD_ROOT%{_bindir}/faltest ] || \ (cd devel/release/build/core && make install && \ cd ../modules/feathers && make install) # Fix falconeer script sed -i "s|#!/bin/falcon|#!%{_bindir}/falcon|" \ $RPM_BUILD_ROOT%{_bindir}/falconeer.fal %clean rm -rf $RPM_BUILD_ROOT %changelog * Sun Mar 22 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 0.8.14.2-1mdv2009.1 + Revision: 360554 - Updated to version 0.8.14.2 * Sun Nov 23 2008 Nicolas Lécureuil <neoclust@mandriva.org> 0.8.12-2mdv2009.1 + Revision: 306093 - Fix Groups - Fix Groups - import falcon