diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..26f5636 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/loop9-0.1.5.crate diff --git a/README.md b/README.md deleted file mode 100644 index ac4d776..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-loop9 - -The rust-loop9 package diff --git a/rust-loop9.spec b/rust-loop9.spec new file mode 100644 index 0000000..a5379e9 --- /dev/null +++ b/rust-loop9.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate loop9 + +Name: rust-loop9 +Version: 0.1.5 +Release: %autorelease +Summary: Visitor for every pixel in an image with neighboring pixels + +License: MIT +URL: https://crates.io/crates/loop9 +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Tiny helper function to visit every pixel in the image together with its +neighboring pixels. Duplicates pixels on the edges.} + +%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 + +%prep +%autosetup -n %{crate}-%{version} -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.toml b/rust2rpm.toml new file mode 100644 index 0000000..f04fd93 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +summary = "Visitor for every pixel in an image with neighboring pixels" + diff --git a/sources b/sources new file mode 100644 index 0000000..f3e8fa4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (loop9-0.1.5.crate) = 0a04d4e2561963671f5aa1c9af09470d0a8d30bb02299ab08c7dcec70b1dd3f9380244a59a4da1b8b269967313d6645a154a3dbe92fbae0e43cba6e009e6b7b9