Blame angelscript.spec

edca81e
Name:           angelscript
edca81e
Version:        2.30.0
856208e
Release:        5%{?dist}
edca81e
Summary:        Flexible cross-platform scripting library
edca81e
edca81e
License:        zlib
edca81e
URL:            http://www.angelcode.com/angelscript/
edca81e
Source0:        http://www.angelcode.com/angelscript/sdk/files/%{name}_%{version}.zip
edca81e
Source1:        angelscript-meson.build
edca81e
edca81e
BuildRequires:  meson chrpath
edca81e
edca81e
%description
edca81e
The AngelScript library is a software library for easy integration of
edca81e
external scripting to applications, with built-in compiler and virtual
edca81e
machine. The scripting language is easily extendable to incorporate
edca81e
application specific data types and functions. It is designed with C++
edca81e
in mind, as such it shares many features with C++, for example syntax
edca81e
and data types.
edca81e
edca81e
%package devel
edca81e
Summary:        Development files for %{name}
edca81e
Requires:       %{name}%{?_isa} = %{version}-%{release}
edca81e
edca81e
%description devel
edca81e
The %{name}-devel package contains libraries and header files for
edca81e
developing applications that use %{name}.
edca81e
edca81e
%prep
edca81e
%setup -q -c
edca81e
rm -rf build && mkdir build
edca81e
cp %{SOURCE1} sdk/%{name}/meson.build
066cc3d
mv -f sdk/%{name}/source/as_callfunc_arm_gcc.S sdk/%{name}/source/as_callfunc_arm_gcc.s
edca81e
edca81e
%build
edca81e
pushd build
edca81e
  %meson ../sdk/%{name}/
edca81e
  ninja-build -v
edca81e
popd
edca81e
edca81e
%install
edca81e
pushd build
edca81e
  DESTDIR=%{buildroot} ninja-build -v install
edca81e
popd
edca81e
chrpath -d %{buildroot}%{_libdir}/*
edca81e
edca81e
%post -p /sbin/ldconfig
edca81e
edca81e
%postun -p /sbin/ldconfig
edca81e
edca81e
%files
edca81e
%doc sdk/docs/articles/*.html
edca81e
%{_libdir}/lib%{name}.so.*
edca81e
edca81e
%files devel
edca81e
%doc sdk/docs/manual/*
edca81e
%{_libdir}/lib%{name}.so
edca81e
%{_includedir}/%{name}.h
edca81e
edca81e
%changelog
856208e
* Thu May 21 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.30.0-5
856208e
- arm build fixes
856208e
c3c78ec
* Wed May 20 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.30.0-4
c3c78ec
- Fix arm building
c3c78ec
edca81e
* Mon May 18 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.30.0-3
edca81e
- Fix docs in devel subpkg
edca81e
edca81e
* Wed May 13 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.30.0-2
edca81e
- Use custom builsystem to avoid multiple patching Makefile
edca81e
edca81e
* Sun Apr 26 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 2.30.0-1
edca81e
- Initial package