public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-cairo-sys-rs] epel10: Update to 0.7.0
Date: Fri, 25 Sep 2026 10:32:23 GMT [thread overview]
Message-ID: <179033234318.1.828477758881584423.rpms-rust-cairo-sys-rs-7e97cc59839a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-cairo-sys-rs
Branch : epel10
Commit : 7e97cc59839af7b6b78c86d5f3f9c3564cbbacd4
Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date : 2019-02-18T11:16:02+01:00
Stats : +217/-46 in 9 file(s)
URL : https://src.fedoraproject.org/rpms/rust-cairo-sys-rs/c/7e97cc59839af7b6b78c86d5f3f9c3564cbbacd4?branch=epel10
Log:
Update to 0.7.0
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
diff --git a/.gitignore b/.gitignore
index 34f6f03..ec6f8e1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/cairo-sys-rs-0.5.0.crate
/cairo-sys-rs-0.6.0.crate
+/cairo-sys-rs-0.7.0.crate
diff --git a/.rust2rpm.conf b/.rust2rpm.conf
new file mode 100644
index 0000000..41b4b49
--- /dev/null
+++ b/.rust2rpm.conf
@@ -0,0 +1,11 @@
+[DEFAULT]
+buildrequires =
+ pkgconfig(cairo) >= 1.10
+lib.requires =
+ pkgconfig(cairo) >= 1.10
+lib+v1_12.requires =
+ pkgconfig(cairo) >= 1.12
+lib+v1_14.requires =
+ pkgconfig(cairo) >= 1.14
+lib+use_glib.requires =
+ (((pkgconfig(cairo-gobject) >= 1.14 if crate(cairo-sys-rs/v1_14)) and (pkgconfig(cairo-gobject) >= 1.12 if crate(cairo-sys-rs/v1_12))) if (crate(cairo-sys-rs/v1_14) or crate(cairo-sys-rs/v1_12)) else pkgconfig(cairo-gobject) >= 1.10)
diff --git a/cairo-sys-rs-0.6.0-fix-metadata.diff b/cairo-sys-rs-0.6.0-fix-metadata.diff
deleted file mode 100644
index 598d0b0..0000000
--- a/cairo-sys-rs-0.6.0-fix-metadata.diff
+++ /dev/null
@@ -1,23 +0,0 @@
---- cairo-sys-rs-0.6.0/Cargo.toml 1970-01-01T01:00:00+01:00
-+++ cairo-sys-rs-0.6.0/Cargo.toml 2018-03-19T14:41:20.401236+01:00
-@@ -27,20 +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.3.2"
--features = ["windef"]
diff --git a/cairo-sys-rs-fix-metadata.diff b/cairo-sys-rs-fix-metadata.diff
new file mode 100644
index 0000000..ddc2ca0
--- /dev/null
+++ b/cairo-sys-rs-fix-metadata.diff
@@ -0,0 +1,9 @@
+--- cairo-sys-rs-0.7.0/Cargo.toml 1970-01-01T01:00:00+01:00
++++ cairo-sys-rs-0.7.0/Cargo.toml 2019-02-18T11:14:04.114174+01:00
+@@ -54,6 +54,3 @@
+ v1_14 = ["v1_12"]
+ xcb = []
+ xlib = ["x11"]
+-[target."cfg(windows)".dependencies.winapi]
+-version = "0.3.2"
+-features = ["windef"]
diff --git a/rust-cairo-sys-rs.spec b/rust-cairo-sys-rs.spec
index b300409..b6358f9 100644
--- a/rust-cairo-sys-rs.spec
+++ b/rust-cairo-sys-rs.spec
@@ -1,49 +1,203 @@
# Generated by rust2rpm
-%bcond_without check
+%bcond_with check
%global debug_package %{nil}
-%global cairo_min 1.10
-
%global crate cairo-sys-rs
Name: rust-%{crate}
-Version: 0.6.0
-Release: 3%{?dist}
+Version: 0.7.0
+Release: 1%{?dist}
Summary: FFI bindings to libcairo
License: MIT
URL: https://crates.io/crates/cairo-sys-rs
-Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
+Source: %{crates_source}
# Initial patched metadata
# * No windows
# * No X11
-Patch0: cairo-sys-rs-0.6.0-fix-metadata.diff
+Patch0: cairo-sys-rs-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}
+BuildRequires: (crate(glib-sys/default) >= 0.7.0 with crate(glib-sys/default) < 0.8.0)
+BuildRequires: (crate(glib/default) >= 0.6.0 with crate(glib/default) < 0.7.0)
+BuildRequires: (crate(gobject-sys/default) >= 0.7.0 with crate(gobject-sys/default) < 0.8.0)
+BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
+BuildRequires: (crate(pkg-config/default) >= 0.3.7 with crate(pkg-config/default) < 0.4.0)
+BuildRequires: (crate(x11/default) >= 2.16.0 with crate(x11/default) < 3.0.0)
+BuildRequires: (crate(x11/dox) >= 2.16.0 with crate(x11/dox) < 3.0.0)
+BuildRequires: (crate(x11/xlib) >= 2.16.0 with crate(x11/xlib) < 3.0.0)
+BuildRequires: pkgconfig(cairo) >= 1.10
+
+%global _description \
+FFI bindings to libcairo.
-%description
-%{summary}.
+%description %{_description}
%package devel
Summary: %{summary}
-Requires: pkgconfig(cairo) >= %{cairo_min}
BuildArch: noarch
+Requires: pkgconfig(cairo) >= 1.10
-%description devel
-FFI bindings to libcairo.
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%license LICENSE
+%{cargo_registry}/%{crate}-%{version}/
+
+%package -n %{name}+default-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+default-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "default" feature of "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+dox-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+dox-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "dox" feature of "%{crate}" crate.
+
+%files -n %{name}+dox-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+glib-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+glib-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "glib" feature of "%{crate}" crate.
+
+%files -n %{name}+glib-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+glib-sys-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+glib-sys-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "glib-sys" feature of "%{crate}" crate.
+
+%files -n %{name}+glib-sys-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+gobject-sys-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+gobject-sys-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "gobject-sys" feature of "%{crate}" crate.
+
+%files -n %{name}+gobject-sys-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+png-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+png-devel %{_description}
This package contains library source intended for building other packages
-which use %{crate} from crates.io.
+which use "png" feature of "%{crate}" crate.
+
+%files -n %{name}+png-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+use_glib-devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: (((pkgconfig(cairo-gobject) >= 1.14 if crate(cairo-sys-rs/v1_14)) and (pkgconfig(cairo-gobject) >= 1.12 if crate(cairo-sys-rs/v1_12))) if (crate(cairo-sys-rs/v1_14) or crate(cairo-sys-rs/v1_12)) else pkgconfig(cairo-gobject) >= 1.10)
+
+%description -n %{name}+use_glib-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "use_glib" feature of "%{crate}" crate.
+
+%files -n %{name}+use_glib-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v1_12-devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: pkgconfig(cairo) >= 1.12
+
+%description -n %{name}+v1_12-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v1_12" feature of "%{crate}" crate.
+
+%files -n %{name}+v1_12-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v1_14-devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: pkgconfig(cairo) >= 1.14
+
+%description -n %{name}+v1_14-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v1_14" feature of "%{crate}" crate.
+
+%files -n %{name}+v1_14-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+x11-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+x11-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "x11" feature of "%{crate}" crate.
+
+%files -n %{name}+x11-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+xcb-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+xcb-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "xcb" feature of "%{crate}" crate.
+
+%files -n %{name}+xcb-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+xlib-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+xlib-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "xlib" feature of "%{crate}" crate.
+
+%files -n %{name}+xlib-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
-%autosetup -n %{crate}-%{version} -p1
+%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%build
@@ -57,10 +211,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
-%files devel
-%{cargo_registry}/%{crate}-%{version}/
-
%changelog
+* Mon Feb 18 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.0-1
+- Update to 0.7.0
+
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
diff --git a/sources b/sources
index 49aab16..70128c1 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (cairo-sys-rs-0.6.0.crate) = 1d7fb9a62eaede967bbb829a3cbe73a3a440034d0515cd5dd96f2f0f865d91ed180c254970d12b74b099640fae5f91cf5a88ba2d16dd143a02cb6e8f503be9be
+SHA512 (cairo-sys-rs-0.7.0.crate) = 952a95d2bc8ebd11be784d9be204242109a149717f1cc6b53e28e42d52b1e809c972b2cb35f2d3ac215980b64095ada0e084a64724094f7598be38c2f21191c3
diff --git a/tests/.fmf/version b/tests/.fmf/version
new file mode 100644
index 0000000..d00491f
--- /dev/null
+++ b/tests/.fmf/version
@@ -0,0 +1 @@
+1
diff --git a/tests/provision.fmf b/tests/provision.fmf
new file mode 100644
index 0000000..503a97c
--- /dev/null
+++ b/tests/provision.fmf
@@ -0,0 +1,5 @@
+---
+standard-inventory-qcow2:
+ qemu:
+ # `cargo test` usually eats more than 1G.
+ m: 4G
diff --git a/tests/tests.yml b/tests/tests.yml
new file mode 100644
index 0000000..c242229
--- /dev/null
+++ b/tests/tests.yml
@@ -0,0 +1,13 @@
+---
+- hosts: localhost
+ roles:
+ - role: standard-test-basic
+ tags:
+ - classic
+ repositories:
+ - repo: "https://src.fedoraproject.org/tests/rust.git"
+ dest: rust
+ tests:
+ - rust/cargo-test
+ environment:
+ pkg: rust-cairo-sys-rs
reply other threads:[~2026-09-25 10:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179033234318.1.828477758881584423.rpms-rust-cairo-sys-rs-7e97cc59839a@fedoraproject.org \
--to=ignatenkobrain@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox