Accepting request 107934 from devel:libraries:c_c++
Can this package please be added as a link to games OBS-URL: https://build.opensuse.org/request/show/107934 OBS-URL: https://build.opensuse.org/package/show/games/angelscript?expand=0&rev=1
This commit is contained in:
commit
92f72980cf
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
47
angelscript-makefile.patch
Normal file
47
angelscript-makefile.patch
Normal file
@ -0,0 +1,47 @@
|
||||
diff -Naur sdk.orig/angelscript/projects/gnuc/makefile sdk/angelscript/projects/gnuc/makefile
|
||||
--- sdk.orig/angelscript/projects/gnuc/makefile 2011-09-16 23:31:42.000000000 +0200
|
||||
+++ sdk/angelscript/projects/gnuc/makefile 2012-03-04 19:24:43.000000000 +0100
|
||||
@@ -4,9 +4,14 @@
|
||||
# For 'make install' to work, set LOCAL according to your system configuration
|
||||
LOCAL = /usr/local
|
||||
|
||||
+# Predefined variables
|
||||
+VERSION = 2.22.2
|
||||
+SONAME = 2
|
||||
+
|
||||
# If you want to build a shared library, then run make with SHARED=1 and VERSION=version
|
||||
ifdef SHARED
|
||||
- LIB = libangelscript-$(VERSION).so
|
||||
+ LIB = libangelscript.so.$(VERSION)
|
||||
+ SONAMELIB = libangelscript.so.$(SONAME)
|
||||
DEVLIB = libangelscript.so
|
||||
else
|
||||
LIB = libangelscript.a
|
||||
@@ -100,8 +105,7 @@
|
||||
|
||||
$(BIN): $(OBJDIR) $(LIBDIR) $(OBJ)
|
||||
ifdef SHARED
|
||||
- $(CXX) -shared -Wl,-soname,$(LIB) -o $(BIN) $(OBJ)
|
||||
- ( cd $(LIBDIR); ln -s $(LIB) $(DEVLIB) )
|
||||
+ $(CXX) -shared -Wl,-soname,$(SONAMELIB) -o $(BIN) $(OBJ)
|
||||
else
|
||||
$(AR) r $(BIN) $(OBJ)
|
||||
$(RANLIB) $(BIN)
|
||||
@@ -132,10 +136,14 @@
|
||||
@echo Installing to: $(LOCAL)/lib and $(LOCAL)/include...
|
||||
@echo -------------------------------------------------------------------
|
||||
ifdef SHARED
|
||||
- $(COPIER) $(LIBDIR)/$(DEVLIB) $(LOCAL)/lib
|
||||
+ ( cd $(LIBDIR); ln -s $(LIB) $(DEVLIB) ; ln -s $(LIB) $(SONAMELIB) )
|
||||
+ mkdir -p $(DESTDIR)/$(DESTLIBDIR)
|
||||
+ $(COPIER) $(LIBDIR)/$(DEVLIB) $(DESTDIR)/$(DESTLIBDIR)
|
||||
+ $(COPIER) $(LIBDIR)/$(SONAMELIB) $(DESTDIR)/$(DESTLIBDIR)
|
||||
endif
|
||||
- $(COPIER) $(BIN) $(LOCAL)/lib
|
||||
- $(COPIER) $(INCDIR)/$(INC) $(LOCAL)/include
|
||||
+ $(COPIER) $(BIN) $(DESTDIR)/$(DESTLIBDIR)
|
||||
+ mkdir -p $(DESTDIR)/usr/include
|
||||
+ $(COPIER) $(INCDIR)/$(INC) $(DESTDIR)/usr/include
|
||||
@echo -------------------------------------------------------------------
|
||||
@echo Angelscript library installed. Enjoy!
|
||||
|
24
angelscript.changes
Normal file
24
angelscript.changes
Normal file
@ -0,0 +1,24 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 4 18:33:21 UTC 2012 - joop.boonen@opensuse.org
|
||||
|
||||
- added docs
|
||||
- corrected the patch now it the soname and the devel file
|
||||
are symlinked to the version file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 4 01:27:09 UTC 2012 - joop.boonen@opensuse.org
|
||||
|
||||
- cleaned the spec file by means of spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 3 21:34:28 UTC 2012 - joop.boonen@opensuse.org
|
||||
|
||||
- corrected the license
|
||||
- adapted the spec file to the openSUSE standard
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 24 00:00:00 UTC 2012 - virus0025@gmail.com
|
||||
|
||||
- initial version
|
||||
|
||||
-------------------------------------------------------------------
|
76
angelscript.spec
Normal file
76
angelscript.spec
Normal file
@ -0,0 +1,76 @@
|
||||
#
|
||||
# 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
|
3
angelscript_2.22.2.zip
Normal file
3
angelscript_2.22.2.zip
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:83347de8649924d57e6de8b738faa5c7b6b0f9606ff174691c687cbbe828e8de
|
||||
size 1164123
|
Loading…
Reference in New Issue
Block a user