From 30cde6ed3f354ea6c63980cafd62f456c44e3a65 Mon Sep 17 00:00:00 2001 From: blinxen Date: Sun, 17 Sep 2023 20:31:11 +0200 Subject: [PATCH] Initial package (rhbz#2236873) --- .gitignore | 1 + README.md | 3 -- rust-gix-tempfile.spec | 106 +++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 108 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-gix-tempfile.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6f101c9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-tempfile-9.0.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 460132a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-tempfile - -The rust-gix-tempfile package diff --git a/rust-gix-tempfile.spec b/rust-gix-tempfile.spec new file mode 100644 index 0000000..812b399 --- /dev/null +++ b/rust-gix-tempfile.spec @@ -0,0 +1,106 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate gix-tempfile + +Name: rust-gix-tempfile +Version: 9.0.0 +Release: %autorelease +Summary: Tempfile implementation with a global registry to assure cleanup + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-tempfile +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A tempfile implementation with a global registry to assure cleanup.} + +%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 + +%package -n %{name}+document-features-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+document-features-devel %{_description} + +This package contains library source intended for building other packages which +use the "document-features" feature of the "%{crate}" crate. + +%files -n %{name}+document-features-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+hp-hashmap-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+hp-hashmap-devel %{_description} + +This package contains library source intended for building other packages which +use the "hp-hashmap" feature of the "%{crate}" crate. + +%files -n %{name}+hp-hashmap-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+signals-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+signals-devel %{_description} + +This package contains library source intended for building other packages which +use the "signals" feature of the "%{crate}" crate. + +%files -n %{name}+signals-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..5928842 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-tempfile-9.0.0.crate) = 3aec88cdb72448ecd04dcceecc03e100455949e2fd83abfd9637f8a3df4b9e59c2ea6c81edf941958fd19500bd6f892898cb152ff59618390af6b0b4bb23b77f