angelscript/angelscript.spec
Cristian Morales Vega 2f94441ffc Accepting request 112489 from home:jengelh:branches:games
- Avoid use of descending relative paths in %files
- Add patch to allow using %optflags and resolve the
  prior rpmlint message about the lack of it

OBS-URL: https://build.opensuse.org/request/show/112489
OBS-URL: https://build.opensuse.org/package/show/games/angelscript?expand=0&rev=2
2012-04-13 09:54:04 +00:00

83 lines
3.2 KiB
RPMSpec

#
# 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
%define soname 2
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
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 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 -qn sdk
%patch -P 1 -P 2 -p1
%build
pushd angelscript/projects/gnuc/
make %{?_smp_mflags} SHARED=1 CXXFLAGS="%optflags"
popd
%install
pushd angelscript/projects/gnuc/
make install DESTDIR=%{buildroot} DESTLIBDIR=%{_libdir} SHARED=1
popd
%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