angelscript/angelscript.spec

73 lines
2.9 KiB
RPMSpec

#
# spec file for package angelscript
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
%define sover 2_31_1
Name: angelscript
Version: 2.31.1
Release: 0
Summary: It is an extremely flexible cross-platform scripting library
License: Zlib
Group: Development/Libraries/C and C++
Url: http://www.angelcode.com/angelscript/
Source: http://www.angelcode.com/angelscript/sdk/files/%{name}_%{version}.zip
BuildRequires: gcc-c++
BuildRequires: unzip
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The AngelCode Scripting Library, or AngelScript as it is also known, is an extremely flexible cross-platform scripting library designed to allow applications to extend their functionality through external scripts. It has been designed from the beginning to be an easy to use component, both for the application programmer and the script writer.
%package -n lib%{name}%{sover}
Summary: It is an extremely flexible cross-platform scripting library
Group: System/Libraries
%description -n lib%{name}%{sover}
It supports Unix sockets and TCP/IP sockets with optional SSL/TLS (OpenSSL) support. It allows you to write portable and secure network applications quickly without needing to spend time learning low-level system functions or reading OpenSSL manuals.
%package devel
Summary: It is an extremely flexible cross-platform scripting library
Group: Development/Libraries/C and C++
Requires: lib%{name}%{sover} = %{version}
%description devel
It supports Unix sockets and TCP/IP sockets with optional SSL/TLS (OpenSSL) support. It allows you to write portable and secure network applications quickly without needing to spend time learning low-level system functions or reading OpenSSL manuals.
%prep
%setup -q -n sdk/%{name}/projects/gnuc
%build
export CXXFLAGS="%{optflags}"
make %{?_smp_mflags} shared
%install
make install_shared install_header PREFIX=%{_prefix} DESTDIR=%{buildroot} LIBDIR_DEST=%{_libdir}
%post -n lib%{name}%{sover} -p /sbin/ldconfig
%postun -n lib%{name}%{sover} -p /sbin/ldconfig
%files -n lib%{name}%{sover}
%defattr(-,root,root)
%{_libdir}/libangelscript.so.*
%files devel
%defattr(-,root,root)
%attr(0644,root,root) %{_includedir}/*.h
%{_libdir}/libangelscript.so
%changelog