Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:20
gpb
gpb.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gpb.spec of Package gpb
%def_enable check %define bname gpb Name: %bname Version: 4.20.0 Release: 1 Summary: A Google Protobuf implementation for Erlang License: LGPL-2.1 Group: Development/Tools/Other URL: https://github.com/tomas-abrahamsson/%bname Source: %bname-%version.tar.xz #Patch0: %bname-%version-git.patch Patch11: %bname-4.19.8-stacktrace.patch Patch12: %bname-4.10.6-eunit.patch Patch13: %bname-4.9.3-gpb_nif_test_helpers.patch BuildArch: noarch Provides: erlang-%bname = %version-%release Provides: %name-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 %description The gpb is a compiler for Google protocol buffer definitions files for Erlang. %package doc Summary: Documentation of %bname Group: Documentation/HTML Provides: erlang-%bname-doc = %version-%release %description doc Documentation of %bname. %prep %setup -q -n %bname-%version #patch0 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 echo "%version" > gpb.vsn sed -i -r '1s@ */(usr/bin/env |bin/)bash *$@/bin/sh@' helpers/[ei-u]* sed -i '1s|^.*escript *|#!%__escript|' bin/protoc-erl 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, ~81p}.~n", [lists:keystore(vsn, 1, L, {vsn, "%version"})]), [raw]), init:stop()' %build %if %_otp_release >= 21 ERL_COMPILER_OPTIONS="[verbose,{d,'GPB_PATTERN_STACK'}]" \ %else ERL_COMPILER_OPTIONS="[verbose]" \ %endif rebar %{?_smp_mflags} compile -v rebar %{?_smp_mflags} 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/*.hrl %buildroot%_otplibdir/%bname-%version/include/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/helpers/git-hooks install -p -m 0755 helpers/git-hooks/* %buildroot%_otplibdir/%bname-%version/helpers/git-hooks/ install -p -m 0755 helpers/[i-x]* %buildroot%_otplibdir/%bname-%version/helpers/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/bin install -p -m 0755 bin/* %buildroot%_otplibdir/%bname-%version/bin/ install -d -m 0755 %buildroot%_otplibdir/%bname-%version/priv cp -r priv/* %buildroot%_otplibdir/%bname-%version/priv/ 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 ChangeLog README* %buildroot%_docdir/%name/ %if_enabled check %check %if %_otp_release < 24 %if %_otp_release >= 21 ERL_COMPILER_OPTIONS="[verbose,{d,'GPB_PATTERN_STACK'}]" \ %else ERL_COMPILER_OPTIONS="[verbose]" \ %endif rebar eunit -v %endif %endif %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 * Sat Oct 07 2023 Led <ledest@gmail.com> 4.20.0-1 - 4.20.0 * Sat Oct 07 2023 Led <ledest@gmail.com> 4.19.9-1 - 4.19.9 * Sun Aug 27 2023 Led <ledest@gmail.com> 4.19.8-1 - 4.19.8 - remove patches: + 0001-Fix-a-couple-of-scanner-parser-type-errors.patch - update patches: + gpb-4.19.8-stacktrace.patch * Sun Aug 27 2023 Led <ledest@gmail.com> 4.18.0-1 - 4.18.0 * Sun Aug 27 2023 Led <ledest@gmail.com> 4.17.7-3 - enable patches: + gpb-4.17.7-git.patch * Sun Aug 27 2023 Led <ledest@gmail.com> 4.17.7-2 - add patches: + 0001-Fix-a-couple-of-scanner-parser-type-errors.patch * Sun Aug 27 2023 Led <ledest@gmail.com> 4.17.7-1 - 4.17.7 - git 537bd01 - remove patches: + 0001-Bugfix-version-requesting-logic.patch - update patches: + gpb-4.17.7-stacktrace.patch * Sun Aug 27 2023 Led <ledest@gmail.com> 4.16.2-2 - disable check for Erlang/OTP >= 24 * Sun Aug 27 2023 Led <ledest@gmail.com> 4.16.2-1 - 4.16.2 - add patches: + 0001-Bugfix-version-requesting-logic.patch - remove patches: + 0001-Bugfix-reporting-of-errors-a-post-process-step.patch - update patches: + gpb-4.16.2-stacktrace.patch * Sun Aug 27 2023 Led <ledest@gmail.com> 4.15.2-1 - 4.15.2 - add patches: + 0001-Bugfix-reporting-of-errors-a-post-process-step.patch - update patches: + gpb-4.15.2-stacktrace.patch - disable check for Erlang/OTP >= 25 * Tue Mar 23 2021 Led <ledest@gmail.com> 4.14.2-2 - update patches: + gpb-4.14.2-stacktrace.patch * Sat Oct 31 2020 Led <ledest@gmail.com> 4.14.2-1 - 4.14.2 * Sat Oct 31 2020 Led <ledest@gmail.com> 4.13.0-1 - 4.13.0 - git e8055c7 * Sat Oct 31 2020 Led <ledest@gmail.com> 4.12.0-1 - 4.12.0 - git 4a34463 * Sat Oct 31 2020 Led <ledest@gmail.com> 4.11.2-1 - 4.11.2 * Sat Oct 31 2020 Led <ledest@gmail.com> 4.10.6-1 - 4.10.6 - remove patches: + 0001-Fix-eunit-tests-with-22.1.patch - update patches: + gpb-4.10.6-eunit.patch * Sat Oct 31 2020 Led <ledest@gmail.com> 4.9.3-1 - 4.9.3 - update patches: + gpb-4.9.3-stacktrace.patch - add patches: + gpb-4.9.3-eunit.patch + gpb-4.9.3-gpb_nif_test_helpers.patch * Sat Oct 31 2020 Led <ledest@gmail.com> 4.8.0-1 - 4.8.0 * Thu Oct 31 2019 Led <ledest@gmail.com> 4.6.0-1 - 4.6.0 * Mon Oct 28 2019 Led <ledest@gmail.com> 4.5.1-1 - 4.5.1 * Sun Oct 27 2019 Led <ledest@gmail.com> 4.4.1-2 - remove patches: + gpb-4.4.0-fix-gpb_gen_decoders.patch - add patches: + gpb-4.4.1-stacktrace.patch * Sun Oct 27 2019 Led <ledest@gmail.com> 4.4.1-1 - 4.4.1 - update patches: + gpb-4.4.0-fix-gpb_gen_decoders.patch * Sun Oct 27 2019 Led <ledest@gmail.com> 4.3.3-2 - add patches: + 0001-Fix-eunit-tests-with-22.1.patch * Wed Feb 27 2019 Led <ledest@gmail.com> 4.3.3-1 - 4.3.3 * Wed Feb 27 2019 Led <ledest@gmail.com> 4.3.1-1 - 4.3.1 - update patches: + gpb-4.3.1-fix-gpb_gen_decoders.patch * Thu Sep 13 2018 Led <ledest@gmail.com> 4.2.3-2 - fix shebang in build/mk_version_hrl * Wed Aug 29 2018 Led <ledest@gmail.com> 4.2.3-1 - 4.2.3 - add patches: + gpb-4.2.3-fix-gpb_gen_decoders.patch * Sat Feb 10 2018 Led <ledest@gmail.com> 4.1.3-1 - 4.1.3 * Fri Feb 02 2018 Led <ledest@gmail.com> 4.1.2-1 - 4.1.2 * Tue Nov 28 2017 Led <ledest@gmail.com> 4.0.2-1 - 4.0.2 * Thu Nov 16 2017 Led <ledest@gmail.com> 4.0.1-2 - try fix test for Erlang/OTP < 18 * Wed Nov 15 2017 Led <ledest@gmail.com> 4.0.1-1 - 4.0.1 * Sat Nov 04 2017 Led <ledest@gmail.com> 3.28.1-1 - 3.28.1 * Sun Oct 22 2017 Led <ledest@gmail.com> 3.28.0-2 - fix License * Sat Oct 21 2017 Led <ledest@gmail.com> 3.28.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