From 6ef0f8d684dcd20e4a4fb83e9c0b465d9ee80bc7 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 13 Nov 2017 19:51:35 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-version-sync.spec | 69 ++++++++++++++++++++++++++++ sources | 1 + version-sync-0.4.0-fix-metadata.diff | 25 ++++++++++ 4 files changed, 96 insertions(+) create mode 100644 .gitignore create mode 100644 rust-version-sync.spec create mode 100644 sources create mode 100644 version-sync-0.4.0-fix-metadata.diff diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c42d989 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/version-sync-0.4.0.crate diff --git a/rust-version-sync.spec b/rust-version-sync.spec new file mode 100644 index 0000000..25a05b6 --- /dev/null +++ b/rust-version-sync.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate version-sync + +Name: rust-%{crate} +Version: 0.4.0 +Release: 1%{?dist} +Summary: Simple crate for ensuring that version numbers in README files are updated + +License: MIT +URL: https://crates.io/crates/version-sync +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Bump itertools to 0.7 +# * Bump pulldown-cmark to 0.1 +# * Remove unicode-bidi requirement +# https://github.com/mgeisler/version-sync/pull/30 +Patch0: version-sync-0.4.0-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(itertools) >= 0.7.0 with crate(itertools) < 0.8.0) +BuildRequires: (crate(pulldown-cmark) >= 0.1.0 with crate(pulldown-cmark) < 0.2.0) +BuildRequires: (crate(semver-parser) >= 0.7.0 with crate(semver-parser) < 0.8.0) +BuildRequires: ((crate(syn) >= 0.11.0 with crate(syn) < 0.12.0) with crate(syn/full)) +BuildRequires: (crate(toml) >= 0.4.0 with crate(toml) < 0.5.0) +BuildRequires: (crate(url) >= 1.5.1 with crate(url) < 2.0.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Simple crate for ensuring that version numbers in README files are +updated when the crate version changes. + +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 +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Mon Nov 13 2017 Igor Gnatenko - 0.4.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..61d5313 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (version-sync-0.4.0.crate) = 508389e45b422022602d087415e6ee9321f854da3e5bdacda34294c59da6eb2c0271619a87a2bdd1094dfcb4f7822bc070855044739f34d9a4aa14e7ad30cbad diff --git a/version-sync-0.4.0-fix-metadata.diff b/version-sync-0.4.0-fix-metadata.diff new file mode 100644 index 0000000..5adcd91 --- /dev/null +++ b/version-sync-0.4.0-fix-metadata.diff @@ -0,0 +1,25 @@ +--- version-sync-0.4.0/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ version-sync-0.4.0/Cargo.toml 2017-11-13T18:27:41.999361+01:00 +@@ -23,10 +23,10 @@ + license = "MIT" + repository = "https://github.com/mgeisler/version-sync" + [dependencies.itertools] +-version = "0.6.3" ++version = "0.7" + + [dependencies.pulldown-cmark] +-version = "0.0.11" ++version = "0.1" + default-features = false + + [dependencies.semver-parser] +@@ -39,9 +39,6 @@ + [dependencies.toml] + version = "0.4" + +-[dependencies.unicode-bidi] +-version = "0.3.1, < 0.3.4" +- + [dependencies.url] + version = "1.5.1" + [badges.appveyor]