Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlydtl
erlydtl.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File erlydtl.spec of Package erlydtl
%define bname erlydtl Name: %bname Version: 0.14.0 Release: 3 Summary: Django Template Language for Erlang License: Apache-2.0 Group: Development/Tools/Other URL: https://github.com/%bname/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch Patch1: %bname-0.12.1-escript.patch Patch2: %bname-0.12.1-doc.patch Patch3: %bname-0.14.0-stacktrace.patch BuildArch: noarch Provides: erlang-%bname = %version-%release Provides: %bname-devel = %version-%release Provides: erlang-%bname-devel = %version-%release BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 BuildRequires: erlang-parsetools erlang-parsetools-devel erlang_beam(merl) BuildRequires: eunit_formatters erlang-eunit-devel %description ErlyDTL compiles Django Template Language to Erlang bytecode. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release %description doc ErlyDTL compiles Django Template Language to Erlang bytecode. This package contains documentation of %bname. %prep %setup -q -n %bname-%version #patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 sed -i '/require_otp_vsn/s/\(|23\)"/\1|24|25|26"/' rebar.config sed -i '1s|^.*$|#!%_bindir/escript|' bin/* sed -i 's/git/"%version"/g' src/%bname.app.src.script %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", %%[[io_lib:print(E), ".\n"] || E <- lists:keydelete(deps, 1, L)], lists:map(fun(E) -> [io_lib:print(E), ".\n"] end, lists:keystore(edoc_opts, 1, lists:keydelete(deps, 1, L), {edoc_opts, lists:keystore(preprocess, 1, proplists:get_value(edoc_opts, L, []), {preprocess, true})})), [raw]), init:stop().' ERL_COMPILER_OPTIONS="[inline,verbose]" rebar %{?_smp_mflags} -C %bname.rebar.config compile -v rebar %{?_smp_mflags} -C %bname.rebar.config doc -v %install install -d -m 0755 %buildroot%_otplibdir/%bname-%version/ebin install -p -m 0644 ebin/* %buildroot%_otplibdir/%bname-%version/ebin/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/include install -p -m 0644 include/* %buildroot%_otplibdir/%bname-%version/include/ cp -a priv %buildroot%_otplibdir/%bname-%version/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/bin install -p -m 0755 bin/* %buildroot%_otplibdir/%bname-%version/bin/ install -d -m 0755 %buildroot{%_otpdir/bin,%_bindir} for i in %buildroot%_otplibdir/%bname-%version/bin/*; do f=$(basename $i) ln -sf %_otplibdir/%bname-%version/bin/$f %buildroot%_otpdir/bin/ ln -sf %_otpdir/bin/$f %buildroot%_bindir/ done install -d -m 0755 %buildroot%_otplibdir/%bname-%version/doc install -p -m 0644 doc/*.{css,html,png} %buildroot%_otplibdir/%bname-%version/doc/ install -d -m 0755 %buildroot%_docdir/%name ln -sf %_otplibdir/%bname-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 README.* *.md %buildroot%_docdir/%name/ %if 0 %check ERL_COMPILER_OPTIONS="[inline,verbose]" rebar -C %bname.rebar.config eunit -v %endif %files %defattr(-,root,root) %_bindir/* %_otpdir/bin/* %_otplibdir/* %exclude %_otplibdir/%bname-*/doc %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Sat Sep 02 2023 Led <ledest@gmail.com> 0.14.0-3 - add 26 to require_otp_vsn * Mon Aug 07 2022 Led <ledest@gmail.com> 0.14.0-2 - add 25 to require_otp_vsn * Sat Aug 21 2021 Led <ledest@gmail.com> 0.14.0-1 - 0.14.0 - add patches: + erlydtl-0.14.0-stacktrace.patch * Sat Aug 21 2021 Led <ledest@gmail.com> 0.12.1-8 - add 24 to require_otp_vsn * Tue May 19 2020 Led <ledest@gmail.com> 0.12.1-7 - add 23 to require_otp_vsn * Tue Sep 10 2019 Led <ledest@gmail.com> 0.12.1-6 - add patches: + erlydtl-0.12.1-escript.patch * Tue Sep 03 2019 Led <ledest@gmail.com> 0.12.1-5 - git 6486b1e * Sat Jul 06 2019 Led <ledest@gmail.com> 0.12.1-4 - add 21, 22 to require_otp_vsn * Mon Jun 18 2017 Led <ledest@gmail.com> 0.12.1-3 - add patches: + erlydtl-0.12.1-doc.patch - add doc subpackage * Sun May 21 2017 Led <ledest@gmail.com> 0.12.1-2 - fix build with Erlang/OTP 20 * Sun Oct 09 2016 Led <ledest@gmail.com> 0.12.1-1 - 0.12.1 * Sat Sep 03 2016 Led <ledest@gmail.com> 0.12.0-2 - git 7e5058c * Mon Aug 29 2016 Led <ledest@gmail.com> 0.12.0-1 - 0.12.0 * Fri Jul 15 2016 Led <ledest@gmail.com> 0.11.1-2 - rebar.config: add "19" to require_otp_vsn * Fri Jul 15 2016 Led <ledest@gmail.com> 0.11.1-1 - 0.11.1 - git e7c2de7 - disable %%check - remove patches: + 0001-update-rebar.config-to-accept-version-18.patch + erlydtl-0.10.0-merl-shipped-with-Erlang-OTP-as-of-v18.0.patch + erlydtl-0.10.0-Update-app-file-to-exclude-merl-app-when-shipped-wit.patch * Thu Mar 17 2016 Led <ledest@gmail.com> 0.10.0-11 - clean up BuildRequires * Sun Sep 27 2015 Led <ledest@gmail.com> 0.10.0-10 - add patches: + erlydtl-0.10.0-Update-app-file-to-exclude-merl-app-when-shipped-wit.patch * Sun Sep 27 2015 Led <ledest@gmail.com> 0.10.0-9 - fix build on Erlang < 18 * Sun Sep 27 2015 Led <ledest@gmail.com> 0.10.0-8 - fix build on Erlang < 18 * Sun Sep 27 2015 Led <ledest@gmail.com> 0.10.0-7 - fix BuildRequires * Sun Sep 27 2015 Led <ledest@gmail.com> 0.10.0-6 - fix build on Erlang 18 - add patches: + 0001-update-rebar.config-to-accept-version-18.patch + erlydtl-0.10.0-merl-shipped-with-Erlang-OTP-as-of-v18.0.patch * Sun Apr 12 2015 Led <ledest@gmail.com> 0.10.0-5 - clean ups * Sun Apr 05 2015 Led <ledest@gmail.com> 0.10.0-4 - fix %%files * Sun Apr 05 2015 Led <ledest@gmail.com> 0.10.0-3 - update BuildRequires * Sun Apr 05 2015 Led <ledest@gmail.com> 0.10.0-2 - cosmetic fixes - clean up BuildRequires * Mon Mar 30 2015 Led <ledest@gmail.com> 0.10.0-1 - initial build
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor