From 83dc1368a2bb450d900faa9770ca4c29f50eca47 Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Feb 07 2016 16:27:21 +0000 Subject: Initial import (#1294730). --- diff --git a/.gitignore b/.gitignore index e69de29..0b4a8b7 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/e72c03c60bfcb56bbb5d259342021d9cb3581dac.tar.gz diff --git a/erlang-p1_pgsql.spec b/erlang-p1_pgsql.spec new file mode 100644 index 0000000..e5bac7d --- /dev/null +++ b/erlang-p1_pgsql.spec @@ -0,0 +1,57 @@ +%global srcname p1_pgsql +# Erlang packages do not provide debug subpackages. +%global debug_package %{nil} +%global commit_date 20150428 +%global commit_hash e72c03c60bfcb56bbb5d259342021d9cb3581dac +%global short_commit_hash e72c03c6 + + +Name: erlang-%{srcname} +Version: 0 +Release: 15.%{commit_date}git%{short_commit_hash}%{?dist} +Provides: erlang-pgsql = %{version}-%{release} +Obsoletes: erlang-pgsql <= 0-15 +Summary: Pure Erlang PostgreSQL driver + +License: ERPL +URL: https://github.com/processone/pgsql/ +Source0: https://github.com/processone/pgsql/archive/%{commit_hash}.tar.gz + +BuildRequires: erlang +BuildRequires: erlang-rebar +BuildRequires: erlang-rpm-macros + +Requires: erlang-erts + + +%description +This is an Erlang PostgreSQL driver, used by ejabberd. + + +%prep +%autosetup -n pgsql-%{commit_hash} + + +%build +%rebar_compile + + +%install +install -d $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/ebin + +install -pm644 ebin/* $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/ebin + + +%files +%license EPLICENSE +%{_erllibdir}/%{srcname}-%{version} + + +%changelog +* Tue Jan 05 2016 Randy Barlow - 0-15.20150428gite72c03c6 +- Obsolete erlang-pgsql, which is the same package but installed to the wrong location for ejabberd. +- Remove the noarch, which was causing this package to get installed to the wrong location. +- Add a dependency on erlang-erts. + +* Tue Dec 29 2015 Randy Barlow - 0-1.20150428gite72c03c6 +- Initial release. diff --git a/sources b/sources index e69de29..446aa3a 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +88c03ca6b5e52fd96ad36b5e7932be85 e72c03c60bfcb56bbb5d259342021d9cb3581dac.tar.gz