The package rpms/rust-libadwaita-sys.git has added or updated architecture specific
content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/rust-libadwaita-sys.git/commit/?i...
https://src.fedoraproject.org/cgit/rpms/rust-libadwaita-sys.git/commit/?i....
Change:
-ExclusiveArch: %{rust_arches}
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 53aad72980b2be00635fd9440feeb85229eea37c
Author: Fabio Valentini <decathorpe(a)gmail.com>
Date: Tue Nov 29 22:11:38 2022 +0100
Update to version 0.2.1; Fixes RHBZ#2144274
diff --git a/.gitignore b/.gitignore
index 1b0f9a9..84511f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/libadwaita-sys-0.1.0.crate
+/libadwaita-sys-0.2.1.crate
diff --git a/README.md b/README.md
deleted file mode 100644
index 49f7536..0000000
--- a/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# rust-libadwaita-sys
-
-The rust-libadwaita-sys package
diff --git a/libadwaita-sys-0.1.0-LICENCE b/libadwaita-sys-0.1.0-LICENCE
deleted file mode 100644
index 64a801a..0000000
--- a/libadwaita-sys-0.1.0-LICENCE
+++ /dev/null
@@ -1,18 +0,0 @@
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-
diff --git a/rust-libadwaita-sys.spec b/rust-libadwaita-sys.spec
index c844afc..72c42ee 100644
--- a/rust-libadwaita-sys.spec
+++ b/rust-libadwaita-sys.spec
@@ -1,19 +1,18 @@
# Generated by rust2rpm 23
-%bcond_without check
+# * tests are broken:
https://github.com/gtk-rs/gtk-rs-core/issues/64
+%bcond_with check
%global debug_package %{nil}
%global crate libadwaita-sys
Name: rust-libadwaita-sys
-Version: 0.1.0
+Version: 0.2.1
Release: %autorelease
Summary: FFI bindings for libadwaita
License: MIT
URL:
https://crates.io/crates/libadwaita-sys
-Source0: %{crates_source}
-# FIXME: use the one from the crate once upstream released a new version
-Source1:
https://gitlab.gnome.org/World/Rust/libadwaita-rs/-/raw/v0.1/LICENCE#/%{c...
+Source: %{crates_source}
BuildRequires: rust-packaging >= 21
@@ -60,9 +59,34 @@ use the "dox" feature of the "%{crate}" crate.
%files -n %{name}+dox-devel
%ghost %{crate_instdir}/Cargo.toml
+%package -n %{name}+v1_1-devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: pkgconfig(libadwaita-1) >= 1.1
+
+%description -n %{name}+v1_1-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "v1_1" feature of the "%{crate}" crate.
+
+%files -n %{name}+v1_1-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%package -n %{name}+v1_2-devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: pkgconfig(libadwaita-1) >= 1.2
+
+%description -n %{name}+v1_2-devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "v1_2" feature of the "%{crate}" crate.
+
+%files -n %{name}+v1_2-devel
+%ghost %{crate_instdir}/Cargo.toml
+
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
-cp %{SOURCE1} LICENCE
%cargo_prep
%generate_buildrequires
diff --git a/rust2rpm.conf b/rust2rpm.conf
index aa31a66..cc3f8e8 100644
--- a/rust2rpm.conf
+++ b/rust2rpm.conf
@@ -1,5 +1,11 @@
[DEFAULT]
+unwanted-features =
+ v1_3
buildrequires =
pkgconfig(libadwaita-1) >= 1.0.0
lib.requires =
pkgconfig(libadwaita-1) >= 1.0.0
+lib+v1_1.requires =
+ pkgconfig(libadwaita-1) >= 1.1
+lib+v1_2.requires =
+ pkgconfig(libadwaita-1) >= 1.2
diff --git a/sources b/sources
index 0be0724..eb20c0f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libadwaita-sys-0.1.0.crate) =
b546766779f54138cd846704962c58807d8f5f1a0eebf23edfd7a3b1c0b8a951dc5c6a367471cc125d532d7260684c4dca0aa0ae68214446af5e15d71b13cd4a
+SHA512 (libadwaita-sys-0.2.1.crate) =
88c328c0f8dbd3e440be9fa994729d0d686c48d77682cc7c7f4da04cffe8c204d124521ca1c344359913d7d4bb6a695374f38e1ea42c17c7fb5bfa8ef762ae4c
commit b5df16a8c80fbed1887ba99614da701dd7bc7939
Author: Kalev Lember <klember(a)redhat.com>
Date: Thu Nov 10 16:27:08 2022 +0100
Regenerate packaging with rust2rpm 23
diff --git a/rust-libadwaita-sys.spec b/rust-libadwaita-sys.spec
index 344b949..c844afc 100644
--- a/rust-libadwaita-sys.spec
+++ b/rust-libadwaita-sys.spec
@@ -1,23 +1,20 @@
-# Generated by rust2rpm 21
+# Generated by rust2rpm 23
%bcond_without check
%global debug_package %{nil}
%global crate libadwaita-sys
-Name: rust-%{crate}
+Name: rust-libadwaita-sys
Version: 0.1.0
Release: %autorelease
Summary: FFI bindings for libadwaita
-# Upstream license specification: MIT
License: MIT
URL:
https://crates.io/crates/libadwaita-sys
Source0: %{crates_source}
# FIXME: use the one from the crate once upstream released a new version
Source1:
https://gitlab.gnome.org/World/Rust/libadwaita-rs/-/raw/v0.1/LICENCE#/%{c...
-ExclusiveArch: %{rust_arches}
-
BuildRequires: rust-packaging >= 21
%global _description %{expand:
diff --git a/.rust2rpm.conf b/rust2rpm.conf
similarity index 100%
rename from .rust2rpm.conf
rename to rust2rpm.conf
commit 9b7fa8e59489427299a6de1c688a34eca113a535
Author: Kalev Lember <klember(a)redhat.com>
Date: Thu Nov 10 15:04:07 2022 +0100
Initial Fedora build
This is all earlier work by zhangyuannie from
https://bugzilla.redhat.com/show_bug.cgi?id=2066040
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1b0f9a9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/libadwaita-sys-0.1.0.crate
diff --git a/.rust2rpm.conf b/.rust2rpm.conf
new file mode 100644
index 0000000..aa31a66
--- /dev/null
+++ b/.rust2rpm.conf
@@ -0,0 +1,5 @@
+[DEFAULT]
+buildrequires =
+ pkgconfig(libadwaita-1) >= 1.0.0
+lib.requires =
+ pkgconfig(libadwaita-1) >= 1.0.0
diff --git a/libadwaita-sys-0.1.0-LICENCE b/libadwaita-sys-0.1.0-LICENCE
new file mode 100644
index 0000000..64a801a
--- /dev/null
+++ b/libadwaita-sys-0.1.0-LICENCE
@@ -0,0 +1,18 @@
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/rust-libadwaita-sys.spec b/rust-libadwaita-sys.spec
new file mode 100644
index 0000000..344b949
--- /dev/null
+++ b/rust-libadwaita-sys.spec
@@ -0,0 +1,87 @@
+# Generated by rust2rpm 21
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate libadwaita-sys
+
+Name: rust-%{crate}
+Version: 0.1.0
+Release: %autorelease
+Summary: FFI bindings for libadwaita
+
+# Upstream license specification: MIT
+License: MIT
+URL:
https://crates.io/crates/libadwaita-sys
+Source0: %{crates_source}
+# FIXME: use the one from the crate once upstream released a new version
+Source1:
https://gitlab.gnome.org/World/Rust/libadwaita-rs/-/raw/v0.1/LICENCE#/%{c...
+
+ExclusiveArch: %{rust_arches}
+
+BuildRequires: rust-packaging >= 21
+
+%global _description %{expand:
+FFI bindings for libadwaita.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+Requires: pkgconfig(libadwaita-1) >= 1.0.0
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages which
+use the "%{crate}" crate.
+
+%files devel
+%license %{crate_instdir}/LICENCE
+%{crate_instdir}/
+
+%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 the "default" feature of the "%{crate}" crate.
+
+%files -n %{name}+default-devel
+%ghost %{crate_instdir}/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 the "dox" feature of the "%{crate}" crate.
+
+%files -n %{name}+dox-devel
+%ghost %{crate_instdir}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+cp %{SOURCE1} LICENCE
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+echo 'pkgconfig(libadwaita-1) >= 1.0.0'
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..0be0724
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (libadwaita-sys-0.1.0.crate) =
b546766779f54138cd846704962c58807d8f5f1a0eebf23edfd7a3b1c0b8a951dc5c6a367471cc125d532d7260684c4dca0aa0ae68214446af5e15d71b13cd4a