## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; 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 # Generated by rust2rpm 27 %bcond check 1 # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 OR MIT # BSD-3-Clause # MIT # MIT OR Apache-2.0 # MIT OR Zlib OR Apache-2.0 %global binary_license BSD-3-Clause AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR MIT) AND MIT AND (MIT OR Zlib OR Apache-2.0) # LICENSE.dependencies contains a full license breakdown %global crate blazesym-c Name: rust-blazesym-c Version: 0.1.5 Release: %autorelease Summary: C bindings for blazesym License: BSD-3-Clause URL: https://crates.io/crates/blazesym-c Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Remove benchmark-only dev-dependency on criterion Patch: blazesym-c-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 BuildRequires: cargo-c %global _description %{expand: C bindings for blazesym.} %description %{_description} %package -n %{crate}-libs Summary: %{summary} License: %{binary_license} # LICENSE.dependencies contains a full license breakdown %description -n %{crate}-libs %{_description} %files -n %{crate}-libs %license %{crate_instdir}/LICENSE %license LICENSE.dependencies %doc CHANGELOG.md %doc README.md %{_libdir}/libblazesym_c.so.0.* %package -n %{crate}-devel Summary: %{summary} License: %{binary_license} Requires: %{crate}-libs%{?_isa} = %{version}-%{release} %description -n %{crate}-devel %{_description} The %{crate}-devel package contains libraries and header files for developing applications that use %{crate}. %files -n %{crate}-devel %{_includedir}/blazesym.h %if %{defined fc41} || %{defined fc42} || %{defined fc43} # Old header path is a symbolic link to the new one, for compatibility %dir %{_includedir}/blazesym_c %{_includedir}/blazesym_c/blazesym_c.h %endif %{_libdir}/libblazesym_c.so %{_libdir}/pkgconfig/blazesym_c.pc %package -n %{crate}-static Summary: %{summary} License: %{binary_license} Requires: %{crate}-devel%{?_isa} = %{version}-%{release} %description -n %{crate}-static %{_description} The %{crate}-static package contains library files for developing static applications that use %{crate}. %files -n %{crate}-static %{_libdir}/libblazesym_c.a %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+check-doc-snippets-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+check-doc-snippets-devel %{_description} This package contains library source intended for building other packages which use the "check-doc-snippets" feature of the "%{crate}" crate. %files -n %{name}+check-doc-snippets-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+dwarf-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dwarf-devel %{_description} This package contains library source intended for building other packages which use the "dwarf" feature of the "%{crate}" crate. %files -n %{name}+dwarf-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+generate-c-header-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+generate-c-header-devel %{_description} This package contains library source intended for building other packages which use the "generate-c-header" feature of the "%{crate}" crate. %files -n %{name}+generate-c-header-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -f capi,generate-c-header %build %cargo_build -f generate-c-header %{cargo_license_summary -f generate-c-header} %{cargo_license -f generate-c-header} > LICENSE.dependencies %cargo_cbuild %install %cargo_install -f generate-c-header %cargo_cinstall %if %{defined fc41} || %{defined fc42} || %{defined fc43} # Old header path is a symbolic link to the new one, for compatibility install -d '%{buildroot}%{_includedir}/blazesym_c' ln -s ../blazesym.h '%{buildroot}%{_includedir}/blazesym_c/blazesym_c.h' %endif %if %{with check} %check # * test data not included # * permission issues running tests in mock without root %{cargo_test -f generate-c-header -- -- --exact %{shrink: --skip helper::tests::build_id_reading --skip inspect::tests::lookup_dwarf --skip normalize::tests::normalize_build_id_reading --skip normalize::tests::normalize_custom_so_in_zip --skip symbolize::tests::symbolize_configurable_debug_dirs --skip symbolize::tests::symbolize_dwarf_demangle --skip symbolize::tests::symbolize_elf_cached::other_os::test --skip symbolize::tests::symbolize_elf_file_offset --skip symbolize::tests::symbolize_in_kernel --skip symbolize::tests::symbolize_no_debug_dirs --skip symbolize::tests::symbolize_in_process_cached --skip symbolize::tests::symbolize_in_process --skip normalize::tests::normalize_user_addrs_sorted --skip normalize::tests::normalize_user_addrs --skip symbolize::tests::symbolize_elf_dwarf_gsym --skip normalize::tests::normalize_user_addrs_unsorted_failure %ifarch s390x --skip normalize::tests::normalize_local_vdso_address %endif }} %endif %changelog ## START: Generated by rpmautospec * Tue Nov 04 2025 Benjamin A. Beasley - 0.1.5-1 - Update to version 0.1.5; Fixes RHBZ#2353239 * Fri Jul 25 2025 Fedora Release Engineering - 0.1.0~rc.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Thu Jun 26 2025 Benjamin A. Beasley - 0.1.0~rc.0-5 - Allow which 8 * Sun Jan 19 2025 Fedora Release Engineering - 0.1.0~rc.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Dec 05 2024 Benjamin A. Beasley - 0.1.0~rc.0-3 - Allow which 7 * Wed Aug 28 2024 Michel Lind - 0.1.0~rc.0-2 - Drop redundant pkgconfig dependency * Tue Aug 27 2024 Michel Lind - 0.1.0~rc.0-1 - Initial package (rhbz#2308280) ## END: Generated by rpmautospec