diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..16af930 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/symlink-0.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index fa241e4..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-symlink - -The rust-symlink package diff --git a/rust-symlink.spec b/rust-symlink.spec new file mode 100644 index 0000000..5424708 --- /dev/null +++ b/rust-symlink.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate symlink + +Name: rust-symlink +Version: 0.1.0 +Release: %autorelease +Summary: Create symlinks in a cross-platform manner + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/symlink +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Create symlinks in a cross-platform manner.} + +%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}/COPYRIGHT +%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_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..5701538 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (symlink-0.1.0.crate) = d5e5358678b9fc769cc1669a63163cb8000df4d73876a8a822a03a49ccf7c4171c10e5abf339b067f25d7f2fcf13d8e51dc648b11a76311950009f6fba122a21