From f3bea8b5dd9f8f2c875493f5a008c077190e7ad2 Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Fri, 27 Oct 2017 16:22:30 +0000 Subject: [PATCH 1/8] Added the README --- README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..288d540 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# rust-rand + +The rust-rand package \ No newline at end of file From fcec6631231358cc658e5bce16e7d71273e14524 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 27 Oct 2017 18:42:34 +0200 Subject: [PATCH 2/8] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rand-0.3.17-fix-metadata.diff | 8 ++++ rust-rand.spec | 74 +++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 84 insertions(+) create mode 100644 .gitignore create mode 100644 rand-0.3.17-fix-metadata.diff create mode 100644 rust-rand.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c5e78e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rand-0.3.17.crate diff --git a/rand-0.3.17-fix-metadata.diff b/rand-0.3.17-fix-metadata.diff new file mode 100644 index 0000000..b14f334 --- /dev/null +++ b/rand-0.3.17-fix-metadata.diff @@ -0,0 +1,8 @@ +--- rand-0.3.17/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ rand-0.3.17/Cargo.toml 2017-10-27T17:54:42.049784+02:00 +@@ -30,5 +30,3 @@ + [features] + nightly = ["i128_support"] + i128_support = [] +-[target."cfg(target_os = \"fuchsia\")".dependencies.fuchsia-zircon] +-version = "^0.2.1" diff --git a/rust-rand.spec b/rust-rand.spec new file mode 100644 index 0000000..3fc599f --- /dev/null +++ b/rust-rand.spec @@ -0,0 +1,74 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate rand + +Name: rust-%{crate} +Version: 0.3.17 +Release: 1%{?dist} +Summary: Random number generators and other randomness functionality + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/rand +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * This OS doesn't sound related to Fedora +Patch0: rand-0.3.17-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(log) >= 0.3.0 with crate(log) < 0.4.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Random number generators and other randomness functionality. + +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 +%endif + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml + +%changelog +* Fri Oct 27 2017 Igor Gnatenko - 0.3.17-1 +- Update to 0.3.17 + +* Wed Jun 14 2017 Igor Gnatenko - 0.3.15-3 +- Port to use rust-packaging + +* Fri Feb 24 2017 Igor Gnatenko - 0.3.15-2 +- Use rich dependencies + +* Sun Feb 12 2017 Igor Gnatenko - 0.3.15-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..b8f2f68 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rand-0.3.17.crate) = 0676001c491167785c7c158bea5e786fecfbb19ee11f6101094001e4702ef60f99832ad6d8d35c39ffd8bd6d799a8eae86486ab8fe8050ef49245e8726316937 From ec2be6a7b35feef0e678e85a0e3c7f5c33f72f44 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 7 Nov 2017 11:18:41 +0100 Subject: [PATCH 3/8] Update to 0.3.18 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + ...3.17-fix-metadata.diff => rand-0.3.18-fix-metadata.diff | 4 ++-- rust-rand.spec | 7 +++++-- sources | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) rename rand-0.3.17-fix-metadata.diff => rand-0.3.18-fix-metadata.diff (59%) diff --git a/.gitignore b/.gitignore index 4c5e78e..4ad8c1b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /rand-0.3.17.crate +/rand-0.3.18.crate diff --git a/rand-0.3.17-fix-metadata.diff b/rand-0.3.18-fix-metadata.diff similarity index 59% rename from rand-0.3.17-fix-metadata.diff rename to rand-0.3.18-fix-metadata.diff index b14f334..d55c8f0 100644 --- a/rand-0.3.17-fix-metadata.diff +++ b/rand-0.3.18-fix-metadata.diff @@ -1,5 +1,5 @@ ---- rand-0.3.17/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ rand-0.3.17/Cargo.toml 2017-10-27T17:54:42.049784+02:00 +--- rand-0.3.18/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ rand-0.3.18/Cargo.toml 2017-11-07T11:18:21.472457+01:00 @@ -30,5 +30,3 @@ [features] nightly = ["i128_support"] diff --git a/rust-rand.spec b/rust-rand.spec index 3fc599f..7b96f7f 100644 --- a/rust-rand.spec +++ b/rust-rand.spec @@ -5,7 +5,7 @@ %global crate rand Name: rust-%{crate} -Version: 0.3.17 +Version: 0.3.18 Release: 1%{?dist} Summary: Random number generators and other randomness functionality @@ -14,7 +14,7 @@ URL: https://crates.io/crates/rand Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * This OS doesn't sound related to Fedora -Patch0: rand-0.3.17-fix-metadata.diff +Patch0: rand-0.3.18-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -61,6 +61,9 @@ which use %{crate} from crates.io. %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog +* Tue Nov 07 2017 Igor Gnatenko - 0.3.18-1 +- Update to 0.3.18 + * Fri Oct 27 2017 Igor Gnatenko - 0.3.17-1 - Update to 0.3.17 diff --git a/sources b/sources index b8f2f68..0429a16 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rand-0.3.17.crate) = 0676001c491167785c7c158bea5e786fecfbb19ee11f6101094001e4702ef60f99832ad6d8d35c39ffd8bd6d799a8eae86486ab8fe8050ef49245e8726316937 +SHA512 (rand-0.3.18.crate) = d9f69713af3af01b8bf1b54c97f8032c0eb2fd2ee0149542ba300949f54b13eeef403b26360c9fda266f6304e6455c79aa66d96a0599994c1e047206080ab182 From a29422e13b2ee7d7db27dfb12837cd9d4cbd9a53 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 31 Dec 2017 14:31:32 +0100 Subject: [PATCH 4/8] Update to 0.4.1 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rand-0.3.18-fix-metadata.diff | 8 -------- rand-0.4.1-fix-metadata.diff | 8 ++++++++ rust-rand.spec | 9 ++++++--- sources | 2 +- 5 files changed, 16 insertions(+), 12 deletions(-) delete mode 100644 rand-0.3.18-fix-metadata.diff create mode 100644 rand-0.4.1-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 4ad8c1b..2639215 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /rand-0.3.17.crate /rand-0.3.18.crate +/rand-0.4.1.crate diff --git a/rand-0.3.18-fix-metadata.diff b/rand-0.3.18-fix-metadata.diff deleted file mode 100644 index d55c8f0..0000000 --- a/rand-0.3.18-fix-metadata.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- rand-0.3.18/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ rand-0.3.18/Cargo.toml 2017-11-07T11:18:21.472457+01:00 -@@ -30,5 +30,3 @@ - [features] - nightly = ["i128_support"] - i128_support = [] --[target."cfg(target_os = \"fuchsia\")".dependencies.fuchsia-zircon] --version = "^0.2.1" diff --git a/rand-0.4.1-fix-metadata.diff b/rand-0.4.1-fix-metadata.diff new file mode 100644 index 0000000..8b24d7f --- /dev/null +++ b/rand-0.4.1-fix-metadata.diff @@ -0,0 +1,8 @@ +--- rand-0.4.1/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ rand-0.4.1/Cargo.toml 2017-12-31T14:31:47.415154+01:00 +@@ -34,5 +34,3 @@ + i128_support = [] + nightly = ["i128_support"] + std = ["libc"] +-[target."cfg(target_os = \"fuchsia\")".dependencies.fuchsia-zircon] +-version = "0.3" diff --git a/rust-rand.spec b/rust-rand.spec index 7b96f7f..ca3e8c1 100644 --- a/rust-rand.spec +++ b/rust-rand.spec @@ -5,7 +5,7 @@ %global crate rand Name: rust-%{crate} -Version: 0.3.18 +Version: 0.4.1 Release: 1%{?dist} Summary: Random number generators and other randomness functionality @@ -14,7 +14,7 @@ URL: https://crates.io/crates/rand Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * This OS doesn't sound related to Fedora -Patch0: rand-0.3.18-fix-metadata.diff +Patch0: rand-0.4.1-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -56,11 +56,14 @@ which use %{crate} from crates.io. %files devel %license LICENSE-MIT LICENSE-APACHE -%doc README.md +%doc README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version}/ %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog +* Sun Dec 31 2017 Igor Gnatenko - 0.4.1-1 +- Update to 0.4.1 + * Tue Nov 07 2017 Igor Gnatenko - 0.3.18-1 - Update to 0.3.18 diff --git a/sources b/sources index 0429a16..f9e781c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rand-0.3.18.crate) = d9f69713af3af01b8bf1b54c97f8032c0eb2fd2ee0149542ba300949f54b13eeef403b26360c9fda266f6304e6455c79aa66d96a0599994c1e047206080ab182 +SHA512 (rand-0.4.1.crate) = 806d728d7b2de48d7cb9d3083861c23c37ab05967579d3853ed8f8ea27aa02167923c5e8c315680f0451dd7e228d75d96f3f4472ead9da6ccc3f8407843577f5 From 1665aa59013caedbb35e0566e179afafd3e11f73 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 6 Jan 2018 13:43:33 +0100 Subject: [PATCH 5/8] Update to 0.4.2 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rand-0.4.1-fix-metadata.diff | 8 -------- rand-0.4.2-fix-metadata.diff | 14 ++++++++++++++ rust-rand.spec | 16 +++++++--------- sources | 2 +- 5 files changed, 23 insertions(+), 18 deletions(-) delete mode 100644 rand-0.4.1-fix-metadata.diff create mode 100644 rand-0.4.2-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 2639215..e917cb3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /rand-0.3.17.crate /rand-0.3.18.crate /rand-0.4.1.crate +/rand-0.4.2.crate diff --git a/rand-0.4.1-fix-metadata.diff b/rand-0.4.1-fix-metadata.diff deleted file mode 100644 index 8b24d7f..0000000 --- a/rand-0.4.1-fix-metadata.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- rand-0.4.1/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ rand-0.4.1/Cargo.toml 2017-12-31T14:31:47.415154+01:00 -@@ -34,5 +34,3 @@ - i128_support = [] - nightly = ["i128_support"] - std = ["libc"] --[target."cfg(target_os = \"fuchsia\")".dependencies.fuchsia-zircon] --version = "0.3" diff --git a/rand-0.4.2-fix-metadata.diff b/rand-0.4.2-fix-metadata.diff new file mode 100644 index 0000000..1c2d138 --- /dev/null +++ b/rand-0.4.2-fix-metadata.diff @@ -0,0 +1,14 @@ +--- rand-0.4.2/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ rand-0.4.2/Cargo.toml 2018-01-06T13:44:52.496038+01:00 +@@ -29,11 +29,6 @@ + i128_support = [] + nightly = ["i128_support"] + std = ["libc"] +-[target."cfg(target_os = \"fuchsia\")".dependencies.fuchsia-zircon] +-version = "0.3.2" + [target."cfg(unix)".dependencies.libc] + version = "0.2" + optional = true +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3" +-features = ["minwindef", "ntsecapi", "profileapi", "winnt"] diff --git a/rust-rand.spec b/rust-rand.spec index ca3e8c1..b4b4d38 100644 --- a/rust-rand.spec +++ b/rust-rand.spec @@ -5,26 +5,21 @@ %global crate rand Name: rust-%{crate} -Version: 0.4.1 +Version: 0.4.2 Release: 1%{?dist} -Summary: Random number generators and other randomness functionality +Summary: Random number generators and other randomness functionality. -License: MIT or ASL 2.0 +License: MIT/Apache-2.0 URL: https://crates.io/crates/rand Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata -# * This OS doesn't sound related to Fedora -Patch0: rand-0.4.1-fix-metadata.diff +Patch0: rand-0.4.2-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) -%if %{with check} -# [dev-dependencies] -BuildRequires: (crate(log) >= 0.3.0 with crate(log) < 0.4.0) -%endif %description %{summary}. @@ -61,6 +56,9 @@ which use %{crate} from crates.io. %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog +* Sat Jan 06 2018 Igor Gnatenko - 0.4.2-1 +- Update to 0.4.2 + * Sun Dec 31 2017 Igor Gnatenko - 0.4.1-1 - Update to 0.4.1 diff --git a/sources b/sources index f9e781c..7e491ca 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rand-0.4.1.crate) = 806d728d7b2de48d7cb9d3083861c23c37ab05967579d3853ed8f8ea27aa02167923c5e8c315680f0451dd7e228d75d96f3f4472ead9da6ccc3f8407843577f5 +SHA512 (rand-0.4.2.crate) = ac6eaf9f0914fd966c835a04ec644c5a8d62a4a634187d538cecfb711955a977234dc5fe487cd4d351514bc0de4f51cbd0f09a8f6aac56aa0467ae5eb17a4fad From 8683d0ad7f06f4e54d1ebba3ad2eac2a059f606a Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 8 Jan 2018 21:18:13 +0100 Subject: [PATCH 6/8] Rebuild for rust-packaging v5 Signed-off-by: Igor Gnatenko --- rust-rand.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rust-rand.spec b/rust-rand.spec index b4b4d38..bbfcae3 100644 --- a/rust-rand.spec +++ b/rust-rand.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.4.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Random number generators and other randomness functionality. License: MIT/Apache-2.0 @@ -56,6 +56,9 @@ which use %{crate} from crates.io. %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog +* Mon Jan 08 2018 Igor Gnatenko - 0.4.2-2 +- Rebuild for rust-packaging v5 + * Sat Jan 06 2018 Igor Gnatenko - 0.4.2-1 - Update to 0.4.2 From 2591ec1495add47a1567ed93a3983e1a186c300d Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 15:41:40 +0000 Subject: [PATCH 7/8] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- rust-rand.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rust-rand.spec b/rust-rand.spec index bbfcae3..0c5f496 100644 --- a/rust-rand.spec +++ b/rust-rand.spec @@ -6,7 +6,7 @@ Name: rust-%{crate} Version: 0.4.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Random number generators and other randomness functionality. License: MIT/Apache-2.0 @@ -56,6 +56,9 @@ which use %{crate} from crates.io. %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 0.4.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Mon Jan 08 2018 Igor Gnatenko - 0.4.2-2 - Rebuild for rust-packaging v5 From 56f495f305a9602b3889d4f890a7dc3673b55c32 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 20 Feb 2018 00:39:40 -0800 Subject: [PATCH 8/8] Exclude python2 utilities --- rand-0.4.2-fix-metadata.diff | 10 +++++++++- rust-rand.spec | 6 +++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/rand-0.4.2-fix-metadata.diff b/rand-0.4.2-fix-metadata.diff index 1c2d138..81c6ea2 100644 --- a/rand-0.4.2-fix-metadata.diff +++ b/rand-0.4.2-fix-metadata.diff @@ -1,6 +1,14 @@ --- rand-0.4.2/Cargo.toml 1970-01-01T01:00:00+01:00 +++ rand-0.4.2/Cargo.toml 2018-01-06T13:44:52.496038+01:00 -@@ -29,11 +29,6 @@ +@@ -22,6 +22,7 @@ + categories = ["algorithms"] + license = "MIT/Apache-2.0" + repository = "https://github.com/rust-lang-nursery/rand" ++exclude = ["utils/*.py"] + + [features] + alloc = [] +@@ -29,11 +30,6 @@ i128_support = [] nightly = ["i128_support"] std = ["libc"] diff --git a/rust-rand.spec b/rust-rand.spec index 0c5f496..f299368 100644 --- a/rust-rand.spec +++ b/rust-rand.spec @@ -6,13 +6,14 @@ Name: rust-%{crate} Version: 0.4.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Random number generators and other randomness functionality. License: MIT/Apache-2.0 URL: https://crates.io/crates/rand Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata +# * Exclude python utilities Patch0: rand-0.4.2-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -56,6 +57,9 @@ which use %{crate} from crates.io. %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog +* Tue Feb 20 2018 Josh Stone - 0.4.2-4 +- Exclude python2 utilities + * Fri Feb 09 2018 Fedora Release Engineering - 0.4.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild