diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d91f155 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/build-context-0.1.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 18c1923..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-build-context - -The rust-build-context package diff --git a/rust-build-context.spec b/rust-build-context.spec new file mode 100644 index 0000000..642b59d --- /dev/null +++ b/rust-build-context.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate build-context + +Name: rust-build-context +Version: 0.1.1 +Release: %autorelease +Summary: Make build environment/target information available as constants + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/build-context +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Make build environment/target information available as constants in +normal libraries and binaries.} + +%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 +%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_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/rust2rpm.conf b/rust2rpm.conf new file mode 100644 index 0000000..300190f --- /dev/null +++ b/rust2rpm.conf @@ -0,0 +1,2 @@ +[DEFAULT] +summary = Make build environment/target information available as constants diff --git a/sources b/sources new file mode 100644 index 0000000..f7cccaa --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (build-context-0.1.1.crate) = d52435f679896016dbc943fcae2cc4f3851bc705a2be67498df8419dd5f91dc97545bed884e4bbe35f1d82af3be58fb3e6eeaea98483c040bcd506bd14fd8b65