diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe11c14 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/serde-untagged-0.1.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 48a61e3..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-serde-untagged - -The rust-serde-untagged package diff --git a/rust-serde-untagged.spec b/rust-serde-untagged.spec new file mode 100644 index 0000000..9b91951 --- /dev/null +++ b/rust-serde-untagged.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate serde-untagged + +Name: rust-serde-untagged +Version: 0.1.1 +Release: %autorelease +Summary: Serde Visitor implementation for deserializing untagged enums + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/serde-untagged +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Serde `Visitor` implementation for deserializing untagged enums.} + +%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} -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..1584af7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (serde-untagged-0.1.1.crate) = 8b0137f6edb1011efe0ab2d6a4d3f091fbb963946036fdb66f8ec0ea475743e743086dd01468f02230815f4741109a321bf39ad0539ebd3af90612a043d2bd78