## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 fast_yaml %global p1_utils_ver 1.0.26 Name: erlang-%{srcname} Version: 1.0.37 Release: %autorelease License: Apache-2.0 Summary: An Erlang wrapper for libyaml "C" library URL: https://github.com/processone/%{srcname}/ VCS: git:%{url}.git Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz Patch1: erlang-fast_yaml-0001-Disable-port-compiler-until-we-package-it.patch Provides: erlang-p1_yaml = %{version}-%{release} Obsoletes: erlang-p1_yaml < 1.0.2 BuildRequires: gcc BuildRequires: erlang-rebar3 BuildRequires: erlang-p1_utils >= %{p1_utils_ver} BuildRequires: libyaml-devel Requires: erlang-p1_utils >= %{p1_utils_ver} %description P1 YAML is an Erlang wrapper for libyaml "C" library. %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/fast_yaml.c $CFLAGS -fPIC -c -I%{_libdir}/erlang/usr/include -o c_src/fast_yaml.o gcc c_src/fast_yaml.o $LDFLAGS -shared -L%{_libdir}/erlang/usr/lib -lei -lyaml -o priv/lib/fast_yaml.so %install %{erlang3_install} install -d $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{srcname}-%{version}/priv/lib install -pm755 priv/lib/* $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{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.37-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 28 2024 Peter Lemenkov - 1.0.37-1 - fast_yaml ver. 1.0.37 * Fri Apr 19 2024 Peter Lemenkov - 1.0.33-8 - Rebuild with a fixed Erlang macros * Wed Apr 17 2024 Peter Lemenkov - 1.0.33-7 - Switch to SPDX tag * Wed Jan 24 2024 Fedora Release Engineering - 1.0.33-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.0.33-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 1.0.33-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.0.33-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Peter Lemenkov - 1.0.33-1 - Update to 1.0.33 * Thu Jul 21 2022 Fedora Release Engineering - 1.0.27-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.0.27-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.0.27-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.0.27-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jul 31 2020 Randy Barlow - 1.0.27-1 - Update to 1.0.27 (#1807286). - https://github.com/processone/fast_yaml/blob/1.0.27/CHANGELOG.md * Sat Aug 01 2020 Fedora Release Engineering - 1.0.22-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.0.22-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Feb 17 2020 Randy Barlow - 1.0.22-1 - Update to 1.0.22 (#1789167). - https://github.com/processone/fast_yaml/blob/1.0.22/CHANGELOG.md * Tue Jan 28 2020 Fedora Release Engineering - 1.0.21-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 26 2019 Randy Barlow - 1.0.21-2 - Bring fast_yaml back to s390x (#1772969). * Thu Nov 14 2019 Randy Barlow - 1.0.21-1 - Update to 1.0.21 (1742455). - https://github.com/processone/fast_yaml/blob/1.0.20/CHANGELOG.md - https://github.com/processone/fast_yaml/blob/1.0.21/CHANGELOG.md - Add an exclusion on s390x (#1770256). * Wed Jul 24 2019 Fedora Release Engineering - 1.0.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jun 05 2019 Randy Barlow - 1.0.19-1 - Update to 1.0.19 (#1713301). - https://github.com/processone/fast_yaml/blob/1.0.19/CHANGELOG.md * Tue Apr 16 2019 Randy Barlow - 1.0.18-1 - Update to 1.0.18 (#1683116). - https://github.com/processone/fast_yaml/blob/1.0.18/CHANGELOG.md * Thu Feb 21 2019 Peter Lemenkov - 1.0.17-3 - Rebuild for Erlang 21 * Thu Jan 31 2019 Fedora Release Engineering - 1.0.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild ## END: Generated by rpmautospec