From 6ac48d0134972724fbadd7e8fe8b9e17a167e727 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 5 Jan 2025 16:19:10 +0300 Subject: [PATCH] import rust-notify-6.1.1-3.el10 --- .gitignore | 1 + .rust-notify.metadata | 1 + SOURCES/notify-fix-metadata-auto.diff | 54 +++++++ SOURCES/notify-fix-metadata.diff | 18 +++ SPECS/rust-notify.spec | 211 ++++++++++++++++++++++++++ 5 files changed, 285 insertions(+) create mode 100644 .gitignore create mode 100644 .rust-notify.metadata create mode 100644 SOURCES/notify-fix-metadata-auto.diff create mode 100644 SOURCES/notify-fix-metadata.diff create mode 100644 SPECS/rust-notify.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6211715 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/notify-6.1.1.crate diff --git a/.rust-notify.metadata b/.rust-notify.metadata new file mode 100644 index 0000000..065bcb4 --- /dev/null +++ b/.rust-notify.metadata @@ -0,0 +1 @@ +16c0fcc4e2de9b3413b7cb7fb8bcb96e728d6125 SOURCES/notify-6.1.1.crate diff --git a/SOURCES/notify-fix-metadata-auto.diff b/SOURCES/notify-fix-metadata-auto.diff new file mode 100644 index 0000000..37acb47 --- /dev/null +++ b/SOURCES/notify-fix-metadata-auto.diff @@ -0,0 +1,54 @@ +--- notify-6.1.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ notify-6.1.1/Cargo.toml 2023-12-01T23:52:44.646322+00:00 +@@ -69,20 +69,12 @@ + "macos_fsevent", + "crossbeam-channel", + ] +-macos_fsevent = ["fsevent-sys"] ++macos_fsevent = [] + macos_kqueue = [ +- "kqueue", + "mio", + ] + manual_tests = [] + timing_tests = [] +- +-[target."cfg(any(target_os=\"freebsd\", target_os=\"openbsd\", target_os = \"netbsd\", target_os = \"dragonflybsd\"))".dependencies.kqueue] +-version = "^1.0.4" +- +-[target."cfg(any(target_os=\"freebsd\", target_os=\"openbsd\", target_os = \"netbsd\", target_os = \"dragonflybsd\"))".dependencies.mio] +-version = "0.8" +-features = ["os-ext"] + + [target."cfg(any(target_os=\"linux\", target_os=\"android\"))".dependencies.inotify] + version = "0.9" +@@ -92,29 +84,3 @@ + version = "0.8" + features = ["os-ext"] + +-[target."cfg(target_os=\"macos\")".dependencies.bitflags] +-version = "2.3.0" +- +-[target."cfg(target_os=\"macos\")".dependencies.fsevent-sys] +-version = "4" +-optional = true +- +-[target."cfg(target_os=\"macos\")".dependencies.kqueue] +-version = "1.0" +-optional = true +- +-[target."cfg(target_os=\"macos\")".dependencies.mio] +-version = "0.8" +-features = ["os-ext"] +-optional = true +- +-[target."cfg(windows)".dependencies.windows-sys] +-version = "0.48.0" +-features = [ +- "Win32_System_Threading", +- "Win32_Foundation", +- "Win32_Storage_FileSystem", +- "Win32_Security", +- "Win32_System_WindowsProgramming", +- "Win32_System_IO", +-] diff --git a/SOURCES/notify-fix-metadata.diff b/SOURCES/notify-fix-metadata.diff new file mode 100644 index 0000000..b71a20b --- /dev/null +++ b/SOURCES/notify-fix-metadata.diff @@ -0,0 +1,18 @@ +--- notify-6.1.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ notify-6.1.1/Cargo.toml 2023-12-01T23:53:26.299516+00:00 +@@ -65,14 +65,7 @@ + version = "3.2.0" + + [features] +-default = [ +- "macos_fsevent", +- "crossbeam-channel", +-] +-macos_fsevent = [] +-macos_kqueue = [ +- "mio", +-] ++default = ["crossbeam-channel"] + manual_tests = [] + timing_tests = [] + diff --git a/SPECS/rust-notify.spec b/SPECS/rust-notify.spec new file mode 100644 index 0000000..ab1a861 --- /dev/null +++ b/SPECS/rust-notify.spec @@ -0,0 +1,211 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 25 +%bcond_without check +%global debug_package %{nil} + +%global crate notify + +Name: rust-notify +Version: 6.1.1 +Release: %autorelease +Summary: Cross-platform filesystem notification library + +License: CC0-1.0 +URL: https://crates.io/crates/notify +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: notify-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * remove macOS-specific features +Patch: notify-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Cross-platform filesystem notification library.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-CC0 +%doc %{crate_instdir}/README.md +%{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}+crossbeam-channel-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+crossbeam-channel-devel %{_description} + +This package contains library source intended for building other packages which +use the "crossbeam-channel" feature of the "%{crate}" crate. + +%files -n %{name}+crossbeam-channel-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+manual_tests-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+manual_tests-devel %{_description} + +This package contains library source intended for building other packages which +use the "manual_tests" feature of the "%{crate}" crate. + +%files -n %{name}+manual_tests-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+timing_tests-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+timing_tests-devel %{_description} + +This package contains library source intended for building other packages which +use the "timing_tests" feature of the "%{crate}" crate. + +%files -n %{name}+timing_tests-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 6.1.1-3 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Sat Jul 20 2024 Fedora Release Engineering - 6.1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Fri Jan 26 2024 Fedora Release Engineering - 6.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Dec 01 2023 Fabio Valentini - 6.1.1-1 +- Update to version 6.1.1; Fixes RHBZ#2207808 + +* Sun Jul 30 2023 Fabio Valentini - 5.2.0-3 +- Clarify license according after further legal review + +* Fri Jul 21 2023 Fedora Release Engineering - 5.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sun May 21 2023 Aleksei Bavshin - 5.2.0-1 +- Update to 5.2.0 +- Drop inotify dependency downgrade patch + +* Tue Apr 04 2023 Aleksei Bavshin - 5.1.0-1 +- Update to 5.1.0 + +* Mon Feb 27 2023 Michel Alexandre Salim - 4.0.17-1 +- Update to 4.0.17 +- Convert license declaration to SPDX + +* Sat Jan 21 2023 Fedora Release Engineering - 4.0.15-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Sat Jul 23 2022 Fedora Release Engineering - 4.0.15-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Fri Jan 21 2022 Fedora Release Engineering - 4.0.15-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Tue Jul 27 2021 Fedora Release Engineering - 4.0.15-6 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 4.0.15-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Aug 01 2020 Fedora Release Engineering - 4.0.15-4 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 4.0.15-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 4.0.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jan 25 2020 Josh Stone - 4.0.15-1 +- Update to 4.0.15 + +* Tue Dec 17 10:30:17 CET 2019 Igor Gnatenko - 4.0.14-2 +- Update inotify to 0.8 + +* Sat Nov 23 2019 Josh Stone - 4.0.14-1 +- Update to 4.0.14 + +* Fri Jul 26 2019 Fedora Release Engineering - 4.0.12-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 22 23:13:10 CEST 2019 Igor Gnatenko - 4.0.12-2 +- Regenerate + +* Thu May 30 17:45:19 CEST 2019 Igor Gnatenko - 4.0.12-1 +- Update to 4.0.12 + +* Thu May 09 08:25:27 CEST 2019 Igor Gnatenko - 4.0.11-1 +- Update to 4.0.11 + +* Mon Mar 11 2019 Igor Gnatenko - 4.0.10-1 +- Initial package + +## END: Generated by rpmautospec