From 2103b5de9a9b215307bbd065a51f23b89d4873a7 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 6 Nov 2017 18:08:15 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + heapsize-0.4.1-fix-metadata.diff | 12 ++++++ rust-heapsize.spec | 68 ++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 82 insertions(+) create mode 100644 .gitignore create mode 100644 heapsize-0.4.1-fix-metadata.diff create mode 100644 rust-heapsize.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c27ee12 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/heapsize-0.4.1.crate diff --git a/heapsize-0.4.1-fix-metadata.diff b/heapsize-0.4.1-fix-metadata.diff new file mode 100644 index 0000000..16cae28 --- /dev/null +++ b/heapsize-0.4.1-fix-metadata.diff @@ -0,0 +1,12 @@ +--- heapsize-0.4.1/Cargo.toml 2017-07-15T16:05:14+02:00 ++++ heapsize-0.4.1/Cargo.toml 2017-11-06T08:47:21.426680+01:00 +@@ -7,9 +7,6 @@ + repository = "https://github.com/servo/heapsize" + build = "build.rs" + +-[target.'cfg(windows)'.dependencies] +-kernel32-sys = "0.2.1" +- + [features] + unstable = [] + diff --git a/rust-heapsize.spec b/rust-heapsize.spec new file mode 100644 index 0000000..f623635 --- /dev/null +++ b/rust-heapsize.spec @@ -0,0 +1,68 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate heapsize + +Name: rust-%{crate} +Version: 0.4.1 +Release: 1%{?dist} +Summary: Infrastructure for measuring the total runtime size of an object on the heap + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/heapsize +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * No Windows +Patch0: heapsize-0.4.1-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Infrastructure for measuring the total runtime size of an object on the heap. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test --features flexible-tests +%endif + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml + +%changelog +* Mon Nov 06 2017 Igor Gnatenko - 0.4.1-1 +- Update to 0.4.1 + +* Thu Jun 15 2017 Igor Gnatenko - 0.4.0-1 +- Update to 0.4.0 + +* Wed Jun 14 2017 Igor Gnatenko - 0.3.9-2 +- Port to use rust-packaging + +* Thu Mar 30 2017 Igor Gnatenko - 0.3.9-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..965233b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (heapsize-0.4.1.crate) = 6afcc268cf1e1ad7a326e95ff50e0f94d65266f7047304bc181329d9f057956e729926966dd87e520d571705106d8cbb57767cbc4348753a6a198b1bda8e05e4