angelscript/angelscript.spec

77 lines
3.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package angelscript
#
# Copyright (c) 2012 SUSE LINUX Products 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/
#
Name: angelscript
Version: 2.22.2
Release: 0
License: Zlib
%define soname 2
Summary: It is an extremely flexible cross-platform scripting library
Url: http://www.angelcode.com/angelscript/
Group: Development/Libraries/C and C++
Source: %{name}_%{version}.zip
# PATCH-FIX-OPENSUSE angelscript-makefile.patch fixed soname and build issues
Patch0: %{name}-makefile.patch
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 libangelscript%{soname}
Summary: It is an extremely flexible cross-platform scripting library
Group: System/Libraries
%description -n libangelscript%{soname}
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 -n libangelscript-devel
Summary: It is an extremely flexible cross-platform scripting library
Group: Development/Libraries/C and C++
Requires: libangelscript%{soname} = %{version}
%description -n libangelscript-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.
%post -n libangelscript%{soname} -p /sbin/ldconfig
%postun -n libangelscript%{soname} -p /sbin/ldconfig
%prep
%setup -q -n sdk/angelscript/projects/gnuc
%patch0 -p4
%build
make %{?_smp_mflags} SHARED=1
%install
make install DESTDIR=%{buildroot} DESTLIBDIR=%{_libdir} SHARED=1
%files -n libangelscript%{soname}
%defattr(-,root,root)
%{_libdir}/libangelscript.so.%{soname}
%{_libdir}/libangelscript.so.%{soname}.*
%files -n libangelscript-devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/libangelscript.so
%doc ../../../docs/manual/*
%changelog