Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang-getopt
erlang-getopt.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File erlang-getopt.spec of Package erlang-getopt
%define bname getopt Name: erlang-%bname Version: 1.0.3 Release: 1 Summary: Erlang module to parse command line arguments using the GNU getopt syntax License: BSD-3-Clause Group: Development/Tools/Other URL: https://github.com/jcomellas/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch Provides: erlang-%bname = %version-%release BuildArch: noarch BuildRequires: rpm-macros-erlang rpm-build-erlang BuildRequires: rebar >= 2.6.1-7 %description Getopt for Erlang is a command-line parsing module that uses a syntax similar to that of GNU getopt. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release Conflicts: %bname < 1.0.1 %description doc Getopt for Erlang is a command-line parsing module that uses a syntax similar to that of GNU getopt. This pacjage contains documentation of %bname. %prep %setup -q -n %bname-%version #patch0 -p1 sed -i -r '1s|^.*/env[[:blank:]]+(.*)$|#!%_bindir/\1|' examples/*.escript erl -noshell -eval ' {ok, [{application, %bname, L}]} = file:consult("src/%bname.app.src"), file:write_file("src/%bname.app.src", io_lib:format("{application, %bname, ~97p}.~n", [lists:keydelete(maintainers, 1, L)]), [raw]), init:stop().' %build erl -noshell -eval ' {ok, L} = file:consult("rebar.config"), file:write_file("%bname.rebar.config", lists:map(fun(E) -> [io_lib:print(E), ".\n"] end, [{edoc_opts, [{preprocess, true}]}|lists:keydelete(deps, 1, L)]), [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/doc install -p -m 0644 doc/*.{css,html,png} %buildroot%_otplibdir/%bname-%version/doc/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/examples install -p -m 0755 examples/*.escript %buildroot%_otplibdir/%bname-%version/examples/ install -p -m 0644 examples/*.erl %buildroot%_otplibdir/%bname-%version/examples/ install -d -m 0755 %buildroot%_docdir/%name ln -sf %_otplibdir/%bname-%version/doc %buildroot%_docdir/%name/html install -p -m 0644 README* %buildroot%_docdir/%name/ %check ERL_COMPILER_OPTIONS='[inline,verbose]' rebar -C %bname.rebar.config eunit -v %files %defattr(-,root,root) %_otplibdir/* %exclude %_otplibdir/%bname-*/doc %files doc %defattr(-,root,root) %doc %_docdir/%name %doc %dir %_otplibdir/%bname-* %doc %_otplibdir/%bname-*/doc %changelog * Wed Dec 13 2023 Led <ledest@gmail.com> 1.0.3-1 - 1.0.3 * Fri Jul 29 2022 Led <ledest@gmail.com> 1.0.2-2 - remove patches: + getopt-test-utf8.patch * Thu Jul 21 2022 Led <ledest@gmail.com> 1.0.2-1 - 1.0.2 - git 838e67f * Fri Oct 25 2019 Led <ledest@gmail.com> 1.0.1-3 - add patches: + getopt-test-utf8.patch * Mon Oct 21 2019 Led <ledest@gmail.com> 1.0.1-2 - git 784b0ea * Thu Dec 07 2017 Led <ledest@gmail.com> 1.0.1-1 - 1.0.1 - move docs to separate subpackage * Sat Aug 26 2017 Led <ledest@gmail.com> 0.8.2-6 - fix build doc * Sat Aug 26 2017 Led <ledest@gmail.com> 0.8.2-5 - remove slim opt * Sun May 21 2017 Led <ledest@gmail.com> 0.8.2-4 - revert BuildRequires * Sat May 20 2017 Led <ledest@gmail.com> 0.8.2-3 - update BuildRequires * Sun May 31 2015 Led <ledest@gmail.com> 0.8.2-2 - fix URL * Sat May 30 2015 Led <ledest@gmail.com> 0.8.2-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