commit 1a1994d756c5766cf63f00a2ee9ebb217d3a7269 Author: tigro Date: Mon Jan 15 23:03:52 2024 +0300 import rust-unicode-bom-2.0.3-1.el9 diff --git a/.rust-unicode-bom.metadata b/.rust-unicode-bom.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/unicode-bom-2.0.3.crate b/SOURCES/unicode-bom-2.0.3.crate new file mode 100644 index 0000000..10256b6 Binary files /dev/null and b/SOURCES/unicode-bom-2.0.3.crate differ diff --git a/SPECS/rust-unicode-bom.spec b/SPECS/rust-unicode-bom.spec new file mode 100644 index 0000000..3068308 --- /dev/null +++ b/SPECS/rust-unicode-bom.spec @@ -0,0 +1,90 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## 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 25 +%bcond_without check +%global debug_package %{nil} + +%global crate unicode-bom + +Name: rust-unicode-bom +Version: 2.0.3 +Release: %autorelease +Summary: Unicode byte-order mark detection for files and byte arrays + +License: Apache-2.0 +URL: https://crates.io/crates/unicode-bom +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Unicode byte-order mark detection for files and byte arrays.} + +%description %{_description} + +%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}/CONTRIBUTING.md +%doc %{crate_instdir}/HISTORY.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 + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Mon Jan 15 2024 Arkady L. Shane - 2.0.3-1 +- Rebuilt for MSVSphere 9.3 + +* Mon Nov 13 2023 blinxen - 2.0.3-1 +- Update to version 2.0.3 (rhbz#2249544) + +* Sat Jul 22 2023 Fedora Release Engineering - 2.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 06 2023 blinxen - 2.0.2-1 +- Initial package