Files
erlang-poolboy/erlang-poolboy.spec

56 lines
1.6 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package erlang-poolboy
#
# Copyright (c) 2015 SUSE LINUX 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: erlang-poolboy
Version: 1.5.2
Release: 0
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
Summary: A hunky Erlang worker pool factory
License: Apache-2.0
Group: Development/Libraries/Other
Url: https://github.com/devinus/poolboy
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: poolboy-%{version}.tar.bz2
BuildRequires: erlang-rebar
%description
A hunky Erlang worker pool factory.
%prep
%setup -q -n poolboy-%{version}
%build
%__rebar compile
%install
for dir in ebin ; do
install -d %{buildroot}%{erlang_libdir}/poolboy-%{mod_ver}/${dir}
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/poolboy-%{mod_ver}/${dir}/
done
%check
%__rebar eunit
%files
%defattr(-,root,root)
%doc LICENSE README.md
%dir %{erlang_libdir}/poolboy-%{mod_ver}
%{erlang_libdir}/poolboy-%{mod_ver}/ebin
%changelog