## 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 mqtree %global p1_utils_ver 1.0.26 Name: erlang-%{srcname} Version: 1.0.17 Release: %autorelease License: Apache-2.0 Summary: Index tree for MQTT topic filters URL: https://github.com/processone/%{srcname}/ VCS: git:%{url}.git Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz Patch1: erlang-mqtree-0001-Remove-bundled-uthash.patch Patch2: erlang-mqtree-0002-FIXME-disable-Rebar3-plugins.patch BuildRequires: erlang-p1_utils >= %{p1_utils_ver} BuildRequires: erlang-rebar3 BuildRequires: gcc BuildRequires: openssl-devel BuildRequires: uthash-devel Requires: erlang-p1_utils >= %{p1_utils_ver} %description An Erlang NIF implementation of N-ary tree to keep MQTT topic filters for efficient matching. %prep %autosetup -p1 -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/mqtree.c $CFLAGS -fPIC -c -I%{_libdir}/erlang/usr/include -o c_src/mqtree.o gcc c_src/mqtree.o $LDFLAGS -shared -L%{_libdir}/erlang/usr/lib -lei -o priv/lib/mqtree.so %install %{erlang3_install} install -d %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib install -pm755 priv/lib/* %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib/ %check %{erlang3_test} %files %license LICENSE %doc README.md %{erlang_appdir} %changelog ## START: Generated by rpmautospec * Wed Jul 17 2024 Fedora Release Engineering - 1.0.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 29 2024 Peter Lemenkov - 1.0.17-1 - mqtree ver. 1.0.17 * Wed Jun 12 2024 Peter Lemenkov - 1.0.16-1 - mqtree ver. 1.0.16 * Fri Apr 19 2024 Peter Lemenkov - 1.0.10-12 - More macros * Wed Jan 24 2024 Fedora Release Engineering - 1.0.10-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering - 1.0.10-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Jul 19 2023 Fedora Release Engineering - 1.0.10-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jan 19 2023 Fedora Release Engineering - 1.0.10-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 1.0.10-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.0.10-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 1.0.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 1.0.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Jul 31 2020 Randy Barlow - 1.0.10-1 - Update to 1.0.10 (#1807345). - https://github.com/processone/mqtree/blob/1.0.10/CHANGELOG.md * Sat Aug 01 2020 Fedora Release Engineering - 1.0.6-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 1.0.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Feb 17 2020 Randy Barlow - 1.0.6-1 - Update to 1.0.6 (#1788885). - https://github.com/processone/mqtree/blob/1.0.6/CHANGELOG.md * Tue Jan 28 2020 Fedora Release Engineering - 1.0.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Nov 26 2019 Randy Barlow - 1.0.5-2 - Bring mqtree back to s390x (#1772970). * Thu Nov 14 2019 Randy Barlow - 1.0.5-1 - Update to 1.0.5 (#1742469) - https://github.com/processone/mqtree/compare/1.0.3...1.0.5 - Add an exclusion on s390x (#1770256). * Wed Jul 24 2019 Fedora Release Engineering - 1.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Jun 05 2019 Randy Barlow - 1.0.3-1 - Update to 1.0.3 (#1713422). - https://github.com/processone/mqtree/compare/1.0.2...1.0.3 * Sun Apr 14 2019 Randy Barlow - 1.0.2-2 - Correct license to ASL 2.0 and BSD because c_src/uthash.h is unspecified BSD. * Sat Apr 13 2019 Randy Barlow - 1.0.2-1 - Initial release. ## END: Generated by rpmautospec