## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %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 23 %bcond_without check %global debug_package %{nil} %global crate lzma-sys Name: rust-lzma-sys Version: 0.1.20 Release: %autorelease Summary: Raw bindings to liblzma # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/lzma-sys Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * drop feature for statically linking against the bundled version of liblzma Patch: lzma-sys-fix-metadata.diff Patch: 0001-build-unconditionally-link-against-system-liblzma.patch BuildRequires: rust-packaging >= 21 %global _description %{expand: Raw bindings to liblzma which contains an implementation of LZMA and xz stream encoding/decoding. High level Rust bindings are available in the `xz2` crate.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch Requires: (pkgconfig(liblzma) >= 5.2.4 with pkgconfig(liblzma) < 6.0.0) %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %{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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 # remove bundled dependencies rm -r xz-* rm config.h %cargo_prep %generate_buildrequires %cargo_generate_buildrequires echo '(pkgconfig(liblzma) >= 5.2.4 with pkgconfig(liblzma) < 6.0.0)' %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Mon Jan 15 2024 Arkady L. Shane - 0.1.20-1 - Rebuilt for MSVSphere 9.3 * Mon Dec 12 2022 Fabio Valentini 0.1.20-1 - Update to version 0.1.20; Fixes RHBZ#2138901 * Sat Jul 23 2022 Fedora Release Engineering 0.1.19-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jul 16 2022 Fabio Valentini 0.1.19-1 - Update to version 0.1.19; Fixes RHBZ#2094053 * Fri Jan 21 2022 Fedora Release Engineering - 0.1.17-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 0.1.17-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.1.17-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Nov 06 2020 Fabio Valentini - 0.1.17-1 - Update to version 0.1.17. - Fixes RHBZ#1887198 * Wed Jul 29 2020 Fedora Release Engineering - 0.1.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri May 15 2020 Josh Stone - 0.1.16-1 - Update to 0.1.16 * Thu Jan 30 2020 Fedora Release Engineering - 0.1.15-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Nov 23 2019 Josh Stone - 0.1.15-1 - Update to 0.1.15 * Fri Jul 26 2019 Fedora Release Engineering - 0.1.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Mar 07 2019 Josh Stone - 0.1.14-1 - Update to 0.1.14 * Sat Feb 02 2019 Fedora Release Engineering - 0.1.13-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Jan 08 2019 Josh Stone - 0.1.13-1 - Update to 0.1.13 * Fri Dec 07 2018 Josh Stone - 0.1.12-1 - Update to 0.1.12 - Adapt to new packaging * Thu Oct 11 2018 Josh Stone - 0.1.11-1 - Update to 0.1.11 * Sat Jul 14 2018 Fedora Release Engineering - 0.1.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jul 09 2018 Igor Gnatenko - 0.1.10-1 - Update to 0.1.10 * Wed Apr 25 2018 Igor Gnatenko - 0.1.9-3 - Bump filetime to 0.2 * Fri Feb 09 2018 Fedora Release Engineering - 0.1.9-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Jan 13 2018 Igor Gnatenko - 0.1.9-1 - Initial package