Architecture specific change in rpms/rust-xmlwriter.git
by githook-noreply@fedoraproject.org
The package rpms/rust-xmlwriter.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-xmlwriter.git/commit/?id=b4b....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit b4b5487ca7f5f087fbc993809400404f63ea2ca5
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 14 17:16:25 2021 -0400
Initial import
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..49f69d9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/xmlwriter-0.1.0.crate
diff --git a/rust-xmlwriter.spec b/rust-xmlwriter.spec
new file mode 100644
index 0000000..79af07e
--- /dev/null
+++ b/rust-xmlwriter.spec
@@ -0,0 +1,75 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate xmlwriter
+
+Name: rust-%{crate}
+Version: 0.1.0
+Release: 1%{?dist}
+Summary: Simple, streaming XML writer
+
+# Upstream license specification: MIT
+License: MIT
+URL: https://crates.io/crates/xmlwriter
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Simple, streaming XML writer.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%doc README.md README.tpl
+%license LICENSE
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Sat Jun 12 23:27:53 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.1.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..fff95ce
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (xmlwriter-0.1.0.crate) = a0d8bfe6e3d220358e8523212cddb84541e9d8208b2aea64a89037e4e9f4de62a7b549c9f1bacbd71e14de16707f061e547d89ba459843be45fa802db297fd58
3 years
Architecture specific change in rpms/rust-xmlwriter.git
by githook-noreply@fedoraproject.org
The package rpms/rust-xmlwriter.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-xmlwriter.git/commit/?id=b4b....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit b4b5487ca7f5f087fbc993809400404f63ea2ca5
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 14 17:16:25 2021 -0400
Initial import
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..49f69d9
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/xmlwriter-0.1.0.crate
diff --git a/rust-xmlwriter.spec b/rust-xmlwriter.spec
new file mode 100644
index 0000000..79af07e
--- /dev/null
+++ b/rust-xmlwriter.spec
@@ -0,0 +1,75 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate xmlwriter
+
+Name: rust-%{crate}
+Version: 0.1.0
+Release: 1%{?dist}
+Summary: Simple, streaming XML writer
+
+# Upstream license specification: MIT
+License: MIT
+URL: https://crates.io/crates/xmlwriter
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Simple, streaming XML writer.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%doc README.md README.tpl
+%license LICENSE
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Sat Jun 12 23:27:53 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.1.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..fff95ce
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (xmlwriter-0.1.0.crate) = a0d8bfe6e3d220358e8523212cddb84541e9d8208b2aea64a89037e4e9f4de62a7b549c9f1bacbd71e14de16707f061e547d89ba459843be45fa802db297fd58
3 years
Architecture specific change in rpms/rust-plotters-backend.git
by githook-noreply@fedoraproject.org
The package rpms/rust-plotters-backend.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-plotters-backend.git/commit/....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 44fffe49e145ba5ca554114c044df7514a8a97be
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 14 16:25:47 2021 -0400
Initial import
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a4537fb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/plotters-backend-0.3.0.crate
diff --git a/rust-plotters-backend.spec b/rust-plotters-backend.spec
new file mode 100644
index 0000000..01de26e
--- /dev/null
+++ b/rust-plotters-backend.spec
@@ -0,0 +1,75 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate plotters-backend
+
+Name: rust-%{crate}
+Version: 0.3.0
+Release: 1%{?dist}
+Summary: Plotters Backend API
+
+# Upstream license specification: MIT
+License: MIT
+URL: https://crates.io/crates/plotters-backend
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Plotters Backend API.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%doc README.md
+%license LICENSE
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Sat Jun 12 20:12:34 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.3.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..ecef0a7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (plotters-backend-0.3.0.crate) = 2071a4e249277a25cabf2f39c8fbf68ee5246b853c3f054fa49ff5356492b770419ca7dd7e481465b764fe8a1606491a2ff49a3215c3a5dd7c7b28779c54f3ad
3 years
Architecture specific change in rpms/rust-plotters-backend.git
by githook-noreply@fedoraproject.org
The package rpms/rust-plotters-backend.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-plotters-backend.git/commit/....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 44fffe49e145ba5ca554114c044df7514a8a97be
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 14 16:25:47 2021 -0400
Initial import
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a4537fb
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/plotters-backend-0.3.0.crate
diff --git a/rust-plotters-backend.spec b/rust-plotters-backend.spec
new file mode 100644
index 0000000..01de26e
--- /dev/null
+++ b/rust-plotters-backend.spec
@@ -0,0 +1,75 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate plotters-backend
+
+Name: rust-%{crate}
+Version: 0.3.0
+Release: 1%{?dist}
+Summary: Plotters Backend API
+
+# Upstream license specification: MIT
+License: MIT
+URL: https://crates.io/crates/plotters-backend
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Plotters Backend API.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%doc README.md
+%license LICENSE
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Sat Jun 12 20:12:34 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.3.0-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..ecef0a7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (plotters-backend-0.3.0.crate) = 2071a4e249277a25cabf2f39c8fbf68ee5246b853c3f054fa49ff5356492b770419ca7dd7e481465b764fe8a1606491a2ff49a3215c3a5dd7c7b28779c54f3ad
3 years
Architecture specific change in rpms/rust-quad-rand.git
by githook-noreply@fedoraproject.org
The package rpms/rust-quad-rand.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-quad-rand.git/commit/?id=cdf....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit cdfa7cad3828aae84234f3f938b1d73a6696e167
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 14 15:52:47 2021 -0400
Initial import
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..89ac3bc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/quad-rand-0.2.1.crate
diff --git a/rust-quad-rand.spec b/rust-quad-rand.spec
new file mode 100644
index 0000000..b515cb6
--- /dev/null
+++ b/rust-quad-rand.spec
@@ -0,0 +1,87 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate quad-rand
+
+Name: rust-%{crate}
+Version: 0.2.1
+Release: 1%{?dist}
+Summary: Pseudo random implementation with std atomics
+
+# Upstream license specification: MIT
+# https://github.com/not-fl3/quad-rand/issues/8
+License: MIT
+URL: https://crates.io/crates/quad-rand
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Pseudo random implementation with std atomics.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%doc README.md
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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_no_tilde}/Cargo.toml
+
+%package -n %{name}+rand-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+rand-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "rand" feature of "%{crate}" crate.
+
+%files -n %{name}+rand-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Sat Jun 12 19:04:56 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.2.1-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..b2656dc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (quad-rand-0.2.1.crate) = 9e2638696bb21e6bee1eea35498678241bf17bedb65731c356f1fc6d58e9f7bb2f4fe5a32e87d43070e4c2edc73f8b81c2e3131586ccd44dd50dddf0fe012254
3 years
Architecture specific change in rpms/rust-quad-rand.git
by githook-noreply@fedoraproject.org
The package rpms/rust-quad-rand.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-quad-rand.git/commit/?id=cdf....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit cdfa7cad3828aae84234f3f938b1d73a6696e167
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 14 15:52:47 2021 -0400
Initial import
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..89ac3bc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/quad-rand-0.2.1.crate
diff --git a/rust-quad-rand.spec b/rust-quad-rand.spec
new file mode 100644
index 0000000..b515cb6
--- /dev/null
+++ b/rust-quad-rand.spec
@@ -0,0 +1,87 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate quad-rand
+
+Name: rust-%{crate}
+Version: 0.2.1
+Release: 1%{?dist}
+Summary: Pseudo random implementation with std atomics
+
+# Upstream license specification: MIT
+# https://github.com/not-fl3/quad-rand/issues/8
+License: MIT
+URL: https://crates.io/crates/quad-rand
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Pseudo random implementation with std atomics.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%doc README.md
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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_no_tilde}/Cargo.toml
+
+%package -n %{name}+rand-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+rand-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "rand" feature of "%{crate}" crate.
+
+%files -n %{name}+rand-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Sat Jun 12 19:04:56 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.2.1-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..b2656dc
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (quad-rand-0.2.1.crate) = 9e2638696bb21e6bee1eea35498678241bf17bedb65731c356f1fc6d58e9f7bb2f4fe5a32e87d43070e4c2edc73f8b81c2e3131586ccd44dd50dddf0fe012254
3 years
Architecture specific change in rpms/qemu.git
by githook-noreply@fedoraproject.org
The package rpms/qemu.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/qemu.git/commit/?id=8a780b3b19991....
Change:
+%ifnarch s390x %{power64}
Thanks.
Full change:
============
commit 1dd0948044f498c3b43e139237aef95f7437a686
Author: Cole Robinson <crobinso(a)redhat.com>
Date: Mon Jun 7 19:58:30 2021 -0400
Fix kvm_buf_set_msrs assertion breaking fedora composes
https://pagure.io/releng/failed-composes/issue/2548
Signed-off-by: Cole Robinson <crobinso(a)redhat.com>
diff --git a/0005-Revert-target-i386-define-a-new-MSR-based-feature-wo.patch b/0005-Revert-target-i386-define-a-new-MSR-based-feature-wo.patch
new file mode 100644
index 0000000..acf36b7
--- /dev/null
+++ b/0005-Revert-target-i386-define-a-new-MSR-based-feature-wo.patch
@@ -0,0 +1,142 @@
+From: Cole Robinson <crobinso(a)redhat.com>
+Date: Mon, 7 Jun 2021 19:53:33 -0400
+Subject: [PATCH] Revert "target/i386: define a new MSR based feature word -
+ FEAT_PERF_CAPABILITIES"
+
+This reverts commit ea39f9b643959d759b8643b4c11c4cbb3683d0ff.
+
+Non-upstream. This is to workaround the fedora infrastructure
+issue tracked here:
+https://pagure.io/releng/failed-composes/issue/2548
+
+There is no proper bug for this at time of writing, Paolo hasn't
+isolated a reproducer. Let's carry this for f34 but leave it
+out of f35, and hopefully in 6 months when fedora infra
+updates again this is 'fixed' :)
+---
+ target/i386/cpu.c | 23 -----------------------
+ target/i386/cpu.h | 3 ---
+ target/i386/kvm.c | 20 --------------------
+ 3 files changed, 46 deletions(-)
+
+diff --git a/target/i386/cpu.c b/target/i386/cpu.c
+index 5a8c96072e..dd86c801e9 100644
+--- a/target/i386/cpu.c
++++ b/target/i386/cpu.c
+@@ -1128,22 +1128,6 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
+ .index = MSR_IA32_CORE_CAPABILITY,
+ },
+ },
+- [FEAT_PERF_CAPABILITIES] = {
+- .type = MSR_FEATURE_WORD,
+- .feat_names = {
+- NULL, NULL, NULL, NULL,
+- NULL, NULL, NULL, NULL,
+- NULL, NULL, NULL, NULL,
+- NULL, "full-width-write", NULL, NULL,
+- NULL, NULL, NULL, NULL,
+- NULL, NULL, NULL, NULL,
+- NULL, NULL, NULL, NULL,
+- NULL, NULL, NULL, NULL,
+- },
+- .msr = {
+- .index = MSR_IA32_PERF_CAPABILITIES,
+- },
+- },
+
+ [FEAT_VMX_PROCBASED_CTLS] = {
+ .type = MSR_FEATURE_WORD,
+@@ -1321,10 +1305,6 @@ static FeatureDep feature_dependencies[] = {
+ .from = { FEAT_7_0_EDX, CPUID_7_0_EDX_CORE_CAPABILITY },
+ .to = { FEAT_CORE_CAPABILITY, ~0ull },
+ },
+- {
+- .from = { FEAT_1_ECX, CPUID_EXT_PDCM },
+- .to = { FEAT_PERF_CAPABILITIES, ~0ull },
+- },
+ {
+ .from = { FEAT_1_ECX, CPUID_EXT_VMX },
+ .to = { FEAT_VMX_PROCBASED_CTLS, ~0ull },
+@@ -5514,9 +5494,6 @@ void cpu_x86_cpuid(CPUX86State *env, uint32_t index, uint32_t count,
+ *ebx |= (cs->nr_cores * cs->nr_threads) << 16;
+ *edx |= CPUID_HT;
+ }
+- if (!cpu->enable_pmu) {
+- *ecx &= ~CPUID_EXT_PDCM;
+- }
+ break;
+ case 2:
+ /* cache info: needed for Pentium Pro compatibility */
+diff --git a/target/i386/cpu.h b/target/i386/cpu.h
+index 88e8586f8f..2fc8bc8358 100644
+--- a/target/i386/cpu.h
++++ b/target/i386/cpu.h
+@@ -356,8 +356,6 @@ typedef enum X86Seg {
+ #define MSR_IA32_ARCH_CAPABILITIES 0x10a
+ #define ARCH_CAP_TSX_CTRL_MSR (1<<7)
+
+-#define MSR_IA32_PERF_CAPABILITIES 0x345
+-
+ #define MSR_IA32_TSX_CTRL 0x122
+ #define MSR_IA32_TSCDEADLINE 0x6e0
+
+@@ -531,7 +529,6 @@ typedef enum FeatureWord {
+ FEAT_XSAVE_COMP_HI, /* CPUID[EAX=0xd,ECX=0].EDX */
+ FEAT_ARCH_CAPABILITIES,
+ FEAT_CORE_CAPABILITY,
+- FEAT_PERF_CAPABILITIES,
+ FEAT_VMX_PROCBASED_CTLS,
+ FEAT_VMX_SECONDARY_CTLS,
+ FEAT_VMX_PINBASED_CTLS,
+diff --git a/target/i386/kvm.c b/target/i386/kvm.c
+index a2934dda02..1fddf93c93 100644
+--- a/target/i386/kvm.c
++++ b/target/i386/kvm.c
+@@ -111,7 +111,6 @@ static bool has_msr_core_capabs;
+ static bool has_msr_vmx_vmfunc;
+ static bool has_msr_ucode_rev;
+ static bool has_msr_vmx_procbased_ctls2;
+-static bool has_msr_perf_capabs;
+
+ static uint32_t has_architectural_pmu_version;
+ static uint32_t num_architectural_pmu_gp_counters;
+@@ -2049,9 +2048,6 @@ static int kvm_get_supported_msrs(KVMState *s)
+ case MSR_IA32_CORE_CAPABILITY:
+ has_msr_core_capabs = true;
+ break;
+- case MSR_IA32_PERF_CAPABILITIES:
+- has_msr_perf_capabs = true;
+- break;
+ case MSR_IA32_VMX_VMFUNC:
+ has_msr_vmx_vmfunc = true;
+ break;
+@@ -2673,18 +2669,6 @@ static void kvm_msr_entry_add_vmx(X86CPU *cpu, FeatureWordArray f)
+ VMCS12_MAX_FIELD_INDEX << 1);
+ }
+
+-static void kvm_msr_entry_add_perf(X86CPU *cpu, FeatureWordArray f)
+-{
+- uint64_t kvm_perf_cap =
+- kvm_arch_get_supported_msr_feature(kvm_state,
+- MSR_IA32_PERF_CAPABILITIES);
+-
+- if (kvm_perf_cap) {
+- kvm_msr_entry_add(cpu, MSR_IA32_PERF_CAPABILITIES,
+- kvm_perf_cap & f[FEAT_PERF_CAPABILITIES]);
+- }
+-}
+-
+ static int kvm_buf_set_msrs(X86CPU *cpu)
+ {
+ int ret = kvm_vcpu_ioctl(CPU(cpu), KVM_SET_MSRS, cpu->kvm_msr_buf);
+@@ -2717,10 +2701,6 @@ static void kvm_init_msrs(X86CPU *cpu)
+ env->features[FEAT_CORE_CAPABILITY]);
+ }
+
+- if (has_msr_perf_capabs && cpu->enable_pmu) {
+- kvm_msr_entry_add_perf(cpu, env->features);
+- }
+-
+ if (has_msr_ucode_rev) {
+ kvm_msr_entry_add(cpu, MSR_IA32_UCODE_REV, cpu->ucode_rev);
+ }
diff --git a/qemu.spec b/qemu.spec
index 07d7f6b..8ba7d24 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -219,7 +219,7 @@
Summary: QEMU is a FAST! processor emulator
Name: qemu
Version: 5.2.0
-Release: 7%{?rcrel}%{?dist}
+Release: 8%{?rcrel}%{?dist}
Epoch: 2
License: GPLv2 and BSD and MIT and CC-BY
URL: http://www.qemu.org/
@@ -245,6 +245,9 @@ Patch0002: 0002-qemu-config-load-modules-when-instantiating-option-g.patch
Patch0003: 0003-hw-block-nvme-expose-bootindex-property.patch
# Fix invalid llu with systemtap (bz #1960329)
Patch0004: 0004-tracetool-also-strip-l-and-ll-from-systemtap-format-.patch
+# Fix kvm_buf_set_msrs assertion breaking fedora composes
+# https://pagure.io/releng/failed-composes/issue/2548
+Patch0005: 0005-Revert-target-i386-define-a-new-MSR-based-feature-wo.patch
BuildRequires: make
BuildRequires: meson
@@ -1926,6 +1929,9 @@ getent passwd qemu >/dev/null || \
%changelog
+* Mon Jun 14 2021 Cole Robinson <crobinso(a)redhat.com> - 5.2.0-8
+- Fix kvm_buf_set_msrs assertion breaking fedora composes
+
* Wed May 19 2021 Cole Robinson <crobinso(a)redhat.com> - 5.2.0-7
- Fix nvme bootindex property (bz #1956429)
- Fix invalid llu with systemtap (bz #1960329)
commit 8a780b3b19991c6528d6e3ae2b8f9d5c22ba6df5
Author: Cole Robinson <crobinso(a)redhat.com>
Date: Wed Jun 9 12:14:10 2021 -0400
Temporarily disable the test suite for s390x and ppc64le
Signed-off-by: Cole Robinson <crobinso(a)redhat.com>
diff --git a/qemu.spec b/qemu.spec
index 2252ac4..07d7f6b 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -1438,7 +1438,11 @@ perl -i -p -e 's/^(127|267)/# $1/' tests/qemu-iotests/group
%endif
pushd build-dynamic
+# 2021-06: Test suite hanging on power
+# 2021-06: s390x test suite randomly failing with 'broken pipe'
+%ifnarch s390x %{power64}
make check V=1
+%endif
# Check the binary runs (see eg RHBZ#998722).
b="./x86_64-softmmu/qemu-system-x86_64"
3 years
Architecture specific change in rpms/rust-cloudflare-zlib.git
by githook-noreply@fedoraproject.org
The package rpms/rust-cloudflare-zlib.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-cloudflare-zlib.git/commit/?...
https://src.fedoraproject.org/cgit/rpms/rust-cloudflare-zlib.git/commit/?...
https://src.fedoraproject.org/cgit/rpms/rust-cloudflare-zlib.git/commit/?....
Change:
+ExclusiveArch: x86_64
+ExclusiveArch: x86_64 aarch64
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit ffb68054391627f6b06a7d15f26c929da02d00cc
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 14 12:08:57 2021 -0400
update comment
diff --git a/rust-cloudflare-zlib.spec b/rust-cloudflare-zlib.spec
index 2c31d90..99429b0 100644
--- a/rust-cloudflare-zlib.spec
+++ b/rust-cloudflare-zlib.spec
@@ -14,7 +14,7 @@ License: MIT and zlib or ASL 2.0 and zlib
URL: https://crates.io/crates/cloudflare-zlib
Source: %{crates_source}
-# Remove aarch64 for now
+# Remove aarch64 for now until rust arm detection is stable
# https://gitlab.com/kornelski/cloudflare-zlib-sys/-/issues/2
ExclusiveArch: x86_64
%if %{__cargo_skip_build}
commit a565366b02ad85f08e78d1625099aad27c6008d6
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 7 13:19:57 2021 -0400
Repare error
diff --git a/rust-cloudflare-zlib.spec b/rust-cloudflare-zlib.spec
index a931ddd..2c31d90 100644
--- a/rust-cloudflare-zlib.spec
+++ b/rust-cloudflare-zlib.spec
@@ -68,7 +68,7 @@ which use "arm-always" feature of "%{crate}" crate.
%package -n %{name}+arm-conditional-devel
Summary: %{summary}
-BuildArch: noarchhttps://gitlab.com/kornelski/cloudflare-zlib-sys/-/issues/2
+BuildArch: noarch
%description -n %{name}+arm-conditional-devel %{_description}
commit 0f5090a6fed0cd5e5cff45860f72e7e73570cc17
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 7 13:15:40 2021 -0400
Remove aarch64 for now
diff --git a/rust-cloudflare-zlib.spec b/rust-cloudflare-zlib.spec
index 365b6cc..a931ddd 100644
--- a/rust-cloudflare-zlib.spec
+++ b/rust-cloudflare-zlib.spec
@@ -14,7 +14,9 @@ License: MIT and zlib or ASL 2.0 and zlib
URL: https://crates.io/crates/cloudflare-zlib
Source: %{crates_source}
-ExclusiveArch: x86_64 aarch64
+# Remove aarch64 for now
+# https://gitlab.com/kornelski/cloudflare-zlib-sys/-/issues/2
+ExclusiveArch: x86_64
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
@@ -66,7 +68,7 @@ which use "arm-always" feature of "%{crate}" crate.
%package -n %{name}+arm-conditional-devel
Summary: %{summary}
-BuildArch: noarch
+BuildArch: noarchhttps://gitlab.com/kornelski/cloudflare-zlib-sys/-/issues/2
%description -n %{name}+arm-conditional-devel %{_description}
commit 118d0dcd7762e4146e8824fd43edd6e133005efd
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 7 13:02:26 2021 -0400
Upstream only support 64bit arm and intel cpu
diff --git a/rust-cloudflare-zlib.spec b/rust-cloudflare-zlib.spec
index 6afe03c..365b6cc 100644
--- a/rust-cloudflare-zlib.spec
+++ b/rust-cloudflare-zlib.spec
@@ -14,7 +14,7 @@ License: MIT and zlib or ASL 2.0 and zlib
URL: https://crates.io/crates/cloudflare-zlib
Source: %{crates_source}
-ExclusiveArch: %{rust_arches}
+ExclusiveArch: x86_64 aarch64
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
commit 0409613fd2607099a22e67b34185dc919a778607
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 7 12:18:57 2021 -0400
Initial import
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..82a1a7d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/cloudflare-zlib-0.2.9.crate
diff --git a/rust-cloudflare-zlib.spec b/rust-cloudflare-zlib.spec
new file mode 100644
index 0000000..6afe03c
--- /dev/null
+++ b/rust-cloudflare-zlib.spec
@@ -0,0 +1,112 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate cloudflare-zlib
+
+Name: rust-%{crate}
+Version: 0.2.9
+Release: 1%{?dist}
+Summary: Safe wrapper for Cloudflare's optimized zlib
+
+# Upstream license specification: MIT AND Zlib OR Apache-2.0 AND Zlib
+License: MIT and zlib or ASL 2.0 and zlib
+URL: https://crates.io/crates/cloudflare-zlib
+Source: %{crates_source}
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Safe wrapper for Cloudflare's optimized zlib.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%doc README.md
+%license LICENSE
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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_no_tilde}/Cargo.toml
+
+%package -n %{name}+arm-always-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+arm-always-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "arm-always" feature of "%{crate}" crate.
+
+%files -n %{name}+arm-always-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+arm-conditional-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+arm-conditional-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "arm-conditional" feature of "%{crate}" crate.
+
+%files -n %{name}+arm-conditional-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+asm-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+asm-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "asm" feature of "%{crate}" crate.
+
+%files -n %{name}+asm-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+sed -e '0,/^## License/d' README.md > LICENSE
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Mon May 31 16:48:54 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.2.9-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..3cb99e3
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (cloudflare-zlib-0.2.9.crate) = 05dd747e4a7b2ea999a3a155304d9a05782b49e6a5af8ce07374c48e4b3c4601250a0c02a3a10c795aa887101c12679bbdc0d5ea7b89c7dfe5325aa51b6a42ad
3 years
Architecture specific change in rpms/rust-imgui-winit-support.git
by githook-noreply@fedoraproject.org
The package rpms/rust-imgui-winit-support.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-imgui-winit-support.git/comm....
Change:
+ExclusiveArch: %{rust_arches}
Thanks.
Full change:
============
commit 6e6a5229d55ab04999bffb37eb90db1e111e3767
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Mon Jun 14 11:51:03 2021 -0400
Remove winit version that fedora don't have
diff --git a/rust-imgui-winit-support.spec b/rust-imgui-winit-support.spec
index 5ea7956..b33edfa 100644
--- a/rust-imgui-winit-support.spec
+++ b/rust-imgui-winit-support.spec
@@ -1,4 +1,5 @@
# Generated by rust2rpm 17
+# Remove version of winit package that fedora don't have
%bcond_without check
%global debug_package %{nil}
@@ -6,7 +7,7 @@
Name: rust-%{crate}
Version: 0.7.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Winit support code for the imgui crate
# Upstream license specification: MIT/Apache-2.0
@@ -69,54 +70,6 @@ which use "no-warn-on-multiple" feature of "%{crate}" crate.
%files -n %{name}+no-warn-on-multiple-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-%package -n %{name}+winit-19-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+winit-19-devel %{_description}
-
-This package contains library source intended for building other packages
-which use "winit-19" feature of "%{crate}" crate.
-
-%files -n %{name}+winit-19-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-
-%package -n %{name}+winit-20-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+winit-20-devel %{_description}
-
-This package contains library source intended for building other packages
-which use "winit-20" feature of "%{crate}" crate.
-
-%files -n %{name}+winit-20-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-
-%package -n %{name}+winit-22-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+winit-22-devel %{_description}
-
-This package contains library source intended for building other packages
-which use "winit-22" feature of "%{crate}" crate.
-
-%files -n %{name}+winit-22-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-
-%package -n %{name}+winit-23-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+winit-23-devel %{_description}
-
-This package contains library source intended for building other packages
-which use "winit-23" feature of "%{crate}" crate.
-
-%files -n %{name}+winit-23-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-
%package -n %{name}+winit-24-devel
Summary: %{summary}
BuildArch: noarch
@@ -129,18 +82,6 @@ which use "winit-24" feature of "%{crate}" crate.
%files -n %{name}+winit-24-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-%package -n %{name}+winit-25-devel
-Summary: %{summary}
-BuildArch: noarch
-
-%description -n %{name}+winit-25-devel %{_description}
-
-This package contains library source intended for building other packages
-which use "winit-25" feature of "%{crate}" crate.
-
-%files -n %{name}+winit-25-devel
-%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
-
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
@@ -163,5 +104,8 @@ cp %{SOURCE3} LICENSE-APACHE
%endif
%changelog
+* Mon Jun 14 11:45:21 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.7.1-2
+- Remove winit version package that fedora don't have
+
* Sun Jun 06 20:04:30 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.7.1-1
- Initial package
commit c37549bc11948dd8d84f2dc36416a0b934d15ea4
Author: Rémi Lauzier <remilauzier(a)protonmail.com>
Date: Sun Jun 13 12:15:40 2021 -0400
Initial import
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ae9f1b6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/imgui-winit-support-0.7.1.crate
diff --git a/LICENSE-APACHE b/LICENSE-APACHE
new file mode 100644
index 0000000..8f71f43
--- /dev/null
+++ b/LICENSE-APACHE
@@ -0,0 +1,202 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright {yyyy} {name of copyright owner}
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
diff --git a/LICENSE-MIT b/LICENSE-MIT
new file mode 100644
index 0000000..ea896c1
--- /dev/null
+++ b/LICENSE-MIT
@@ -0,0 +1,19 @@
+Copyright (c) 2015-2020 The imgui-rs Developers
+
+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/README.markdown b/README.markdown
new file mode 100644
index 0000000..573e852
--- /dev/null
+++ b/README.markdown
@@ -0,0 +1,143 @@
+# imgui-rs: Rust bindings for Dear ImGui
+
+[![Build Status](https://github.com/imgui-rs/imgui-rs/workflows/ci/badge.svg)](htt...
+[![Latest release on crates.io](https://meritbadge.herokuapp.com/imgui)](https://crates.io/cra...
+[![Documentation on docs.rs](https://docs.rs/imgui/badge.svg)](https://docs.rs/imgui)
+[![Wrapped Dear ImGui Version](https://img.shields.io/badge/Dear%20ImGui%20Version-1.80-blue.sv...
+
+(Recently under new maintenance, things subject to change)
+
+![Hello world](hello_world.png)
+
+```rust
+Window::new(im_str!("Hello world"))
+ .size([300.0, 100.0], Condition::FirstUseEver)
+ .build(&ui, || {
+ ui.text(im_str!("Hello world!"));
+ ui.text(im_str!("こんにちは世界!"));
+ ui.text(im_str!("This...is...imgui-rs!"));
+ ui.separator();
+ let mouse_pos = ui.io().mouse_pos;
+ ui.text(format!(
+ "Mouse Position: ({:.1},{:.1})",
+ mouse_pos[0], mouse_pos[1]
+ ));
+ });
+```
+
+## Main library crates
+
+* imgui: High-level safe API
+* imgui-glium-renderer: Renderer implementation that uses the `glium` crate
+* imgui-gfx-renderer: Renderer implementation that uses the `gfx` crate (*not
+ the new gfx-hal crate*)
+* imgui-winit-support: Backend platform implementation that uses the `winit`
+ crate (latest by default, but earlier versions are supported via feature flags)
+* imgui-sys: Low-level unsafe API (automatically generated)
+
+## Features
+
+- Bindings for Dear ImGui that can be used with safe Rust. Note: API coverage
+ is not 100%, but will keep improving over time.
+- Builder structs for use cases where the original C++ library uses optional
+ function parameters
+- `&ImStr` / `ImString` types and `im_str!` macro for defining and passing
+ null-terminated UTF-8 to Dear ImGui, which doesn't accept Rust `&str` /
+ `String` values. See [issue #7](https://github.com/Gekkio/imgui-rs/issues/7)
+ for more information and justification for this design.
+- Easy integration with Glium / pre-ll gfx (renderer)
+- Easy integration with winit (backend platform)
+
+## Choosing a backend platform and a renderer
+
+Almost every application that uses imgui-rs needs two additional components in
+addition to the main `imgui` crate: a backend platform, and a renderer.
+
+The backend platform is responsible for integrating imgui-rs with the operating
+system and its window management. Its responsibilities include the following:
+
+* Handling input events (e.g. keyboard, mouse) and updating imgui-rs state
+ accordingly
+* Passing information about the OS window (e.g. size, DPI factor) to imgui-rs
+* Updating the OS-side mouse cursor when imgui-rs requests it
+
+The renderer is responsible for taking generic, renderer-agnostic *draw lists*
+generated by imgui-rs, and rendering them using some graphics API. Its
+responsibilities include the following:
+
+* Rendering using vertex/index buffers and command lists
+* Handling of DPI factors and scissor rects
+* Texture management
+
+The most tested platform/renderer combination is `imgui-glium-renderer` +
+`glium` + `imgui-winit-support` + `winit`, but this is not the only possible
+combination. There's also `imgui-gfx-renderer`, and you can find additional 3rd
+party crates that provide a wider support for more libraries (e.g. raw OpenGL,
+SDL2). You can also write your own support code if you have a more advanced use
+case, because **imgui-rs is not tied to any specific graphics / OS API**.
+
+## Compiling and running the demos
+
+```bash
+git clone https://github.com/imgui-rs/imgui-rs
+cd imgui-rs
+git submodule update --init --recursive
+```
+
+Main examples are located in the imgui-examples directory.
+
+```bash
+# At the reposity root
+cd imgui-examples
+cargo test
+
+cargo run --example hello_world
+cargo run --example test_window
+cargo run --example test_window_impl
+```
+
+Examples for the gfx backend are under the imgui-gfx-examples directory.
+
+```bash
+cd imgui-gfx-examples
+cargo test
+
+cargo run --example hello_world
+cargo run --example test_window
+```
+
+Note to Windows users: You will need to use the *MSVC ABI* version of the Rust
+compiler along with its associated
+[dependencies](https://www.rust-lang.org/en-US/downloads.html#win-foot) to
+build this libary and run the examples.
+
+## How to contribute
+
+1. Change or add something
+2. Make sure you're using the latest stable Rust
+3. Run rustfmt to guarantee code style conformance
+
+ ```bash
+ rustup component add rustfmt
+ cargo fmt
+ ```
+
+4. Open a pull request in Github
+
+## License
+
+Licensed under either of
+
+ * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
+ * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
+
+at your option.
+
+Uses [Dear ImGui](https://github.com/ocornut/imgui) and
+[cimgui](https://github.com/cimgui/cimgui).
+
+### Contribution
+
+Unless you explicitly state otherwise, any contribution intentionally submitted
+for inclusion in the work by you, as defined in the Apache-2.0 license, shall
+be dual licensed as above, without any additional terms or conditions.
diff --git a/rust-imgui-winit-support.spec b/rust-imgui-winit-support.spec
new file mode 100644
index 0000000..5ea7956
--- /dev/null
+++ b/rust-imgui-winit-support.spec
@@ -0,0 +1,167 @@
+# Generated by rust2rpm 17
+%bcond_without check
+%global debug_package %{nil}
+
+%global crate imgui-winit-support
+
+Name: rust-%{crate}
+Version: 0.7.1
+Release: 1%{?dist}
+Summary: Winit support code for the imgui crate
+
+# Upstream license specification: MIT/Apache-2.0
+License: MIT or ASL 2.0
+URL: https://crates.io/crates/imgui-winit-support
+Source: %{crates_source}
+# Download license and readme file
+# https://github.com/imgui-rs/imgui-rs/issues/493
+Source1: https://raw.githubusercontent.com/imgui-rs/imgui-rs/master/README.markdown
+Source2: https://raw.githubusercontent.com/imgui-rs/imgui-rs/master/LICENSE-MIT
+Source3: https://raw.githubusercontent.com/imgui-rs/imgui-rs/master/LICENSE-APACHE
+
+ExclusiveArch: %{rust_arches}
+%if %{__cargo_skip_build}
+BuildArch: noarch
+%endif
+
+BuildRequires: rust-packaging
+
+%global _description %{expand:
+Winit support code for the imgui crate.}
+
+%description %{_description}
+
+%package devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description devel %{_description}
+
+This package contains library source intended for building other packages
+which use "%{crate}" crate.
+
+%files devel
+%doc README.markdown
+%license LICENSE-MIT LICENSE-APACHE
+%{cargo_registry}/%{crate}-%{version_no_tilde}/
+
+%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_no_tilde}/Cargo.toml
+
+%package -n %{name}+no-warn-on-multiple-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+no-warn-on-multiple-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "no-warn-on-multiple" feature of "%{crate}" crate.
+
+%files -n %{name}+no-warn-on-multiple-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+winit-19-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+winit-19-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "winit-19" feature of "%{crate}" crate.
+
+%files -n %{name}+winit-19-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+winit-20-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+winit-20-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "winit-20" feature of "%{crate}" crate.
+
+%files -n %{name}+winit-20-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+winit-22-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+winit-22-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "winit-22" feature of "%{crate}" crate.
+
+%files -n %{name}+winit-22-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+winit-23-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+winit-23-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "winit-23" feature of "%{crate}" crate.
+
+%files -n %{name}+winit-23-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+winit-24-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+winit-24-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "winit-24" feature of "%{crate}" crate.
+
+%files -n %{name}+winit-24-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%package -n %{name}+winit-25-devel
+Summary: %{summary}
+BuildArch: noarch
+
+%description -n %{name}+winit-25-devel %{_description}
+
+This package contains library source intended for building other packages
+which use "winit-25" feature of "%{crate}" crate.
+
+%files -n %{name}+winit-25-devel
+%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
+
+%prep
+%autosetup -n %{crate}-%{version_no_tilde} -p1
+%cargo_prep
+cp %{SOURCE1} README.markdown
+cp %{SOURCE2} LICENSE-MIT
+cp %{SOURCE3} LICENSE-APACHE
+
+%generate_buildrequires
+%cargo_generate_buildrequires
+
+%build
+%cargo_build
+
+%install
+%cargo_install
+
+%if %{with check}
+%check
+%cargo_test
+%endif
+
+%changelog
+* Sun Jun 06 20:04:30 EDT 2021 Rémi Lauzier <remilauzier(a)protonmail.com> - 0.7.1-1
+- Initial package
diff --git a/sources b/sources
new file mode 100644
index 0000000..e4fcd4a
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (imgui-winit-support-0.7.1.crate) = 3e10450bcb3d5b8ab05c0048a8c90afe3464d258b8e3085c462da5316746a59b16ce6e61cbbefcc14f50b8aa19b648bdb5bbb0aa6d0946bf0a27a405f3b19c6d
3 years
Architecture specific change in rpms/fkill-cli.git
by githook-noreply@fedoraproject.org
The package rpms/fkill-cli.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/fkill-cli.git/commit/?id=726b0139....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 726b0139f60e09259444b11cdc3d11ff2585fd9b
Author: Benjamin A. Beasley <code(a)musicinmybrain.net>
Date: Mon Jun 14 10:35:28 2021 -0400
Initial package
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bb5d847
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/fkill-cli-6.1.0-nm-dev.tgz
+/fkill-cli-6.1.0-nm-prod.tgz
+/fkill-cli-6.1.0.tar.gz
+/fkill-cli-6.1.0.tgz
diff --git a/audited-null-licenses.toml b/audited-null-licenses.toml
new file mode 100644
index 0000000..2c456ca
--- /dev/null
+++ b/audited-null-licenses.toml
@@ -0,0 +1,58 @@
+[any]
+
+# All of these fall under rxjs, which has a proper license in its package.json:
+"rxjs/webSocket" = "<unknown version>"
+"rxjs/testing" = "<unknown version>"
+"rxjs/operators" = "<unknown version>"
+"rxjs/internal-compatibility" = "<unknown version>"
+"rxjs/fetch" = "<unknown version>"
+"rxjs/ajax" = "<unknown version>"
+
+# Just a module wrapper around the code in tslib, which does have a proper
+# license in its package.json:
+# tslib/modules
+modules = "<unknown version>"
+# A “dummy” module in the tests for tslib
+# tslib/test/validateModuleExportsMatchCommonJS
+validateModuleExportsMatchCommonJS = "<unknown version>"
+
+# These are all “dummy” modules in the tests for resolve:
+# resolve/test/module_dir/zmodules/bbb
+bbb = "<unknown version>"
+# resolve/test/resolver/invalid_main
+"invalid main" = "<unknown version>"
+# resolve/test/resolver/incorrect_main
+incorrect_main = "<unknown version>"
+# resolve/test/resolver/dot_slash_main
+dot_slash_main = "<unknown version>"
+# resolve/test/resolver/dot_main
+dot_main = "<unknown version>"
+# resolve/test/resolver/baz
+baz = "<unknown version>"
+# resolve/test/resolver/browser_field
+browser_field = "<unknown version>"
+# resolve/test/resolver/symlinked/package
+package = "<unknown version>"
+
+# stream-http/test/browser is covered by stream-http’s MIT license
+browser = "<unknown version>"
+
+# flatted/cjs is covered by flatted’s ISC license
+cjs = "<unknown version>"
+
+# uid2/LICENSE is MIT
+uid2 = "0.0.3"
+
+[prod]
+
+[dev]
+
+# yaml/browser/dist is covered by yaml’s ISC license
+dist = "<unknown version>"
+
+# @babel/helpers/scripts/package.json is covered by @babel/helpers’s MIT
+# license
+# @babel/traverse/scripts/package.json is covered by @babel/traverse’s MIT
+# license
+# @babel/types/scripts/package.json is covered by @babel/types’s MIT license
+scripts = "<unknown version>"
diff --git a/check-null-licenses b/check-null-licenses
new file mode 100755
index 0000000..c19c60f
--- /dev/null
+++ b/check-null-licenses
@@ -0,0 +1,189 @@
+#!/usr/bin/python3
+# -*- coding: utf-8 -*-
+
+import json
+from argparse import ArgumentParser, FileType, RawDescriptionHelpFormatter
+from pathlib import Path
+from sys import exit, stderr
+
+import toml
+
+
+def main():
+ args = parse_args()
+ problem = False
+ for pjpath in args.tree.glob("**/package.json"):
+ name, version, license = parse(pjpath)
+ identity = f"{name} {version}"
+ if version in args.exceptions.get(name, ()):
+ continue # Do not even check the license
+ elif license is None:
+ problem = True
+ print(
+ f"Missing license in package.json for {identity}", file=stderr
+ )
+ elif isinstance(license, dict):
+ if isinstance(license.get("type"), str):
+ continue
+ print(
+ (
+ "Missing type for (deprecated) license object in "
+ f"package.json for {identity}: {license}"
+ ),
+ file=stderr,
+ )
+ elif isinstance(license, list):
+ if license and all(
+ isinstance(entry, dict) and isinstance(entry.get("type"), str)
+ for entry in license
+ ):
+ continue
+ print(
+ (
+ "Defective (deprecated) licenses array-of objects in "
+ f"package.json for {identity}: {license}"
+ ),
+ file=stderr,
+ )
+ elif isinstance(license, str):
+ continue
+ else:
+ print(
+ (
+ "Weird type for license in "
+ f"package.json for {identity}: {license}"
+ ),
+ file=stderr,
+ )
+ problem = True
+ if problem:
+ return "At least one missing license was found."
+
+
+def check_exception(exceptions, name, version):
+ x = args.exceptions
+
+
+def parse(package_json_path):
+ with package_json_path.open("rb") as pjfile:
+ pj = json.load(pjfile)
+ try:
+ license = pj["license"]
+ except KeyError:
+ license = pj.get("licenses")
+ try:
+ name = pj["name"]
+ except KeyError:
+ name = package_json_path.parent.name
+ version = pj.get("version", "<unknown version>")
+
+ return name, version, license
+
+
+def parse_args():
+ parser = ArgumentParser(
+ formatter_class=RawDescriptionHelpFormatter,
+ description=(
+ "Search for bundled dependencies without declared licenses"
+ ),
+ epilog="""
+
+The exceptions file must be a TOML file with zero or more tables. Each table’s
+keys are package names; the corresponding values values are exact version
+number strings, or arrays of version number strings, that have been manually
+audited to determine their license status and should therefore be ignored.
+
+Exceptions in a table called “any” are always applied. Otherwise, exceptions
+are applied only if a corresponding --with TABLENAME argument is given;
+multiple such arguments may be given.
+
+For
+example:
+
+ [any]
+ example-foo = "1.0.0"
+
+ [prod]
+ example-bar = [ "2.0.0", "2.0.1",]
+
+ [dev]
+ example-bat = [ "3.7.4",]
+
+would always ignore version 1.0.0 of example-foo. It would ignore example-bar
+2.0.1 only when called with “--with prod”.
+
+Comments may (and should) be used to describe the manual audits upon which the
+exclusions are based.
+
+Otherwise, any package.json with missing or null license field in the tree is
+considered an error, and the program returns with nonzero status.
+""",
+ )
+ parser.add_argument(
+ "-x",
+ "--exceptions",
+ type=FileType("r"),
+ help="Manually audited package versions file",
+ )
+ parser.add_argument(
+ "-w",
+ "--with",
+ action="append",
+ default=[],
+ help="Enable a table in the exceptions file",
+ )
+ parser.add_argument(
+ "tree",
+ metavar="node_modules_dir",
+ type=Path,
+ help="Path to search recursively",
+ default=".",
+ )
+ args = parser.parse_args()
+
+ if args.exceptions is None:
+ args.exceptions = {}
+ xname = None
+ else:
+ with args.exceptions as xfile:
+ xname = getattr(xfile, "name", "<exceptions>")
+ args.exceptions = toml.load(args.exceptions)
+ if not isinstance(args.exceptions, dict):
+ parser.error(f"Invalid format in {xname}: not an object")
+ for tablename, table in args.exceptions.items():
+ if not isinstance(table, dict):
+ parser.error(
+ f"Non-table entry in {xname}: {tablename} = {table!r}"
+ )
+ overlay = {}
+ for key, value in table.items():
+ if isinstance(value, str):
+ overlay[key] = [value]
+ elif not isinstance(value, list) or not all(
+ isinstance(entry, str) for entry in value
+ ):
+ parser.error(
+ f"Invalid format in {xname} in [{tablename}]: "
+ f"{key!r} = {value!r}"
+ )
+ table.update(overlay)
+
+ x = args.exceptions.get("any", {})
+ for add in getattr(args, "with"):
+ try:
+ x.update(args.exceptions[add])
+ except KeyError:
+ if xname is None:
+ parser.error(
+ f"No table {add}, as no exceptions file was given"
+ )
+ else:
+ parser.error(f"No table {add} in {xname}")
+ # Store the merged dictionary
+ args.exceptions = x
+
+ return args
+
+
+if __name__ == "__main__":
+ exit(main())
diff --git a/fkill-cli-6.1.0-bundled-licenses.txt b/fkill-cli-6.1.0-bundled-licenses.txt
new file mode 100644
index 0000000..7268bd1
--- /dev/null
+++ b/fkill-cli-6.1.0-bundled-licenses.txt
@@ -0,0 +1,8 @@
+"0BSD"
+"Apache-2.0"
+"BSD-2-Clause"
+"CC0-1.0"
+"CC-BY-3.0"
+"ISC"
+"MIT"
+"(MIT OR CC0-1.0)"
diff --git a/fkill-cli.spec b/fkill-cli.spec
new file mode 100644
index 0000000..b0185ea
--- /dev/null
+++ b/fkill-cli.spec
@@ -0,0 +1,189 @@
+%global npm_name fkill-cli
+
+Name: %{npm_name}
+Version: 6.1.0
+Release: 1%{?dist}
+Summary: Fabulously kill processes
+
+# License of fkill-cli is MIT; others come from bundled dependencies. See
+# the license file %%{npm_name}-%%{version}-bundled-licenses.txt for a list of
+# licenses in NPM format. Each bundled dependency has the license specified in
+# the "license" key of its package.json file.
+License: MIT and 0BSD and ASL 2.0 and BSD and CC0 and CC-BY and ISC and (MIT or CC0)
+%global forgeurl https://github.com/sindresorhus/%{npm_name}
+%forgemeta
+URL: %{forgeurl}
+Source0: https://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
+# The test files are not included in the NPM tarball. Instead of using a
+# dl-tests.sh script source, we add the corresponding GitHub tarball as a
+# second source. This results in some duplication in the source RPM, but it is
+# a lot simpler!
+#
+# Note https://docs.fedoraproject.org/en-US/packaging-guidelines/Node.js/ says,
+# “The canonical method for shipping most node modules is tarballs from the npm
+# registry. […] This method should be preferred to using checkouts from git or
+# automatically generated tarballs from GitHub.” (Otherwise, we might just use
+# the GitHub tarball as the primary source.)
+Source1: %{forgesource}
+# Created with (from nodejs-packaging RPM):
+# nodejs-packaging-bundler %%{npm_name} %%{version}
+Source2: %{npm_name}-%{version}-nm-prod.tgz
+Source3: %{npm_name}-%{version}-nm-dev.tgz
+Source4: %{npm_name}-%{version}-bundled-licenses.txt
+# Hand-written man page
+Source5: fkill.1
+# https://bugzilla.redhat.com/show_bug.cgi?id=1920223
+Source6: check-null-licenses
+Source7: audited-null-licenses.toml
+
+ExclusiveArch: %{nodejs_arches} noarch
+BuildArch: noarch
+
+BuildRequires: nodejs-devel
+BuildRequires: symlinks
+BuildRequires: rsync
+
+# For check-null-licenses
+BuildRequires: python3
+BuildRequires: python3dist(toml)
+
+# Dependencies shell out to ps and ss:
+BuildRequires: procps-ng
+BuildRequires: iproute
+
+Requires: nodejs
+
+# Dependencies shell out to ps and ss:
+Requires: procps-ng
+Requires: iproute
+
+%global test_sources fixture.js test.js
+
+%description
+%{summary}.
+
+
+%prep
+%setup -q -n package
+# Copy in the tests from the GitHub tarball.
+%setup -q -T -D -b 1 -n package
+for src in %{test_sources}
+do
+ cp -p "../%{npm_name}-%{version}/${src}" ./
+done
+
+cp %{SOURCE4} .
+# Set up bundled runtime (prod) node modules.
+tar -xzf %{SOURCE2}
+mkdir -p node_modules
+pushd node_modules
+ln -s ../node_modules_prod/* .
+ln -s ../node_modules_prod/.bin .
+popd
+
+# Fix shebang lines in executables. For some reason, brp-mangle-shebangs does
+# not seem to do this under %%nodejs_sitelib.
+find . -type f -perm /0111 |
+ while read -r fn
+ do
+ if head -n 1 "${fn}" | grep -E '^#!%{_bindir}/env[[:blank:]]+' >/dev/null
+ then
+ sed -r -i '1s/env +//' "${fn}"
+ fi
+ done
+
+# Remove dotfiles (hidden files) from bundled dependencies. As of 6.1.0-1,
+# these include: (.editorconfig .eslintignore .eslintrc .eslintrc.json .gitkeep
+# .istanbul.yml .jscs.json .npmignore .nycrc .travis.yml) and are all not
+# needed at runtime. If a dependency appears with an important hidden file, we
+# may need to exclude it from removal.
+#
+# Also remove zero-length files from bundled dependencies. As of 6.1.0-1, these
+# are only in tests and examples for bundled dependencies, neither of which
+# will be used by the installed package, so it is OK if these portions of the
+# dependencies are broken by the removal.
+find node_modules_prod -type f \( -name '.*' -o -size 0 \) -print -delete
+
+# Remove hidden directories from bundled dependencies, except those known to be
+# useful. If a dependency appears with an important hidden directory, we may
+# need to exclude it from removal.
+#
+# We do need to keep .bin/ directories around, as they will be used in %%check.
+# We can remove them from the installed buildroot, however.
+find node_modules_prod -depth -type d -name '.*' ! -name '.bin' \
+ -printf '--> Remove hidden directory %p\n' -exec rm -rvf '{}' ';'
+
+# Fix some goofy permissions
+find node_modules_prod -type f -name '*.json' -perm /0111 \
+ -execdir chmod -v a-x '{}' '+'
+
+
+# Nothing to build
+
+
+%install
+install -d %{buildroot}%{nodejs_sitelib}/%{npm_name}
+cp -rp \
+ package.json \
+ cli.js \
+ interactive.js \
+ node_modules node_modules_prod \
+ %{buildroot}%{nodejs_sitelib}/%{npm_name}
+
+install -d %{buildroot}%{_bindir}
+# Create an absolute symlink in the buildroot, then convert it to a relative
+# one that will still resolve after installation. Otherwise, to create a
+# relative symlink, we would have to know how deeply nested %%nodejs_sitelib
+# is, which breaks the abstraction of using a macro.
+ln -sf %{buildroot}%{nodejs_sitelib}/%{npm_name}/cli.js \
+ %{buildroot}%{_bindir}/fkill
+symlinks -c -o %{buildroot}%{_bindir}/fkill
+
+install -D -t %{buildroot}%{_mandir}/man1 -p -m 0644 %{SOURCE5}
+
+# We do not need binaries associated with bundled node libraries, so even .bin
+# directories may be removed from the buildroot.
+find %{buildroot}/%{nodejs_sitelib}/%{npm_name}/node_modules_prod \
+ -depth -type d -name '.bin' \
+ -printf '--> Remove hidden directory %p\n' -exec rm -rvf '{}' ';'
+# Also, remove the .bin symlink:
+rm -vf %{buildroot}/%{nodejs_sitelib}/%{npm_name}/node_modules/.bin
+
+
+%check
+%{python3} %{SOURCE6} --exceptions %{SOURCE7} --with prod node_modules_prod
+%{python3} %{SOURCE6} --exceptions %{SOURCE7} --with dev node_modules_dev
+%nodejs_symlink_deps --check
+# We do not call:
+# %%{__nodejs} -e 'require("./")'
+# because this package does not provide an importable module. See the lack of a
+# "main" or "module" key in package.json.
+
+# Set up bundled dev node_modules for testing. We must do this here, not in
+# prep, so that they are not pulled into the installed RPM.
+tar -xzf %{SOURCE3}
+# The usual symlinking approach recommended by the guidelines does not work as
+# some dependencies are split across the prod and dev tarballs due to plugins.
+# Instead, we overlay the two directories using local rsync. This is less
+# space-efficient, but it works!
+rm -rf node_modules
+cp -rp ./node_modules_prod node_modules
+rsync -aqP ./node_modules_dev/ ./node_modules/
+
+# See scripts.test in package.json. We must explicitly specify the test script,
+# or ava recurses inside node_modules*/ looking for tests and finds a great
+# many excuses to crash.
+NODE_ENV=test ./node_modules/.bin/ava test.js
+
+
+%files
+%doc readme.md
+%license license %{npm_name}-%{version}-bundled-licenses.txt
+%{nodejs_sitelib}/%{npm_name}
+%{_bindir}/fkill
+%{_mandir}/man1/fkill.1*
+
+
+%changelog
+* Thu Jun 10 2021 Benjamin A. Beasley <code(a)musicinmybrain.net> - 6.1.0-1
+- Initial package
diff --git a/fkill.1 b/fkill.1
new file mode 100644
index 0000000..faef08a
--- /dev/null
+++ b/fkill.1
@@ -0,0 +1,55 @@
+.color 1
+.TH FKILL "1" "January 2021" "" "User Commands"
+.SH NAME
+fkill \- fabulously kill processes
+.SH SYNOPSIS
+.B fkill
+.RI [< pid | name >\ ...]
+.SH DESCRIPTION
+.P
+To kill a port, prefix it with a colon.
+For example:
+.BR :8080 .
+.P
+Run without arguments to use the interactive interface.
+In interactive mode,
+.B \[u1F6A6]n%
+indicates high CPU usage and
+.B \[u1F40F]n%
+indicates high memory usage.
+.P
+The process name is case insensitive.
+.SH OPTIONS
+.TP
+.BR \-f , \ \-\-force
+Force kill
+.TP
+.BR \-v , \ \-\-verbose
+Show process arguments
+.TP
+.BR \-f , \ \-\-force
+Force kill
+.TP
+.BR \-s , \ \-\-silent
+Silently kill and always exit with code 0
+.SH EXAMPLES
+.P
+.EX
+.B $ fkill 1337
+.EE
+.EX
+.B $ fkill safari
+.EE
+.EX
+.B $ fkill :8080
+.EE
+.EX
+.B $ fkill 1337 safari :8080
+.EE
+.EX
+.B $ fkill
+.EE
+.SH "SEE ALSO"
+.BR kill (1),
+.BR killall (1),
+.BR pkill (1)
diff --git a/sources b/sources
new file mode 100644
index 0000000..1c2e859
--- /dev/null
+++ b/sources
@@ -0,0 +1,4 @@
+SHA512 (fkill-cli-6.1.0-nm-dev.tgz) = 94595ee0859f6b26dafc1b067cf9bf5bd4f54a77fbf057e7dede03e09e39b472ad97cf8c027834bbb9648f8897e9531c320872e14021d3165d122dc3c7c37703
+SHA512 (fkill-cli-6.1.0-nm-prod.tgz) = b66ddd903ea75446978fa7522923af7abd5b91b61e9bc92410683120ca04badf315db8d4529116d265a05289a8c4f9aa1f29d2997e69b24c5662f8188aa6880d
+SHA512 (fkill-cli-6.1.0.tar.gz) = 889ffb7a13e40eb74fdb83e6e37ca37b78db1397a385efb7b8418b6fdb146184d147497583fc8cc992048030617d75dc46ff3b27c1d9b13b79d5d496e04e81f0
+SHA512 (fkill-cli-6.1.0.tgz) = ba7b55b87804423c135d01a259cc0c4e2d1492cea1b7d47985bd660d3e001108ad67fcfc52b86fb1e42c1840b79151237f143a6dd98231a03f84a4d9e5a403ac
3 years