Accepting request 239816 from home:darix:erlang

new dep for ejabberd

OBS-URL: https://build.opensuse.org/request/show/239816
OBS-URL: https://build.opensuse.org/package/show/devel:languages:erlang/erlang-lhttpc?expand=0&rev=1
This commit is contained in:
2014-07-07 15:31:37 +00:00
committed by Git OBS Bridge
commit 2097b267d8
6 changed files with 126 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

25
erlang-lhttpc.changes Normal file
View File

@@ -0,0 +1,25 @@
-------------------------------------------------------------------
Mon Jul 7 15:30:23 UTC 2014 - mrueckert@suse.de
- use the correct license: BSD-3-Clause
-------------------------------------------------------------------
Sat Jul 5 13:48:10 UTC 2014 - mrueckert@suse.de
- added lhttpc-fix-encoding-issue.patch:
the encoding of the author name seems to be invalid UTF-8
just replace it with plain ascii for now.
-------------------------------------------------------------------
Sat Jul 5 13:25:22 UTC 2014 - mrueckert@suse.de
- cleanup
- added proper description and summary
- install documentation
- use the timestamp from the last git commit
-------------------------------------------------------------------
Fri Jul 4 18:44:15 UTC 2014 - mrueckert@suse.de
- initial package

61
erlang-lhttpc.spec Normal file
View File

@@ -0,0 +1,61 @@
#
# Copyright (c) 2014 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 app_name lhttpc
Name: erlang-%{app_name}
Version: 1.3.0+git1394140540.5e459ec
Release: 0
%define app_ver %(echo "%{version}" | cut -d "+" -f1)
License: BSD-3-Clause
Summary: A lightweight HTTP/1.1 client implemented in Erlang
Url: http://github.com/esl/lhttpc
Group: Development/Libraries/Other
Source: %{app_name}-%{version}.tar.bz2
Patch: lhttpc-fix-encoding-issue.patch
Requires: erlang
BuildRequires: erlang erlang-rebar
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
lhttpc is a lightweight HTTP/1.1 client implemented in Erlang.
%prep
%setup -q -n %{app_name}-%{version}
%patch -p1
%build
%rebar compile
%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
%check
#rebar eunit
%files
%defattr(-,root,root)
%doc README CHANGELOG LICENCE doc/* TODO
%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

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9e0e6197fd7da2567bc0215d8242b292ed749ebe0a2c4017e686cf7fb63f968c
size 1220588

View File

@@ -0,0 +1,13 @@
diff --git a/src/lhttpc.app.src b/src/lhttpc.app.src
index 1c3d93b..35f7cc7 100644
--- a/src/lhttpc.app.src
+++ b/src/lhttpc.app.src
@@ -24,7 +24,7 @@
%%% ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
%%% ----------------------------------------------------------------------------
-%%% @author Oscar Hellstr<74>m <oscar@hellstrom.st>
+%%% @author Oscar Hellstrom <oscar@hellstrom.st>
%%% @doc This is the specification for the lhttpc application.
%%% @end
{application, lhttpc,