diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5c5c7e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/git-version-macro-0.3.4.crate diff --git a/rust-git-version-macro.spec b/rust-git-version-macro.spec new file mode 100644 index 0000000..55e6339 --- /dev/null +++ b/rust-git-version-macro.spec @@ -0,0 +1,86 @@ +# Generated by rust2rpm 18 +# * Tests are expecting upstream git repo +%bcond_with check +%global debug_package %{nil} + +%global crate git-version-macro + +Name: rust-%{crate} +Version: 0.3.4 +Release: %autorelease +Summary: Internal macro crate for git-version + +# Upstream license specification: BSD-2-Clause +# https://github.com/fusion-engineering/rust-git-version/issues/14 +License: BSD +URL: https://crates.io/crates/git-version-macro +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Internal macro crate for git-version.} + +%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 +%{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}+nightly-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+nightly-devel %{_description} + +This package contains library source intended for building other packages +which use "nightly" feature of "%{crate}" crate. + +%files -n %{name}+nightly-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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..8cf4c56 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (git-version-macro-0.3.4.crate) = 8e73a084b7929e3b3f6b608f442b15bd0eb76c35ec04b3e254310c7cfa8f09ad3477ac4445ba38e571b530155a0e79274feb39d0e6ed943fe210b9146911ebb2