Accepting request 974737 from home:matwey:branches:devel:languages:erlang

OBS-URL: https://build.opensuse.org/request/show/974737
OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/erlang-cowlib?expand=0&rev=1
This commit is contained in:
2022-05-05 13:38:16 +00:00
committed by Git OBS Bridge
commit a6a51368f3
7 changed files with 113 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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
View File

@@ -0,0 +1 @@
.osc

15
_service Normal file
View File

@@ -0,0 +1,15 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/ninenines/cowlib</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="revision">2.11.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
View File

@@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/ninenines/cowlib</param>
<param name="changesrevision">e9448e5628c8c1d9083223ff973af8de31a566d1</param></service></servicedata>

3
cowlib-2.11.0.tar.xz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:42c5f4fa605c3c2ec7b171613c9fed331d7f6839287f544d622307948ab71da3
size 154608

4
erlang-cowlib.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Tue May 3 16:26:17 UTC 2022 - Matwey Kornilov <matwey.kornilov@gmail.com>
- Initial version

63
erlang-cowlib.spec Normal file
View File

@@ -0,0 +1,63 @@
#
# 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 cowlib
Name: erlang-%{app_name}
Version: 2.11.0
%define app_ver %(echo "%{version}" | cut -d "+" -f1)
Release: 0
License: ISC
Summary: Support library for manipulating Web protocols
URL: https://github.com/ninenines/cowlib
Group: Development/Libraries/Other
Source: %{app_name}-%{version}.tar.xz
Requires: erlang
BuildRequires: erlang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Cowlib provides libraries for parsing and building messages for various Web
protocols, including HTTP/1.1, HTTP/2 and Websocket.
It is optimized for completeness rather than speed. No value is ignored, they
are all returned.
%prep
%setup -q -n %{app_name}-%{version}
%build
%{__make} %{?_smp_mflags} clean all
%install
for dir in ebin include ; 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/*.beam
%dir %{erlang_libdir}/%{app_name}-%{app_ver}/include
%{erlang_libdir}/%{app_name}-%{app_ver}/include/*.hrl
%changelog