diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..420c1a3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/iovec-0.1.1.crate diff --git a/iovec-0.1.1-fix-metadata.diff b/iovec-0.1.1-fix-metadata.diff new file mode 100644 index 0000000..f0ff7fb --- /dev/null +++ b/iovec-0.1.1-fix-metadata.diff @@ -0,0 +1,10 @@ +--- iovec-0.1.1/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ iovec-0.1.1/Cargo.toml 2017-11-06T08:43:34.473955+01:00 +@@ -22,7 +22,5 @@ + categories = ["network-programming", "api-bindings"] + license = "MIT/Apache-2.0" + repository = "https://github.com/carllerche/iovec" +-[target."cfg(windows)".dependencies.winapi] +-version = "0.2" + [target."cfg(unix)".dependencies.libc] + version = "0.2" diff --git a/rust-iovec.spec b/rust-iovec.spec new file mode 100644 index 0000000..ddf8578 --- /dev/null +++ b/rust-iovec.spec @@ -0,0 +1,64 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate iovec + +Name: rust-%{crate} +Version: 0.1.1 +Release: 1%{?dist} +Summary: Portable buffer type for scatter/gather I/O operations + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/iovec +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * No windows +Patch0: iovec-0.1.1-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Portable buffer type for scatter/gather I/O operations. + +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 CHANGELOG.md +%{cargo_registry}/%{crate}-%{version}/ +%exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml + +%changelog +* Mon Nov 06 2017 Igor Gnatenko - 0.1.1-1 +- Update to 0.1.1 + +* Fri Jun 16 2017 Igor Gnatenko - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..4fba811 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (iovec-0.1.1.crate) = fd97b6d50abc847804ab2a6a0353258c9cea5bd725944a403d5e7fe3e6cc9a6ec86ec8f9d304820ab468e3ee354cbc201ea372dedf3ef13487c7ec65c6d9709f