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-gobject-sys] epel10: Adapt to new packaging
Date: Fri, 25 Sep 2026 10:35:01 GMT [thread overview]
Message-ID: <179033250195.1.17673608707365279250.rpms-rust-gobject-sys-85d553468343@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-gobject-sys
Branch : epel10
Commit : 85d55346834321fce4bb8c6c5fe4356b82bb63f1
Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date : 2019-02-05T09:51:11+01:00
Stats : +157/-25 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rust-gobject-sys/c/85d55346834321fce4bb8c6c5fe4356b82bb63f1?branch=epel10
Log:
Adapt to new packaging
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
diff --git a/.rust2rpm.conf b/.rust2rpm.conf
new file mode 100644
index 0000000..3ea8be7
--- /dev/null
+++ b/.rust2rpm.conf
@@ -0,0 +1,5 @@
+[DEFAULT]
+buildrequires =
+ pkgconfig(gobject-2.0) >= 2.32
+lib.requires =
+ pkgconfig(gobject-2.0) >= 2.32
diff --git a/rust-gobject-sys.spec b/rust-gobject-sys.spec
index cec644d..2526bc1 100644
--- a/rust-gobject-sys.spec
+++ b/rust-gobject-sys.spec
@@ -1,51 +1,160 @@
# Generated by rust2rpm
-%bcond_without check
+# * Tests are run in infrastructure
+%bcond_with check
%global debug_package %{nil}
-%global gobject_min 2.32
-
%global crate gobject-sys
Name: rust-%{crate}
Version: 0.7.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: FFI bindings to libgobject-2.0
License: MIT
URL: https://crates.io/crates/gobject-sys
-Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
+Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
-# [dependencies]
-BuildRequires: (crate(glib-sys) >= 0.7.0 with crate(glib-sys) < 0.8.0)
-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: (crate(glib-sys/default) >= 0.7.0 with crate(glib-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)
%if %{with check}
-# [dev-dependencies]
-BuildRequires: (crate(shell-words) >= 0.1.0 with crate(shell-words) < 0.2.0)
-BuildRequires: (crate(tempdir) >= 0.3.0 with crate(tempdir) < 0.4.0)
+BuildRequires: (crate(shell-words/default) >= 0.1.0 with crate(shell-words/default) < 0.2.0)
+BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) < 0.4.0)
%endif
-BuildRequires: pkgconfig(gobject-2.0) >= %{gobject_min}
+BuildRequires: pkgconfig(gobject-2.0) >= 2.32
+
+%global _description \
+FFI bindings to libgobject-2.0.
-%description
-%{summary}.
+%description %{_description}
%package devel
Summary: %{summary}
-Requires: pkgconfig(gobject-2.0) >= %{gobject_min}
BuildArch: noarch
+Requires: pkgconfig(gobject-2.0) >= 2.32
-%description devel
-FFI bindings to libgobject-2.0.
+%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}+v2_34-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_34-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v2_34" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_34-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v2_36-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_36-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v2_36" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_36-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v2_38-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_38-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v2_38" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_38-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v2_42-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_42-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v2_42" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_42-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v2_44-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_44-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v2_44" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_44-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v2_46-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_46-devel %{_description}
This package contains library source intended for building other packages
-which use %{crate} from crates.io.
+which use "v2_46" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_46-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v2_54-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_54-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v2_54" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_54-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
-%autosetup -n %{crate}-%{version} -p1
+%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%build
@@ -59,11 +168,10 @@ which use %{crate} from crates.io.
%cargo_test
%endif
-%files devel
-%license LICENSE
-%{cargo_registry}/%{crate}-%{version}/
-
%changelog
+* Tue Feb 05 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.0-3
+- Adapt to new packaging
+
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
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..b27497c
--- /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-gobject-sys
reply other threads:[~2026-09-25 10:35 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=179033250195.1.17673608707365279250.rpms-rust-gobject-sys-85d553468343@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