diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fcb8af5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libz-sys-1.0.18.crate diff --git a/libz-sys-1.0.18-fix-metadata.diff b/libz-sys-1.0.18-fix-metadata.diff new file mode 100644 index 0000000..5fb7909 --- /dev/null +++ b/libz-sys-1.0.18-fix-metadata.diff @@ -0,0 +1,8 @@ +--- libz-sys-1.0.18/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ libz-sys-1.0.18/Cargo.toml 2017-11-16T11:01:02.202422+01:00 +@@ -28,5 +28,3 @@ + + [build-dependencies.cc] + version = "1.0" +-[target."cfg(target_env = \"msvc\")".build-dependencies.vcpkg] +-version = "0.2" diff --git a/rust-libz-sys.spec b/rust-libz-sys.spec new file mode 100644 index 0000000..6da262e --- /dev/null +++ b/rust-libz-sys.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate libz-sys + +Name: rust-%{crate} +Version: 1.0.18 +Release: 1%{?dist} +Summary: Bindings to the system libz library (also known as zlib) + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/libz-sys +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * No MSVC +Patch0: libz-sys-1.0.18-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) +# [build-dependencies] +BuildRequires: (crate(cc) >= 1.0.0 with crate(cc) < 2.0.0) +BuildRequires: (crate(pkg-config) >= 0.3.0 with crate(pkg-config) < 0.4.0) +BuildRequires: pkgconfig(zlib) + +%description +%{summary}. + +%package devel +Summary: %{summary} +Requires: pkgconfig(zlib) +BuildArch: noarch + +%description devel +Bindings to the system libz library (also known as zlib). + +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 +* Thu Nov 16 2017 Igor Gnatenko - 1.0.18-1 +- Update to 1.0.18 + +* Mon Jun 26 2017 Igor Gnatenko - 1.0.16-1 +- Update to 1.0.16 + +* Thu Jun 15 2017 Igor Gnatenko - 1.0.14-1 +- Update to 1.0.14 + +* Wed Jun 14 2017 Igor Gnatenko - 1.0.13-3 +- Port to use rust-packaging + +* Sun Feb 26 2017 Igor Gnatenko - 1.0.13-2 +- Rebuild + +* Sun Feb 26 2017 Igor Gnatenko - 1.0.13-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..12f7e30 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libz-sys-1.0.18.crate) = fcc9e5bd9ffd5eb4f302d3c271f86370f04fe9fcb3b818ac8d605241a701e9d0c40cfe729ad8fcbe7bbb07df66539503415a00360c56831a511142ff225d0d8c