angelscript/angelscript.spec

83 lines
3.2 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/
#
%define soname 2_25_2
Name: angelscript
Version: 2.25.2
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: %{name}_%{version}.zip
# PATCH-FEATURE-UPSTREAM makefile-flags.diff
Patch1: makefile-flags.diff
# PATCH-FIX-OPENSUSE angelscript-makefile.patch fixed soname and build issues
Patch2: %{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 lib%{name}-%{soname}
Summary: It is an extremely flexible cross-platform scripting library
Group: System/Libraries
%description -n lib%{name}-%{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 devel
Summary: It is an extremely flexible cross-platform scripting library
Group: Development/Libraries/C and C++
Requires: lib%{name}-%{soname} = %{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 -qn sdk
%patch1 -p1
%patch2 -p1
%build
pushd angelscript/projects/gnuc/
make %{?_smp_mflags} SHARED=1 CXXFLAGS="%{optflags}" SHARED=1 VERSION=%{version}
popd
%install
pushd angelscript/projects/gnuc/
make install DESTDIR=%{buildroot} DESTLIBDIR=%{_libdir} SHARED=1 VERSION=%{version}
popd
%post -n lib%{name}-%{soname} -p /sbin/ldconfig
%postun -n lib%{name}-%{soname} -p /sbin/ldconfig
%files -n lib%{name}-%{soname}
%defattr(-,root,root)
%{_libdir}/libangelscript-%{version}.so
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/libangelscript.so
%doc docs/manual/
%changelog