diff --git a/.gitignore b/.gitignore index e69de29..8a3c431 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/v1.4.2.tar.gz diff --git a/erlang-jsx.spec b/erlang-jsx.spec new file mode 100644 index 0000000..b8841c9 --- /dev/null +++ b/erlang-jsx.spec @@ -0,0 +1,45 @@ +%global installdir %{_libdir}/erlang/lib/jsx-%{version} +%global debug_package %{nil} +Name: erlang-jsx +Version: 1.4.2 +Release: 2%{?dist} +Summary: A streaming, evented json parsing toolkit +License: MIT +URL: https://github.com/talentdeficit/jsx +Source0: https://github.com/talentdeficit/jsx/archive/v%{version}.tar.gz + +BuildRequires: erlang-rebar +Requires: erlang-erts%{?_isa} >= R14B +Requires: erlang-stdlib%{?_isa} + +%description +An erlang application for consuming, producing and +manipulating json. inspired by yajl. + +%prep +%setup -q -n jsx-%{version} + +%build +rebar compile -v + +%install + +mkdir -p %{buildroot}%{installdir}/ebin +install -pm 644 ebin/jsx.app %{buildroot}%{installdir}/ebin +install -pm 644 ebin/*.beam %{buildroot}%{installdir}/ebin + +%check +rebar eunit -v + +%files +%{installdir} +%doc CHANGES.md LICENSE README.md + +%changelog +* Thu Aug 01 2013 gil cattaneo 1.4.2-2 +- add debug_package nil +- fix requires list +- drop erlang-eunit + +* Fri Jul 12 2013 gil cattaneo 1.4.2-1 +- initial rpm \ No newline at end of file diff --git a/sources b/sources index e69de29..37b0e7e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +09fb008904d4f1d57389ea43fc87cd51 v1.4.2.tar.gz