A new user interface for you! Read more...

File earmark.spec of Package earmark

%define bname earmark
Name: %bname
Version: 0.2.0
Release: 1
Summary: A Pure Elixir Markdown Processor
License: Apache-2.0 and ErlPL-1.1
Group: Development/Tools/Other
URL: https://github.com/pragdave/%bname
Source: %bname-%version.tar.xz
#Patch: %bname-%version-git.patch
BuildArch: noarch
Provides: elixir-%bname = %version-%release
Requires: elixir >= 1.0.0

BuildRequires: rpm-macros-erlang rpm-build-erlang
BuildRequires: mix

%description
Earmark — a Pure Elixir Markdown Processor.


%prep
%setup -q -n %bname-%version
#patch -p1
sed -i -r \
	-e '/^[[:blank:]]*defp[[:blank:]]+package[[: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


%install
install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin
install -p -m 0644 _build/dev/lib/%bname/ebin/* %buildroot%_otplibdir/%bname-%version/ebin/


%files
%defattr(-,root,root)
%doc README* Changelog*
%_otplibdir/*


%changelog
* Mon Feb 01 2016 Led <ledest@gmail.com> 0.2.0-1
- 0.2.0

* Sun Nov 29 2015 Led <ledest@gmail.com> 0.1.19-1
- 0.1.19

* Sat May 16 2015 Led <ledest@gmail.com> 0.1.16-1
- 0.1.16

* Sun Mar 29 2015 Led <ledest@gmail.com> 0.1.15-1
- 0.1.15

* Mon Mar 09 2015 Led <ledest@gmail.com> 0.1.13-2
- spec: cosmetic fixes

* Mon Mar 09 2015 Led <ledest@gmail.com> 0.1.13-1
- initial build