commit b0ba5a82412ba18a058120eaeb07e82a1aab8dc5 Author: MSVSphere Packaging Team Date: Fri Dec 20 15:09:07 2024 +0300 import rust-configparser-3.1.0-2.el10 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..823dfdb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/configparser-3.1.0.crate diff --git a/.rust-configparser.metadata b/.rust-configparser.metadata new file mode 100644 index 0000000..70e192e --- /dev/null +++ b/.rust-configparser.metadata @@ -0,0 +1 @@ +9005b22f8676ae9f574c3a1c47812250780dc817 SOURCES/configparser-3.1.0.crate diff --git a/SOURCES/rust2rpm.toml b/SOURCES/rust2rpm.toml new file mode 100644 index 0000000..cc7a15c --- /dev/null +++ b/SOURCES/rust2rpm.toml @@ -0,0 +1,9 @@ +[package] +summary = "Simple configuration parsing utility with no dependencies" + +[scripts] +prep.post = [ + "# remove executable bits from files", + "find -type f -executable -print -exec chmod -x {} +", +] + diff --git a/SPECS/rust-configparser.spec b/SPECS/rust-configparser.spec new file mode 100644 index 0000000..405a571 --- /dev/null +++ b/SPECS/rust-configparser.spec @@ -0,0 +1,168 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + 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 26 +%bcond_without check +%global debug_package %{nil} + +%global crate configparser + +Name: rust-configparser +Version: 3.1.0 +Release: %autorelease +Summary: Simple configuration parsing utility with no dependencies + +License: MIT OR LGPL-3.0-or-later +URL: https://crates.io/crates/configparser +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A simple configuration parsing utility with no dependencies that allows +you to parse INI and ini-style syntax. You can use this to write Rust +programs which can be customized by end users easily.} + +%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-LGPL +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%doc %{crate_instdir}/CODE_OF_CONDUCT.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}+async-std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+async-std-devel %{_description} + +This package contains library source intended for building other packages which +use the "async-std" feature of the "%{crate}" crate. + +%files -n %{name}+async-std-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+indexmap-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+indexmap-devel %{_description} + +This package contains library source intended for building other packages which +use the "indexmap" feature of the "%{crate}" crate. + +%files -n %{name}+indexmap-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+tokio-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+tokio-devel %{_description} + +This package contains library source intended for building other packages which +use the "tokio" feature of the "%{crate}" crate. + +%files -n %{name}+tokio-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep +# remove executable bits from files +find -type f -executable -print -exec chmod -x {} + + +%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 - 3.1.0-2 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Fri Jul 19 2024 Fedora Release Engineering - 3.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 24 2024 Fabio Valentini - 3.1.0-1 +- Update to version 3.1.0; Fixes RHBZ#2291303 + +* Fri Jan 26 2024 Fedora Release Engineering - 3.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 13 2024 Fabio Valentini - 3.0.4-1 +- Update to version 3.0.4; Fixes RHBZ#2256450 + +* Sat Nov 25 2023 Fabio Valentini - 3.0.3-1 +- Update to version 3.0.3; Fixes RHBZ#2250134 + +* Sat Oct 14 2023 Fabio Valentini - 3.0.2-1 +- Update to version 3.0.2; Fixes RHBZ#2016784 + +* Fri Jul 21 2023 Fedora Release Engineering - 2.1.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon May 22 2023 Fabio Valentini - 2.1.0-7 +- Regenerate with rust2rpm v24 + +* Fri Jan 20 2023 Fedora Release Engineering - 2.1.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 2.1.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 2.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 2.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jun 22 2021 Fabio Valentini - 2.1.0-1 +- Update to version 2.1.0. +- Fixes RHBZ#1968589 + +* Mon Apr 12 2021 Fabio Valentini - 2.0.1-1 +- Initial package + +## END: Generated by rpmautospec