File postgrex.spec of Package postgrex
%define bname postgrex Name: %bname Version: 0.11.2 Release: 1 Summary: PostgreSQL driver for Elixir License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/ericmj/%bname Source: %bname-%version.tar.xz #Patch: %bname-%version-git.patch BuildArch: noarch Provides: elixir-%bname = %version-%release Requires: elixir >= 1.0 Requires: elixir-decimal >= 1.0 BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: mix BuildRequires: elixir-decimal >= 1.0 BuildRequires: elixir-connection >= 1.0 BuildRequires: elixir-db_connection >= 0.2 BuildRequires: ex_doc >= 0.11 BuildRequires: earmark >= 0.1 %description PostgreSQL driver for Elixir. %prep %setup -q -n %bname-%version #patch -p1 sed -i -r \ -e '/^[[:blank:]]*defp[[:blank:]]+description[[:blank:]]+do/s/^([[:blank:]]*).*$/\1defp deps do [] end\n\n&/' \ -e '/^[[:blank:]]*defp[[:blank:]]+deps[[:blank:]]+do[[:blank:]]*$/,/^[[:blank:]]*$/d' \ mix.exs %build LANG=en_US.UTF-8 \ mix compile --force --no-deps-check mix docs %install install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin install -p -m 0644 _build/dev/lib/%bname/ebin/* %buildroot%_otplibdir/%bname-%version/ebin/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/doc/dist install -p -m 0644 doc/dist/* %buildroot%_otplibdir/%bname-%version/doc/dist/ install -p -m 0644 doc/*.html %buildroot%_otplibdir/%bname-%version/doc/ install -d -m 0755 %buildroot%_docdir/%name install -m 0644 README* CHANGELOG* %buildroot%_docdir/%name/ ln -sf %_otplibdir/%bname-%version/doc %buildroot%_docdir/%name/html %if 0 %check LANG=en_US.UTF-8 mix test %endif %files %defattr(-,root,root) %doc %_docdir/%name %_otplibdir/* %changelog * Sat Jun 18 2016 Led <ledest@gmail.com> 0.11.2-1 - 0.11.2 * Sun Feb 28 2016 Led <ledest@gmail.com> 0.11.1-1 - 0.11.1 - git a598aab * Mon Feb 15 2016 Led <ledest@gmail.com> 0.11.0-1 - 0.11.0 * Sun Dec 13 2015 Led <ledest@gmail.com> 0.10.0-1 - 0.10.0 - add patches: + 0001-Add-Connection-and-Decimal-to-applications-in-mix.ex.patch - update BuildRequires * Sat Sep 12 2015 Led <ledest@gmail.com> 0.9.1-1 - 0.9.1 * Sat Jul 04 2015 Led <ledest@gmail.com> 0.8.4-1 - 0.8.4 * Tue Jun 02 2015 Led <ledest@gmail.com> 0.8.2-1 - 0.8.2 * Thu Apr 16 2015 Led <ledest@gmail.com> 0.8.1-1 - 0.8.1 - remove patches: + 0001-Fix-time-and-timestamp-off-by-one-bounds.patch * Mon Mar 09 2015 Led <ledest@gmail.com> 0.8.0-1 - initial build