File erlang-lager_syslog.spec of Package erlang-lager_syslog
#
# spec file for package erlang-lager_syslog
#
# Copyright (c) 2017 Aeneas Jaissle <aj@ajaissle.de>
#
# 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://issues.kolab.org/
#
%define app_name lager_syslog
Name: erlang-lager_syslog
Version: 2.1.3
%define app_ver %(echo "%{version}" | cut -d "+" -f1)
Release: 0
Summary: Syslog backend for Lager
License: Apache-2.0
Group: Productivity/Networking/Other
Url: https://github.com/basho/lager_syslog
Source0: https://github.com/basho/%{app_name}/archive/%{version}.tar.gz#/%{app_name}-%{version}.tar.gz
Patch1: erlang-lager_syslog-relax_deps.patch
BuildRequires: erlang
BuildRequires: erlang-lager-devel
BuildRequires: erlang-syslog
BuildRequires: erlang-rebar
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: erlang
%description
This is a syslog backend for Lager. It allows you to send messages out of lager and into the local syslog daemon.
%prep
%setup -q -n %{app_name}-%{version}
%patch1 -p1
%build
%rebar ENABLE_STATIC=no compile
%install
for dir in ebin ; do
install -d %{buildroot}%{erlang_libdir}/%{app_name}-%{app_ver}/${dir}
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/%{app_name}-%{app_ver}/${dir}/
done
%files
%defattr(-,root,root)
%doc README.org
%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
%changelog