From 605598758fd1c57327eb03843d3219984365d1bb Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Tue, 28 Feb 2023 12:47:59 +0900 Subject: [PATCH] Bump to rust-semver 1.0.16 --- packaging/rust-semver.manifest | 5 +++ packaging/rust-semver.spec | 65 ++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 packaging/rust-semver.manifest create mode 100644 packaging/rust-semver.spec diff --git a/packaging/rust-semver.manifest b/packaging/rust-semver.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/rust-semver.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/rust-semver.spec b/packaging/rust-semver.spec new file mode 100644 index 0000000..b925043 --- /dev/null +++ b/packaging/rust-semver.spec @@ -0,0 +1,65 @@ +# Generated by rust2rpm 23 +%global _rpm_strip_disable 1 +%global debug_package %{nil} + +%global crate semver +%global real_crate_name semver +%global rustc_edition 2018 + +Name: rust-semver +Version: 1.0.16 +Release: 1 +Summary: Parser and evaluator for Cargo's flavor of Semantic Versioning + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/semver +Source: %{crate}-%{version}.tar.gz +Source1: %{name}.manifest + +# ========================================================== +# BuildRequires +# specifies build-time dependencies for the package +# ========================================================== +BuildRequires: rust +BuildRequires: rust-serde + + +%description +Parser and evaluator for Cargo's flavor of Semantic Versioning. + +%prep +%setup -q +cp %{SOURCE1} . + +# ========================================================== +# build section +# crate-type : dylib, proc-macro, cdylib, bin, etc. +# ========================================================== +%build +%{rustc_std_build} --crate-type=dylib \ + --crate-name=%{real_crate_name} \ + %{?rustc_edition:--edition=%{rustc_edition}} \ + --cfg='feature="std"' \ + ./src/lib.rs + +# ========================================================== +# install section +# ========================================================== +%install +install -d -m 0755 %{buildroot}%{_rust_libdir} +install -m 0644 lib%{real_crate_name}.so %{buildroot}/%{_rust_libdir}/lib%{real_crate_name}.so + +%clean + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +# ========================================================== +# files section +# ========================================================== +%files +%manifest %{name}.manifest +%license LICENSE-APACHE +%license LICENSE-MIT +%{_rust_libdir}/lib%{real_crate_name}.so -- 2.34.1