diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a81073 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pangocairo-0.5.0.crate diff --git a/pangocairo-0.5.0-fix-metadata.diff b/pangocairo-0.5.0-fix-metadata.diff new file mode 100644 index 0000000..3f09eec --- /dev/null +++ b/pangocairo-0.5.0-fix-metadata.diff @@ -0,0 +1,9 @@ +--- pangocairo-0.5.0/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ pangocairo-0.5.0/Cargo.toml 2018-05-08T16:54:10.973978+02:00 +@@ -57,6 +57,5 @@ + optional = true + + [features] +-dox = ["glib/dox", "pango/dox", "cairo-rs/dox"] + embed-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/embed-lgpl-docs"] + purge-lgpl-docs = ["gtk-rs-lgpl-docs", "cairo-rs/purge-lgpl-docs"] diff --git a/rust-pangocairo.spec b/rust-pangocairo.spec new file mode 100644 index 0000000..e90b45b --- /dev/null +++ b/rust-pangocairo.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate pangocairo + +Name: rust-%{crate} +Version: 0.5.0 +Release: 1%{?dist} +Summary: Rust bindings for the PangoCairo library + +License: MIT +URL: https://crates.io/crates/pangocairo +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * No X +Patch0: pangocairo-0.5.0-fix-metadata.diff + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +# [dependencies] +BuildRequires: (crate(bitflags) >= 0.9.0 with crate(bitflags) < 0.10.0) +BuildRequires: (crate(cairo-rs) >= 0.4.0 with crate(cairo-rs) < 0.5.0) +BuildRequires: (crate(cairo-sys-rs) >= 0.6.0 with crate(cairo-sys-rs) < 0.7.0) +BuildRequires: (crate(glib) >= 0.5.0 with crate(glib) < 0.6.0) +BuildRequires: (crate(glib-sys) >= 0.6.0 with crate(glib-sys) < 0.7.0) +BuildRequires: (crate(gobject-sys) >= 0.6.0 with crate(gobject-sys) < 0.7.0) +BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) +BuildRequires: (crate(pango) >= 0.4.0 with crate(pango) < 0.5.0) +BuildRequires: (crate(pango-sys) >= 0.6.0 with crate(pango-sys) < 0.7.0) +BuildRequires: (crate(pangocairo-sys) >= 0.7.0 with crate(pangocairo-sys) < 0.8.0) +# [build-dependencies] +BuildRequires: (crate(gtk-rs-lgpl-docs) >= 0.1.3 with crate(gtk-rs-lgpl-docs) < 0.2.0) + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Rust bindings for the PangoCairo library. + +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}/{appveyor.yml,Gir.toml,Makefile} + +%changelog +* Tue May 08 2018 Igor Gnatenko - 0.5.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..46d694b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pangocairo-0.5.0.crate) = cdc1f3883993683dda15510d95a3213eec49a1aa08793e5257bb08f61e2bc29214558110d7056003fcdacb889b6bda091d5d9b7702a5ea8876ae1e976a6d223c