commit 4a4df386a6bff78ebea550f9ebc167eae5717deb Author: tigro Date: Mon Jan 15 20:50:48 2024 +0300 import rust-content_inspector-0.2.4-12.el9 diff --git a/.rust-content_inspector.metadata b/.rust-content_inspector.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/content_inspector-0.2.4.crate b/SOURCES/content_inspector-0.2.4.crate new file mode 100644 index 0000000..9b9d784 Binary files /dev/null and b/SOURCES/content_inspector-0.2.4.crate differ diff --git a/SOURCES/content_inspector-fix-metadata.diff b/SOURCES/content_inspector-fix-metadata.diff new file mode 100644 index 0000000..807ca77 --- /dev/null +++ b/SOURCES/content_inspector-fix-metadata.diff @@ -0,0 +1,9 @@ +--- content_inspector-0.2.4/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ content_inspector-0.2.4/Cargo.toml 2019-07-14T17:00:18.291157+00:00 +@@ -21,5 +21,6 @@ + categories = ["encoding"] + license = "MIT/Apache-2.0" + repository = "https://github.com/sharkdp/content_inspector" ++exclude = ["/testdata/create_text_files.py"] + [dependencies.memchr] + version = "2" diff --git a/SPECS/rust-content_inspector.spec b/SPECS/rust-content_inspector.spec new file mode 100644 index 0000000..fd64524 --- /dev/null +++ b/SPECS/rust-content_inspector.spec @@ -0,0 +1,117 @@ +# Generated by rust2rpm 10 +%bcond_without check +%global debug_package %{nil} + +%global crate content_inspector + +Name: rust-%{crate} +Version: 0.2.4 +Release: 12%{?dist} +Summary: Fast inspection of binary buffers to guess/determine the encoding + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/content_inspector +Source: %{crates_source} +# Initial patched metadata +# * Exclude CI files +Patch0: content_inspector-fix-metadata.diff + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Fast inspection of binary buffers to guess/determine the encoding.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -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 - 0.2.4-12 +- Rebuilt for MSVSphere 9.3 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.2.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 0.2.4-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.2.4-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.2.4-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.2.4-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.2.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.2.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Jul 14 19:00:18 CEST 2019 Igor Gnatenko - 0.2.4-5 +- Regenerate + +* Sat Feb 02 2019 Fedora Release Engineering - 0.2.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Dec 20 2018 Igor Gnatenko - 0.2.4-3 +- Run tests in infrastructure + +* Sun Nov 04 2018 Igor Gnatenko - 0.2.4-2 +- Exclude just python file + +* Sun Nov 04 2018 Igor Gnatenko - 0.2.4-1 +- Update to 0.2.4 + +* Sun Nov 04 2018 Igor Gnatenko - 0.2.3-1 +- Initial package