%global realname jiffy
%global commit 1febce3ca86c5ca5d5a3618ed3d5f125bb99e4c5
Name: erlang-%{realname}
Version: 0.14.8
Release: 3%{?dist}
Summary: Erlang JSON parser
Group: Development/Libraries
License: MIT
URL: https://github.com/davisp/jiffy
Source0: https://github.com/davisp/jiffy/archive/%{commit}/%{realname}-%{commit}.tar.gz
Patch1: jiffy-system-double-conversion.patch
BuildRequires: erlang >= R14B
BuildRequires: erlang-rebar
BuildRequires: gcc-c++
BuildRequires: double-conversion-devel
%{?__erlang_nif_version:Requires: %{__erlang_nif_version}}
Provides: %{realname} = %{version}
Obsoletes: %{realname} < %{version}
%description
A JSON parser for Erlang implemented as a NIF.
%prep
%setup -q -n %{realname}-%{commit}
%patch1 -p1 -b .system-double-conversion
rm -r c_src/double-conversion
%build
%{erlang_compile}
%install
%{erlang_install}
%check
%{erlang_test}
%files
%{erlang_appdir}/
%doc README.md
%license LICENSE
%changelog
* Mon Aug 01 2016 Lubomir Rintel <lkundrak@v3.sk> - 0.14.8-3
- Rebuild for newer erlang-nif
* Fri Apr 22 2016 Peter Lemenkov <lemenkov@gmail.com> - 0.14.8-2
- Spec-file cleanup
* Wed Apr 6 2016 Filip Andres <filip@andresovi.net> - 0.14.8-1
- Update to version 0.14.8
* Wed Feb 10 2016 Peter Lemenkov <lemenkov@gmail.com> - 0.14.5-4
- Add check stanza back
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Sun Jan 31 2016 Filip Andres <filip@andresovi.net> - 0.14.5-2
- Remove check stanza until #1240487 is resolved
* Sun Dec 27 2015 Filip Andres <filip@andresovi.net> - 0.14.5-1
- Update to version 0.14.5
* Mon Jun 29 2015 Filip Andres <filip@andresovi.net> - 0.13.1-1
- Update to version 0.13.3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.8.5-8
- Rebuilt for GCC 5 C++11 ABI change
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jul 12 2014 Ville Skyttä <ville.skytta@iki.fi> - 0.8.5-6
- Use new erlang macros to build with $RPM_OPT/LD_FLAGS etc, verbosely
- Run unit tests during build
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.5-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Tue Mar 18 2014 Ville Skyttä <ville.skytta@iki.fi> - 0.8.5-4
- Use system double-conversion instead of bundled one
* Wed Mar 12 2014 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> - 0.8.5-3
- Fix version number in version patch
* Wed Mar 12 2014 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> - 0.8.5-2
- Bring back Filip's version patch
- Rename to erlang-jiffy
- Adjust c++ requirement, as suggested by sir Andres
* Tue Mar 11 2014 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> - 0.8.5-1
- New version
- Remove the plt file
- Remove empty scriptlets
- Use correct compiler flags
- Remove artifacts not used by modern RPM
- Own the module directory
- Do not use bundled rebar
- No need for explicit GCC dependency
- Relax dependency on complete Erlang distribution
- Remove deproper patch
- Add documentation
- Fix library file mode
* Thu Jul 18 2013 Filip Andres <filip.andres@gooddata.com> - 0.8.3-1.gdc2
* Correcting the version inside jiffy.app and including jiffy_utf8
* Fri May 17 2013 Filip Andres <filip.andres@gooddata.com> - 0.8.3-1.gdc1
* Updating to 0.8.3
* Thu Jan 03 2013 Filip Andres <filip.andres@gooddata.com> - 0.6.1-1.gdc3
- Packaging the plt file with the rest of jiffy
* Wed Jan 02 2013 Filip Andres <filip.andres@gooddata.com> - 0.6.1-1.gdc2
- Building plt
* Mon Dec 10 2012 Filip Andres <filip.andres@gooddata.com> - 0.6.1-1.gdc1
- Imported version 0.6.1
* Mon Apr 16 2012 Filip Andres <filip.andres@gooddata.com> - 0.4.1
- Initial packaging