db67d9b
%global srcname p1_mysql
db67d9b
# Erlang packages do not provide debug subpackages
db67d9b
%global debug_package %{nil}
db67d9b
db67d9b
db67d9b
Name:       erlang-%{srcname}
19f5ecc
Version:    1.0.5
147206f
Release:    1%{?dist}
db67d9b
17dd250
Summary:    Pure Erlang MySQL driver
db67d9b
License:    BSD
17dd250
URL:        https://github.com/processone/p1_mysql/
147206f
Source0:    https://github.com/processone/p1_mysql/archive/%{version}/%{srcname}-%{version}.tar.gz
db67d9b
806ba89
BuildRequires: erlang-eunit
db67d9b
BuildRequires: erlang-rebar
db67d9b
BuildRequires: erlang-rpm-macros
db67d9b
db67d9b
Requires: erlang-erts
db67d9b
db67d9b
db67d9b
%description
db67d9b
This is an Erlang MySQL driver, used by ejabberd.
db67d9b
db67d9b
db67d9b
%prep
17dd250
%autosetup -n p1_mysql-%{version}
db67d9b
db67d9b
db67d9b
%build
69c3e1b
%{rebar_compile}
db67d9b
db67d9b
806ba89
%check
69c3e1b
%{rebar_eunit}
806ba89
806ba89
db67d9b
%install
69c3e1b
%{erlang_install}
db67d9b
db67d9b
db67d9b
%files
db67d9b
%license COPYING
806ba89
%doc README.md
db67d9b
%{_erllibdir}/%{srcname}-%{version}
db67d9b
db67d9b
db67d9b
%changelog
19f5ecc
* Tue Mar 27 2018 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.5-1
19f5ecc
- Update to 1.0.5 (#1496442).
19f5ecc
- https://github.com/processone/p1_mysql/blob/1.0.5/CHANGELOG.md
19f5ecc
147206f
* Mon Jul 31 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.3-1
147206f
- Update to 1.0.3 (#1459719).
147206f
73c7e72
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
73c7e72
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
73c7e72
ad5f512
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
ad5f512
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ad5f512
69c3e1b
* Sat Dec 31 2016 Randy Barlow <bowlofeggs@fedoraproject.org> - 1.0.2-1
69c3e1b
- Update to 1.0.2 (#1398618).
69c3e1b
806ba89
* Wed Feb 24 2016 Randy Barlow <rbarlow@redhat.com> - 1.0.1-1
806ba89
- Update to 1.0.1.
806ba89
- Add new upstream readme as a doc.
806ba89
- Add an invocation to eunit as per the readme, despite there not yet being tests.
806ba89
17dd250
* Tue Feb 16 2016 Randy Barlow <rbarlow@redhat.com> - 1.0.0-1
17dd250
- Release version 1.0.0.
17dd250
- Update to the new upstream URL and Source0.
17dd250
db67d9b
* Thu Dec 31 2015 Randy Barlow <rbarlow@redhat.com> - 0-1.20150929gitdfa87da9
db67d9b
- Initial release.