## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global srcname ezlib %global p1_utils_ver 1.0.26 Name: erlang-%{srcname} Version: 1.0.13 Release: %autorelease License: Apache-2.0 Summary: Native zlib driver for Erlang URL: https://github.com/processone/%{srcname} VCS: git:%{url}.git Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz Patch1: erlang-ezlib-0001-Disable-Rebar3-plugins.patch Provides: erlang-p1_zlib = %{version}-%{release} Obsoletes: erlang-p1_zlib <= 1.0.1-2 BuildRequires: erlang-p1_utils >= %{p1_utils_ver} BuildRequires: erlang-rebar3 BuildRequires: gcc BuildRequires: zlib-devel Requires: erlang-p1_utils >= %{p1_utils_ver} %description A native zlib driver for Erlang / Elixir, used by ejabberd. %prep %autosetup -n %{srcname}-%{version} %build %{erlang3_compile} # FIXME we don't have a port compiler plugin for rebar3 yet mkdir -p priv/lib gcc c_src/ezlib.c $CFLAGS -fPIC -c -I%{_libdir}/erlang/usr/include -o c_src/ezlib.o gcc c_src/ezlib.o $LDFLAGS -shared -L%{_libdir}/erlang/usr/lib -lei -lz -o priv/lib/ezlib.so %install %{erlang3_install} install -d $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/priv/lib install -pm755 priv/lib/ezlib.so \ $RPM_BUILD_ROOT%{_erllibdir}/%{srcname}-%{version}/priv/lib/ %check %{erlang3_test} %files %license LICENSE.txt %doc CHANGELOG.md %doc README.md %{erlang_appdir} %changelog ## START: Generated by rpmautospec * Wed Jul 17 2024 Fedora Release Engineering - 1.0.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jul 13 2024 Peter Lemenkov - 1.0.13-1 - ezlib ver. 1.0.13 * Fri Apr 19 2024 Peter Lemenkov - 1.0.8-13 - Rebuild with a fixed Erlang macros * Wed Apr 17 2024 Peter Lemenkov - 1.0.8-12 - Switch to SPDX tag * Wed Jan 24 2024 Fedora Release Engineering - 1.0.8-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.0.8-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 1.0.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.0.8-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 1.0.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.0.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.0.8-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jul 31 2020 Randy Barlow - 1.0.8-1 - Update to 1.0.8 (#1807016). - https://github.com/processone/ezlib/blob/1.0.8/CHANGELOG.md * Sat Aug 01 2020 Fedora Release Engineering - 1.0.6-5 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.0.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 1.0.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jul 24 2019 Fedora Release Engineering - 1.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jun 05 2019 Randy Barlow - 1.0.6-1 - Update to 1.0.6 (#1713426). - https://github.com/processone/ezlib/blob/1.0.6/CHANGELOG.md * Tue Apr 16 2019 Randy Barlow - 1.0.5-1 - Update to 1.0.5 (#1683183). - https://github.com/processone/ezlib/blob/1.0.5/CHANGELOG.md * Thu Jan 31 2019 Fedora Release Engineering - 1.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild ## END: Generated by rpmautospec