diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..19eb526 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/iso8601-0.2.0.crate diff --git a/iso8601-0.2.0-fix-metadata.diff b/iso8601-0.2.0-fix-metadata.diff new file mode 100644 index 0000000..50b240a --- /dev/null +++ b/iso8601-0.2.0-fix-metadata.diff @@ -0,0 +1,12 @@ +--- iso8601-0.2.0/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ iso8601-0.2.0/Cargo.toml 2017-11-20T16:18:15.776636+01:00 +@@ -20,9 +20,6 @@ + readme = "README.md" + license = "MIT" + repository = "https://github.com/badboy/iso8601" +-[dependencies.clippy] +-version = ">0.0.0" +-optional = true + + [dependencies.nom] + version = "3.2" diff --git a/rust-iso8601.spec b/rust-iso8601.spec new file mode 100644 index 0000000..26d1202 --- /dev/null +++ b/rust-iso8601.spec @@ -0,0 +1,61 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate iso8601 + +Name: rust-%{crate} +Version: 0.2.0 +Release: 1%{?dist} +Summary: Parsing ISO8601 dates using nom + +License: MIT +URL: https://crates.io/crates/iso8601 +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * No clippy +Patch0: iso8601-0.2.0-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(nom) >= 3.2.0 with crate(nom) < 4.0.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Parsing ISO8601 dates using nom. + +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}/ +%exclude %{cargo_registry}/%{crate}-%{version}/Makefile + +%changelog +* Mon Nov 20 2017 Igor Gnatenko - 0.2.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..4206431 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (iso8601-0.2.0.crate) = d7968d24a365cbf353d46454b64b15bb834b5afd06c027a0630e409c9224988fcef7fd4727351b0b0336d131e65928466751f006e4550c80945118d550618805