Files
erlang-erlang_iso8601/erlang-erlang_iso8601.spec

52 lines
1.6 KiB
RPMSpec

#
# spec file for package erlang-erlang_iso8601
#
# Copyright (c) 2013 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/
#
Name: erlang-erlang_iso8601
Version: 0.0.0+git.1329354674.25675e1
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
Release: 0
License: MIT
Summary: Erlang ISO 8601 date formatter/parser
Url: https://github.com/opscode/erlang_iso8601
Group: Development/Libraries/Other
Source: erlang_iso8601-%{version}.tar.gz
BuildRequires: erlang-rebar
Requires: erlang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Erlang ISO 8601 date formatter/parser.
%prep
%setup -n erlang_iso8601-%{version}
%build
%rebar compile escriptize
%install
for dir in ebin ; do
install -d %{buildroot}%{erlang_libdir}/erlang_iso8601-%{mod_ver}/${dir}
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/erlang_iso8601-%{mod_ver}/${dir}/
done
%files
%defattr(-,root,root)
%dir %{erlang_libdir}/erlang_iso8601-%{mod_ver}
%{erlang_libdir}/erlang_iso8601-%{mod_ver}/ebin