diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b959dbf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/syn-1.0.109.crate diff --git a/README.md b/README.md deleted file mode 100644 index 8c5f2e9..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-syn1 - -The rust-syn1 package diff --git a/rust-syn1.spec b/rust-syn1.spec new file mode 100644 index 0000000..e091f35 --- /dev/null +++ b/rust-syn1.spec @@ -0,0 +1,214 @@ +# 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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..3b99a1c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (syn-1.0.109.crate) = 12816b9e8cf984024b2fbce9f0ae14cf94d4d2c06f08cc54fb793ce78770bb4cc1288eb7df0ba5e8e937756e1e8e295c53fe07a0c5dde1ea8ddba03b6203b37d