commit
59bca9e722
@ -0,0 +1,2 @@
|
|||||||
|
SOURCES/prefixdevname-0.2.0-vendor.tar.gz
|
||||||
|
SOURCES/prefixdevname-0.2.0.crate
|
@ -0,0 +1,2 @@
|
|||||||
|
1134c9eb9903244544340fd808c6932b48d25e30 SOURCES/prefixdevname-0.2.0-vendor.tar.gz
|
||||||
|
757fa7e51735d81114224dafe7aa200f3bb40f0b SOURCES/prefixdevname-0.2.0.crate
|
@ -0,0 +1,25 @@
|
|||||||
|
From 27c6638477dc56d95469aa83ec47c839a23160fc Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michal Sekletar <msekleta@redhat.com>
|
||||||
|
Date: Thu, 30 Mar 2023 10:56:15 +0200
|
||||||
|
Subject: [PATCH] Drop unnecessary cast
|
||||||
|
|
||||||
|
---
|
||||||
|
src/sema.rs | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/src/sema.rs b/src/sema.rs
|
||||||
|
index 9504970..e79e5d0 100644
|
||||||
|
--- a/src/sema.rs
|
||||||
|
+++ b/src/sema.rs
|
||||||
|
@@ -16,7 +16,7 @@ impl Semaphore {
|
||||||
|
let s;
|
||||||
|
unsafe {
|
||||||
|
s = libc::sem_open(
|
||||||
|
- raw_sema_name.as_ptr() as *const i8,
|
||||||
|
+ raw_sema_name.as_ptr(),
|
||||||
|
libc::O_CREAT,
|
||||||
|
libc::S_IRUSR | libc::S_IWUSR,
|
||||||
|
1,
|
||||||
|
--
|
||||||
|
2.38.1
|
||||||
|
|
@ -0,0 +1,99 @@
|
|||||||
|
## START: Set by rpmautospec
|
||||||
|
## (rpmautospec version 0.6.1)
|
||||||
|
## RPMAUTOSPEC: autorelease, autochangelog
|
||||||
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||||
|
release_number = 2;
|
||||||
|
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 23
|
||||||
|
%bcond_without check
|
||||||
|
|
||||||
|
%global crate prefixdevname
|
||||||
|
|
||||||
|
Name: rust-prefixdevname
|
||||||
|
Version: 0.2.0
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: Udev helper utility that provides network interface naming using user defined prefix
|
||||||
|
|
||||||
|
License: MIT
|
||||||
|
URL: https://crates.io/crates/prefixdevname
|
||||||
|
Source: %{crates_source}
|
||||||
|
# can be generated with make vendor in the sources
|
||||||
|
Source: %{crate}-%{version}-vendor.tar.gz
|
||||||
|
# Upstream PR (https://github.com/msekletar/prefixdevname/pull/29)
|
||||||
|
Patch0001: 0001-Drop-unnecessary-cast.patch
|
||||||
|
|
||||||
|
%if 0%{?rhel}
|
||||||
|
BuildRequires: rust-toolset
|
||||||
|
%else
|
||||||
|
BuildRequires: rust-packaging >= 23
|
||||||
|
%endif
|
||||||
|
BuildRequires: pkgconfig(libudev)
|
||||||
|
%if %{with check}
|
||||||
|
BuildRequires: umockdev-devel
|
||||||
|
%endif
|
||||||
|
# Tests fail on i686 but this package is not multilib so let's not build for this arch
|
||||||
|
ExcludeArch: %{ix86}
|
||||||
|
|
||||||
|
%global _description %{expand:
|
||||||
|
Udev helper utility that provides network interface naming using user defined prefix.}
|
||||||
|
|
||||||
|
%description %{_description}
|
||||||
|
|
||||||
|
%package -n %{crate}
|
||||||
|
Summary: %{summary}
|
||||||
|
License: MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) AND Unicode-DFS-2016
|
||||||
|
|
||||||
|
%description -n %{crate} %{_description}
|
||||||
|
|
||||||
|
%files -n %{crate}
|
||||||
|
%license LICENSE
|
||||||
|
%license LICENSE.dependencies
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%license cargo-vendor.txt
|
||||||
|
%endif
|
||||||
|
%doc README.md
|
||||||
|
%{_prefix}/lib/udev/prefixdevname
|
||||||
|
%{_prefix}/lib/udev/rules.d/71-prefixdevname.rules
|
||||||
|
%{_prefix}/lib/dracut/modules.d/71prefixdevname/
|
||||||
|
%{_prefix}/lib/dracut/modules.d/71prefixdevname-tools/
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{crate}-%{version_no_tilde} -p1 %{?rhel:-a1}
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%cargo_prep -v vendor
|
||||||
|
rm -f Cargo.lock
|
||||||
|
%else
|
||||||
|
%cargo_prep
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%cargo_generate_buildrequires
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%build
|
||||||
|
%cargo_build
|
||||||
|
%cargo_license_summary
|
||||||
|
%{cargo_license} > LICENSE.dependencies
|
||||||
|
%if 0%{?rhel}
|
||||||
|
%cargo_vendor_manifest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
%if %{with check}
|
||||||
|
%check
|
||||||
|
%cargo_test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
## START: Generated by rpmautospec
|
||||||
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 0.2.0-2
|
||||||
|
- Bump release for June 2024 mass rebuild
|
||||||
|
|
||||||
|
* Fri May 17 2024 Michal Sekletar <msekleta@redhat.com> - 0.2.0-1
|
||||||
|
- Initial import for CentOS Stream 10
|
||||||
|
## END: Generated by rpmautospec
|
Loading…
Reference in new issue