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-glib-sys] epel10: Adapt to new packaging
Date: Fri, 25 Sep 2026 10:33:58 GMT [thread overview]
Message-ID: <179033243827.1.5729380521228710273.rpms-rust-glib-sys-d7b5ba699eed@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/rust-glib-sys
Branch : epel10
Commit : d7b5ba699eed77ef518894ea0662d62c61faa124
Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date : 2019-02-05T09:47:59+01:00
Stats : +204/-24 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/rust-glib-sys/c/d7b5ba699eed77ef518894ea0662d62c61faa124?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..aa99a36
--- /dev/null
+++ b/.rust2rpm.conf
@@ -0,0 +1,5 @@
+[DEFAULT]
+buildrequires =
+ pkgconfig(glib-2.0) >= 2.32
+lib.requires =
+ pkgconfig(glib-2.0) >= 2.32
diff --git a/rust-glib-sys.spec b/rust-glib-sys.spec
index 5d5c931..2e0e1d7 100644
--- a/rust-glib-sys.spec
+++ b/rust-glib-sys.spec
@@ -1,50 +1,207 @@
# Generated by rust2rpm
-%bcond_without check
+# * Tests are run in infrastructure
+%bcond_with check
%global debug_package %{nil}
-%global glib_min 2.32
-
%global crate glib-sys
Name: rust-%{crate}
Version: 0.7.0
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: FFI bindings to libglib-2.0
License: MIT
URL: https://crates.io/crates/glib-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(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(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(glib-2.0) >= %{glib_min}
+BuildRequires: pkgconfig(glib-2.0) >= 2.32
+
+%global _description \
+FFI bindings to libglib-2.0.
-%description
-%{summary}.
+%description %{_description}
%package devel
Summary: %{summary}
-Requires: pkgconfig(glib-2.0) >= %{glib_min}
BuildArch: noarch
+Requires: pkgconfig(glib-2.0) >= 2.32
-%description devel
-FFI bindings to libglib-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_40-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_40-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v2_40" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_40-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 "v2_46" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_46-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v2_48-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_48-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v2_48" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_48-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v2_50-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_50-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v2_50" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_50-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v2_52-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_52-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v2_52" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_52-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 %{crate} from crates.io.
+which use "v2_54" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_54-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
+
+%package -n %{name}+v2_56-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+v2_56-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "v2_56" feature of "%{crate}" crate.
+
+%files -n %{name}+v2_56-devel
+%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep
-%autosetup -n %{crate}-%{version} -p1
+%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%build
@@ -58,11 +215,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..540cd4f
--- /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-glib-sys
reply other threads:[~2026-09-25 10:33 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=179033243827.1.5729380521228710273.rpms-rust-glib-sys-d7b5ba699eed@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