diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ec36eac --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/flagset-0.4.3.crate diff --git a/README.md b/README.md deleted file mode 100644 index 4b1ec74..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-flagset - -The rust-flagset package diff --git a/rust-flagset.spec b/rust-flagset.spec new file mode 100644 index 0000000..5e25e9f --- /dev/null +++ b/rust-flagset.spec @@ -0,0 +1,80 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate flagset + +Name: rust-flagset +Version: 0.4.3 +Release: %autorelease +Summary: Data types and a macro for generating enumeration-based bit flags + +License: Apache-2.0 +URL: https://crates.io/crates/flagset +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Data types and a macro for generating enumeration-based bit flags.} + +%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 +%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}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-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..ea32642 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (flagset-0.4.3.crate) = 3bf8d995bf148c1cbe4fcd3b4b48d6f99e8536f462afb9f9368e3461a2d6bacd5a7f2263a0668505cc58b7a7a9c1188bbbcc285be2963d1fb2cd1ea46dab8f08