commit d7c31786889144100d6d47671b2c229e3ac08410 Author: MSVSphere Packaging Team Date: Fri Dec 20 15:10:09 2024 +0300 import rust-content_inspector-0.2.4-19.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c31ee11 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/content_inspector-0.2.4.crate diff --git a/.rust-content_inspector.metadata b/.rust-content_inspector.metadata new file mode 100644 index 0000000..e9e7895 --- /dev/null +++ b/.rust-content_inspector.metadata @@ -0,0 +1 @@ +d4797999a08e26bc1fdeaa66dcf97385c83d6c04 SOURCES/content_inspector-0.2.4.crate diff --git a/SOURCES/content_inspector-fix-metadata.diff b/SOURCES/content_inspector-fix-metadata.diff new file mode 100644 index 0000000..e42be12 --- /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 2023-04-12T18:14:33.727131+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..66d939f --- /dev/null +++ b/SPECS/rust-content_inspector.spec @@ -0,0 +1,141 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 19; + 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 24 +%bcond_without check +%global debug_package %{nil} + +%global crate content_inspector + +Name: rust-content_inspector +Version: 0.2.4 +Release: %autorelease +Summary: Fast inspection of binary buffers to guess/determine the encoding + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/content_inspector +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * exclude files that are only useful for upstream development +Patch: content_inspector-fix-metadata.diff + +BuildRequires: rust-packaging >= 21 + +%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 the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Fri Dec 20 2024 MSVSphere Packaging Team - 0.2.4-19 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 0.2.4-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 0.2.4-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 0.2.4-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Apr 12 2023 Fabio Valentini - 0.2.4-16 +- Regenerate with rust2rpm v24 + +* Fri Jan 20 2023 Fedora Release Engineering - 0.2.4-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* 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 + +## END: Generated by rpmautospec