2014-03-07 12:52:04 +00:00
|
|
|
#
|
|
|
|
# spec file for package erlang-jsx
|
|
|
|
#
|
2022-07-13 07:07:14 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-03-07 12:52:04 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-07-13 07:07:14 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-03-07 12:52:04 +00:00
|
|
|
#
|
|
|
|
|
2015-09-15 07:51:19 +00:00
|
|
|
|
2014-03-07 12:52:04 +00:00
|
|
|
Name: erlang-jsx
|
2022-07-13 07:07:14 +00:00
|
|
|
Version: 3.1.0
|
2014-03-07 12:52:04 +00:00
|
|
|
Release: 0
|
2015-09-15 07:51:19 +00:00
|
|
|
%define mod_ver %(echo "%{version}" | cut -d "+" -f1)
|
2014-03-07 12:52:04 +00:00
|
|
|
Summary: Application for consuming, producing and manipulating json
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Other
|
2022-07-13 07:07:14 +00:00
|
|
|
URL: https://github.com/talentdeficit/jsx
|
2014-03-07 12:52:04 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2022-07-13 07:07:14 +00:00
|
|
|
Source0: jsx-%{version}.tar.xz
|
2014-03-07 12:52:04 +00:00
|
|
|
BuildRequires: erlang-rebar
|
|
|
|
|
|
|
|
%description
|
|
|
|
Jsx is an erlang application for consuming, producing and manipulating json.
|
|
|
|
|
|
|
|
%prep
|
2015-09-15 07:51:19 +00:00
|
|
|
%setup -q -n jsx-%{version}
|
2014-03-07 12:52:04 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%__rebar compile
|
|
|
|
|
|
|
|
%install
|
|
|
|
for dir in ebin ; do
|
|
|
|
install -d %{buildroot}%{erlang_libdir}/jsx-%{mod_ver}/${dir}
|
|
|
|
cp -r ${dir}/* %{buildroot}%{erlang_libdir}/jsx-%{mod_ver}/${dir}/
|
|
|
|
done
|
|
|
|
|
|
|
|
%check
|
|
|
|
%__rebar eunit
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE README.md CHANGES.md
|
|
|
|
%dir %{erlang_libdir}/jsx-%{mod_ver}
|
|
|
|
%{erlang_libdir}/jsx-%{mod_ver}/ebin
|
|
|
|
|
|
|
|
%changelog
|