diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6b26c49 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/quick-xml-0.18.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 7823fef..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-quick-xml - -The rust-quick-xml package diff --git a/rust-quick-xml.spec b/rust-quick-xml.spec new file mode 100644 index 0000000..e9fa3c6 --- /dev/null +++ b/rust-quick-xml.spec @@ -0,0 +1,123 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate quick-xml + +Name: rust-%{crate} +Version: 0.18.1 +Release: 1%{?dist} +Summary: High performance xml reader and writer + +# Upstream license specification: MIT +License: MIT +URL: https://crates.io/crates/quick-xml +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +High performance xml reader and writer.} + +%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.md +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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_no_tilde}/Cargo.toml + +%package -n %{name}+encoding-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+encoding-devel %{_description} + +This package contains library source intended for building other packages +which use "encoding" feature of "%{crate}" crate. + +%files -n %{name}+encoding-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+encoding_rs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+encoding_rs-devel %{_description} + +This package contains library source intended for building other packages +which use "encoding_rs" feature of "%{crate}" crate. + +%files -n %{name}+encoding_rs-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages +which use "serde" feature of "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml + +%package -n %{name}+serialize-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serialize-devel %{_description} + +This package contains library source intended for building other packages +which use "serialize" feature of "%{crate}" crate. + +%files -n %{name}+serialize-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +* Wed Sep 16 2020 Fabio Valentini - 0.18.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..dfcdd23 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (quick-xml-0.18.1.crate) = 74158f53c40b57047d0d4a051bcc39dc6171774f1d9a497c1a208f6028c4838e568478a6f7d6047a48ead36d3beb7af4ca7a7cff2e8b3f3759f7fc31c56edaff