diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2574698 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/hex-literal-0.3.4.crate diff --git a/README.md b/README.md deleted file mode 100644 index b841351..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-hex-literal0.3 - -The rust-hex-literal0.3 package diff --git a/rust-hex-literal0.3.spec b/rust-hex-literal0.3.spec new file mode 100644 index 0000000..201c6fb --- /dev/null +++ b/rust-hex-literal0.3.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate hex-literal + +Name: rust-hex-literal0.3 +Version: 0.3.4 +Release: %autorelease +Summary: Procedural macro for converting hexadecimal string to byte array at compile time + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/hex-literal +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Procedural macro for converting hexadecimal string to byte array at +compile time.} + +%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}/CHANGELOG.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_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..8928aaf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (hex-literal-0.3.4.crate) = b064b9b66e36890d29f414ed5cb9c066000752c218867fcf96918e089d28a851dec8c790850e5a65e4105fa66c8e954cc0a950ad77c11fbfeed490e896301966