public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rust-cairo-sys-rs] epel10: initial import
@ 2026-09-25 10:32 Igor Gnatenko
0 siblings, 0 replies; only message in thread
From: Igor Gnatenko @ 2026-09-25 10:32 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rust-cairo-sys-rs
Branch : epel10
Commit : e56f0f40be9ab523fee9f707791823b8fd64fdf2
Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date : 2018-01-06T21:53:45+01:00
Stats : +90/-0 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/rust-cairo-sys-rs/c/e56f0f40be9ab523fee9f707791823b8fd64fdf2?branch=epel10
Log:
initial import
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c28ae46
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/cairo-sys-rs-0.5.0.crate
diff --git a/cairo-sys-rs-0.5.0-fix-metadata.diff b/cairo-sys-rs-0.5.0-fix-metadata.diff
new file mode 100644
index 0000000..a32fda1
--- /dev/null
+++ b/cairo-sys-rs-0.5.0-fix-metadata.diff
@@ -0,0 +1,22 @@
+--- cairo-sys-rs-0.5.0/Cargo.toml 1970-01-01T01:00:00+01:00
++++ cairo-sys-rs-0.5.0/Cargo.toml 2018-01-06T16:25:02.440952+01:00
+@@ -27,19 +27,10 @@
+ [dependencies.libc]
+ version = "0.2"
+
+-[dependencies.x11]
+-version = "2.16"
+-features = ["xlib"]
+-optional = true
+ [build-dependencies.pkg-config]
+ version = "0.3.7"
+
+ [features]
+-dox = ["x11/dox"]
+ png = []
+ v1_12 = []
+ v1_14 = ["v1_12"]
+-xcb = []
+-xlib = ["x11"]
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.2.7"
diff --git a/rust-cairo-sys-rs.spec b/rust-cairo-sys-rs.spec
new file mode 100644
index 0000000..f805b0d
--- /dev/null
+++ b/rust-cairo-sys-rs.spec
@@ -0,0 +1,66 @@
+# Generated by rust2rpm
+%bcond_without check
+%global debug_package %{nil}
+
+%global cairo_min 1.10
+
+%global crate cairo-sys-rs
+
+Name: rust-%{crate}
+Version: 0.5.0
+Release: 1%{?dist}
+Summary: FFI bindings to libcairo
+
+# https://github.com/gtk-rs/cairo/issues/172
+License: MIT
+URL: https://crates.io/crates/cairo-sys-rs
+Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
+# Initial patched metadata
+# * No windows
+# * No X11
+Patch0: cairo-sys-rs-0.5.0-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(pkg-config) >= 0.3.7 with crate(pkg-config) < 0.4.0)
+BuildRequires: pkgconfig(cairo) >= %{cairo_min}
+
+%description
+%{summary}.
+
+%package devel
+Summary: %{summary}
+Requires: pkgconfig(cairo) >= %{cairo_min}
+BuildArch: noarch
+
+%description devel
+FFI bindings to libcairo.
+
+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
+%{cargo_registry}/%{crate}-%{version}/
+
+%changelog
+* Sat Jan 06 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.5.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..0a0cddd
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (cairo-sys-rs-0.5.0.crate) = 2ed774ae6a84e4cfbfd8ec256e08526a57204258548c4aadf092444a4dfc8509412f2dc7fdade06081b47945ea15e01a5254768bbbef4eb62fa8437fdfd7a78a
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-25 10:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-25 10:32 [rpms/rust-cairo-sys-rs] epel10: initial import Igor Gnatenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox