commit 92b9be8d2d0ec2a9f6ec0f6c2c99b2c3f995f657 Author: tigro Date: Sun Nov 19 23:48:44 2023 +0300 import rust-syn1-1.0.109-1.el9 diff --git a/.rust-syn1.metadata b/.rust-syn1.metadata new file mode 100644 index 0000000..e69de29 diff --git a/SOURCES/syn-1.0.109.crate b/SOURCES/syn-1.0.109.crate new file mode 100644 index 0000000..172cb09 Binary files /dev/null and b/SOURCES/syn-1.0.109.crate differ diff --git a/SPECS/rust-syn1.spec b/SPECS/rust-syn1.spec new file mode 100644 index 0000000..506e685 --- /dev/null +++ b/SPECS/rust-syn1.spec @@ -0,0 +1,228 @@ +## 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 24 +# * missing dev-dependency: syn-test-suite +%bcond_with check +%global debug_package %{nil} + +%global crate syn + +Name: rust-syn1 +Version: 1.0.109 +Release: %autorelease +Summary: Parser for Rust source code + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/syn +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Parser for Rust source code.} + +%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 + +%package -n %{name}+clone-impls-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+clone-impls-devel %{_description} + +This package contains library source intended for building other packages which +use the "clone-impls" feature of the "%{crate}" crate. + +%files -n %{name}+clone-impls-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+derive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+derive-devel %{_description} + +This package contains library source intended for building other packages which +use the "derive" feature of the "%{crate}" crate. + +%files -n %{name}+derive-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+extra-traits-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+extra-traits-devel %{_description} + +This package contains library source intended for building other packages which +use the "extra-traits" feature of the "%{crate}" crate. + +%files -n %{name}+extra-traits-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+fold-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+fold-devel %{_description} + +This package contains library source intended for building other packages which +use the "fold" feature of the "%{crate}" crate. + +%files -n %{name}+fold-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+full-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+full-devel %{_description} + +This package contains library source intended for building other packages which +use the "full" feature of the "%{crate}" crate. + +%files -n %{name}+full-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+parsing-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+parsing-devel %{_description} + +This package contains library source intended for building other packages which +use the "parsing" feature of the "%{crate}" crate. + +%files -n %{name}+parsing-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+printing-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+printing-devel %{_description} + +This package contains library source intended for building other packages which +use the "printing" feature of the "%{crate}" crate. + +%files -n %{name}+printing-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+proc-macro-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+proc-macro-devel %{_description} + +This package contains library source intended for building other packages which +use the "proc-macro" feature of the "%{crate}" crate. + +%files -n %{name}+proc-macro-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+quote-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+quote-devel %{_description} + +This package contains library source intended for building other packages which +use the "quote" feature of the "%{crate}" crate. + +%files -n %{name}+quote-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+test-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+test-devel %{_description} + +This package contains library source intended for building other packages which +use the "test" feature of the "%{crate}" crate. + +%files -n %{name}+test-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+visit-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+visit-devel %{_description} + +This package contains library source intended for building other packages which +use the "visit" feature of the "%{crate}" crate. + +%files -n %{name}+visit-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+visit-mut-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+visit-mut-devel %{_description} + +This package contains library source intended for building other packages which +use the "visit-mut" feature of the "%{crate}" crate. + +%files -n %{name}+visit-mut-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 +* Sun Nov 19 2023 Arkady L. Shane - 1.0.109-1 +- Rebuilt for MSVSphere 9.2 + +* Mon Mar 20 2023 Fabio Valentini - 1.0.109-1 +- Initial import (syn 1 compat package)