Accepting request 974738 from home:matwey:branches:devel:languages:erlang
OBS-URL: https://build.opensuse.org/request/show/974738 OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/erlang-ranch?expand=0&rev=1
This commit is contained in:
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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
15
_service
Normal file
15
_service
Normal file
@@ -0,0 +1,15 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="url">https://github.com/ninenines/ranch</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="revision">2.1.0</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="compression">xz</param>
|
||||
<param name="file">*.tar</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled">
|
||||
</service>
|
||||
</services>
|
4
_servicedata
Normal file
4
_servicedata
Normal file
@@ -0,0 +1,4 @@
|
||||
<servicedata>
|
||||
<service name="tar_scm">
|
||||
<param name="url">https://github.com/ninenines/ranch</param>
|
||||
<param name="changesrevision">ebf216e91ef2ae54d378234062db949d95f01c0d</param></service></servicedata>
|
4
erlang-ranch.changes
Normal file
4
erlang-ranch.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 3 15:28:14 UTC 2022 - Matwey Kornilov <matwey.kornilov@gmail.com>
|
||||
|
||||
- Initial version
|
69
erlang-ranch.spec
Normal file
69
erlang-ranch.spec
Normal file
@@ -0,0 +1,69 @@
|
||||
#
|
||||
# spec file
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%define app_name ranch
|
||||
Name: erlang-%{app_name}
|
||||
Version: 2.1.0
|
||||
%define app_ver %(echo "%{version}" | cut -d "+" -f1)
|
||||
Release: 0
|
||||
License: ISC
|
||||
Summary: Socket acceptor pool for TCP protocols
|
||||
URL: https://github.com/ninenines/ranch
|
||||
Group: Development/Libraries/Other
|
||||
Source: %{app_name}-%{version}.tar.xz
|
||||
Requires: erlang
|
||||
BuildRequires: erlang
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Ranch aims to provide everything you need to accept TCP connections with a
|
||||
small code base and low latency while being easy to use directly as an
|
||||
application or to embed into your own.
|
||||
|
||||
Ranch provides a modular design, letting you choose which transport and
|
||||
protocol are going to be used for a particular listener. Listeners accept and
|
||||
manage connections on one port, and include facilities to limit the number of
|
||||
concurrent connections. Connections are sorted into pools, each pool having a
|
||||
different configurable limit.
|
||||
|
||||
Ranch also allows you to upgrade the acceptor pool without having to close any
|
||||
of the currently opened sockets.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{app_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__make} %{?_smp_mflags} clean all
|
||||
|
||||
%install
|
||||
for dir in ebin ; do
|
||||
mkdir -p %{buildroot}%{erlang_libdir}/%{app_name}-%{app_ver}/${dir}
|
||||
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/%{app_name}-%{app_ver}/${dir}/
|
||||
done
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license LICENSE
|
||||
%doc README.asciidoc
|
||||
%dir %{erlang_libdir}/%{app_name}-%{app_ver}
|
||||
%dir %{erlang_libdir}/%{app_name}-%{app_ver}/ebin
|
||||
%{erlang_libdir}/%{app_name}-%{app_ver}/ebin/%{app_name}.app
|
||||
%{erlang_libdir}/%{app_name}-%{app_ver}/ebin/%{app_name}.appup
|
||||
%{erlang_libdir}/%{app_name}-%{app_ver}/ebin/*.beam
|
||||
|
||||
%changelog
|
3
ranch-2.1.0.tar.xz
Normal file
3
ranch-2.1.0.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:885a0cb1936986496bc08cebb1027a81ea5f14b8acd0ce49c51d58bca5a57aa3
|
||||
size 122096
|
Reference in New Issue
Block a user