From 2c4154a25faab10ab056ee7c2ce69a1026da7aed Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Thu, 28 Mar 2024 20:35:13 +0100 Subject: [PATCH] Dependencies Round 4 Signed-off-by: Cristian Le --- .packit.yaml | 56 ++++++++ rust-approx/rust-approx.spec | 92 ++++++++++++ rust-approx/rust2rpm.toml | 0 .../core_affinity-fix-metadata-auto.diff | 12 ++ rust-core_affinity/rust-core_affinity.spec | 72 ++++++++++ rust-core_affinity/rust2rpm.toml | 0 rust-defmac/rust-defmac.spec | 70 ++++++++++ rust-defmac/rust2rpm.toml | 0 rust-finl_unicode/rust-finl_unicode.spec | 100 +++++++++++++ rust-finl_unicode/rust2rpm.toml | 5 + rust-pnet_base/rust-pnet_base.spec | 94 +++++++++++++ rust-pnet_base/rust2rpm.toml | 0 rust-pnet_sys/pnet_sys-fix-metadata-auto.diff | 12 ++ rust-pnet_sys/rust-pnet_sys.spec | 72 ++++++++++ rust-pnet_sys/rust2rpm.toml | 0 rust-rand_distr/rust-rand_distr.spec | 131 ++++++++++++++++++ rust-rand_distr/rust2rpm.toml | 0 rust-termimad/rust-termimad.spec | 81 +++++++++++ rust-termimad/rust2rpm.toml | 0 19 files changed, 797 insertions(+) create mode 100644 rust-approx/rust-approx.spec create mode 100644 rust-approx/rust2rpm.toml create mode 100644 rust-core_affinity/core_affinity-fix-metadata-auto.diff create mode 100644 rust-core_affinity/rust-core_affinity.spec create mode 100644 rust-core_affinity/rust2rpm.toml create mode 100644 rust-defmac/rust-defmac.spec create mode 100644 rust-defmac/rust2rpm.toml create mode 100644 rust-finl_unicode/rust-finl_unicode.spec create mode 100644 rust-finl_unicode/rust2rpm.toml create mode 100644 rust-pnet_base/rust-pnet_base.spec create mode 100644 rust-pnet_base/rust2rpm.toml create mode 100644 rust-pnet_sys/pnet_sys-fix-metadata-auto.diff create mode 100644 rust-pnet_sys/rust-pnet_sys.spec create mode 100644 rust-pnet_sys/rust2rpm.toml create mode 100644 rust-rand_distr/rust-rand_distr.spec create mode 100644 rust-rand_distr/rust2rpm.toml create mode 100644 rust-termimad/rust-termimad.spec create mode 100644 rust-termimad/rust2rpm.toml diff --git a/.packit.yaml b/.packit.yaml index 693b2db..f620801 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -351,6 +351,38 @@ packages: upstream_package_name: sketches-ddsketch downstream_package_name: rust-sketches-ddsketch actions: *Actions-Package-NewOrUpdate + rust-finl_unicode: + # https://github.com/dahosek/finl_unicode + paths: [ rust-finl_unicode ] + specfile_path: rust-finl_unicode.spec + upstream_package_name: finl_unicode + downstream_package_name: rust-finl_unicode + # Patch `criterion` out + actions: + fix-spec-file: [] + create-archive: *Create-archive-crate + get-current-version: *Get-Version + rust-core_affinity: + # https://github.com/Elzair/core_affinity_rs + paths: [ rust-core_affinity ] + specfile_path: rust-core_affinity.spec + upstream_package_name: core_affinity + downstream_package_name: rust-core_affinity + actions: *Actions-Package-NewOrUpdate + rust-termimad: + # https://github.com/Canop/termimad + paths: [ rust-termimad ] + specfile_path: rust-termimad.spec + upstream_package_name: termimad + downstream_package_name: rust-termimad + actions: *Actions-Package-NewOrUpdate + rust-defmac: + # https://github.com/bluss/defmac + paths: [ rust-defmac ] + specfile_path: rust-defmac.spec + upstream_package_name: defmac + downstream_package_name: rust-defmac + actions: *Actions-Package-NewOrUpdate # Upstream is working on it: rust-argon2: @@ -538,6 +570,30 @@ packages: upstream_package_name: ordered-float downstream_package_name: rust-ordered-float actions: *Actions-Package-NewOrUpdate + rust-pnet_base: + paths: [ rust-pnet_base ] + specfile_path: rust-pnet_base.spec + upstream_package_name: pnet_base + downstream_package_name: rust-pnet_base + actions: *Actions-Package-NewOrUpdate + rust-pnet_sys: + paths: [ rust-pnet_sys ] + specfile_path: rust-pnet_sys.spec + upstream_package_name: pnet_sys + downstream_package_name: rust-pnet_sys + actions: *Actions-Package-NewOrUpdate + rust-approx: + paths: [ rust-approx ] + specfile_path: rust-approx.spec + upstream_package_name: approx + downstream_package_name: rust-approx + actions: *Actions-Package-NewOrUpdate + rust-rand_distr: + paths: [ rust-rand_distr ] + specfile_path: rust-rand_distr.spec + upstream_package_name: rand_distr + downstream_package_name: rust-rand_distr + actions: *Actions-Package-NewOrUpdate srpm_build_deps: - rust2rpm diff --git a/rust-approx/rust-approx.spec b/rust-approx/rust-approx.spec new file mode 100644 index 0000000..448424c --- /dev/null +++ b/rust-approx/rust-approx.spec @@ -0,0 +1,92 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate approx + +Name: rust-approx +Version: 0.5.1 +Release: %autorelease +Summary: Approximate floating point equality comparisons and assertions + +License: Apache-2.0 +URL: https://crates.io/crates/approx +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Approximate floating point equality comparisons and assertions.} + +%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 +%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}+num-complex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+num-complex-devel %{_description} + +This package contains library source intended for building other packages which +use the "num-complex" feature of the "%{crate}" crate. + +%files -n %{name}+num-complex-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-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 +%autochangelog diff --git a/rust-approx/rust2rpm.toml b/rust-approx/rust2rpm.toml new file mode 100644 index 0000000..e69de29 diff --git a/rust-core_affinity/core_affinity-fix-metadata-auto.diff b/rust-core_affinity/core_affinity-fix-metadata-auto.diff new file mode 100644 index 0000000..ad7be87 --- /dev/null +++ b/rust-core_affinity/core_affinity-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- core_affinity-0.8.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ core_affinity-0.8.1/Cargo.toml 2024-03-29T19:34:35.902008+00:00 +@@ -33,9 +33,3 @@ + [target."cfg(any(target_os = \"android\", target_os = \"linux\", target_os = \"macos\", target_os = \"freebsd\"))".dependencies.libc] + version = "^0.2.30" + +-[target."cfg(target_os = \"windows\")".dependencies.winapi] +-version = "^0.3.9" +-features = [ +- "processthreadsapi", +- "winbase", +-] diff --git a/rust-core_affinity/rust-core_affinity.spec b/rust-core_affinity/rust-core_affinity.spec new file mode 100644 index 0000000..0cfdfa8 --- /dev/null +++ b/rust-core_affinity/rust-core_affinity.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate core_affinity + +Name: rust-core_affinity +Version: 0.8.1 +Release: %autorelease +Summary: Manages CPU affinities + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/core_affinity +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: core_affinity-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Manages CPU affinities.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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 + +%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 +%autochangelog diff --git a/rust-core_affinity/rust2rpm.toml b/rust-core_affinity/rust2rpm.toml new file mode 100644 index 0000000..e69de29 diff --git a/rust-defmac/rust-defmac.spec b/rust-defmac/rust-defmac.spec new file mode 100644 index 0000000..0e93a12 --- /dev/null +++ b/rust-defmac/rust-defmac.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate defmac + +Name: rust-defmac +Version: 0.2.1 +Release: %autorelease +Summary: Macro to define lambda-like macros inline + +# Upstream license specification: Apache-2.0/MIT +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/defmac +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +A macro to define lambda-like macros inline.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/README.rst +%{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 + +%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 +%autochangelog diff --git a/rust-defmac/rust2rpm.toml b/rust-defmac/rust2rpm.toml new file mode 100644 index 0000000..e69de29 diff --git a/rust-finl_unicode/rust-finl_unicode.spec b/rust-finl_unicode/rust-finl_unicode.spec new file mode 100644 index 0000000..ed6bca5 --- /dev/null +++ b/rust-finl_unicode/rust-finl_unicode.spec @@ -0,0 +1,100 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate finl_unicode + +Name: rust-finl_unicode +Version: 1.2.0 +Release: %autorelease +Summary: Library for handling Unicode functionality for finl + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/finl_unicode +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 +# Do downstream crate metadata changes programmatically in %%prep. Since %%prep +# runs before %%generate_buildrequires, we must add the following manually +# rather than generating a dynamic BuildRequires via rust2rpm.toml. +BuildRequires: tomcli + +%global _description %{expand: +Library for handling Unicode functionality for finl (categories and +grapheme segmentation).} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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}+categories-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+categories-devel %{_description} + +This package contains library source intended for building other packages which +use the "categories" feature of the "%{crate}" crate. + +%files -n %{name}+categories-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+grapheme_clusters-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+grapheme_clusters-devel %{_description} + +This package contains library source intended for building other packages which +use the "grapheme_clusters" feature of the "%{crate}" crate. + +%files -n %{name}+grapheme_clusters-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep +# Do not depend on criterion; it is needed only for benchmarks. +tomcli set Cargo.toml del dev-dependencies.criterion + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/rust-finl_unicode/rust2rpm.toml b/rust-finl_unicode/rust2rpm.toml new file mode 100644 index 0000000..5eee6c1 --- /dev/null +++ b/rust-finl_unicode/rust2rpm.toml @@ -0,0 +1,5 @@ +[scripts.prep] +post = [ + "# Do not depend on criterion; it is needed only for benchmarks.", + "tomcli set Cargo.toml del dev-dependencies.criterion", +] diff --git a/rust-pnet_base/rust-pnet_base.spec b/rust-pnet_base/rust-pnet_base.spec new file mode 100644 index 0000000..f078438 --- /dev/null +++ b/rust-pnet_base/rust-pnet_base.spec @@ -0,0 +1,94 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate pnet_base + +Name: rust-pnet_base +Version: 0.34.0 +Release: %autorelease +Summary: Fundamental base types and code used by pnet + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/pnet_base +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Fundamental base types and code used by pnet.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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}+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}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-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 +%autochangelog diff --git a/rust-pnet_base/rust2rpm.toml b/rust-pnet_base/rust2rpm.toml new file mode 100644 index 0000000..e69de29 diff --git a/rust-pnet_sys/pnet_sys-fix-metadata-auto.diff b/rust-pnet_sys/pnet_sys-fix-metadata-auto.diff new file mode 100644 index 0000000..4d4cc34 --- /dev/null +++ b/rust-pnet_sys/pnet_sys-fix-metadata-auto.diff @@ -0,0 +1,12 @@ +--- pnet_sys-0.34.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pnet_sys-0.34.0/Cargo.toml 2024-03-29T19:30:57.959380+00:00 +@@ -33,9 +33,3 @@ + [dependencies.libc] + version = "0.2.147" + +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3.9" +-features = [ +- "winsock2", +- "ws2ipdef", +-] diff --git a/rust-pnet_sys/rust-pnet_sys.spec b/rust-pnet_sys/rust-pnet_sys.spec new file mode 100644 index 0000000..4fa1c00 --- /dev/null +++ b/rust-pnet_sys/rust-pnet_sys.spec @@ -0,0 +1,72 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate pnet_sys + +Name: rust-pnet_sys +Version: 0.34.0 +Release: %autorelease +Summary: Access to network related system function and calls + +# Upstream license specification: MIT/Apache-2.0 +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/pnet_sys +Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: pnet_sys-fix-metadata-auto.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Access to network related system function and calls.} + +%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-APACHE +%license %{crate_instdir}/LICENSE-MIT +%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 + +%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 +%autochangelog diff --git a/rust-pnet_sys/rust2rpm.toml b/rust-pnet_sys/rust2rpm.toml new file mode 100644 index 0000000..e69de29 diff --git a/rust-rand_distr/rust-rand_distr.spec b/rust-rand_distr/rust-rand_distr.spec new file mode 100644 index 0000000..85e316b --- /dev/null +++ b/rust-rand_distr/rust-rand_distr.spec @@ -0,0 +1,131 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate rand_distr + +Name: rust-rand_distr +Version: 0.4.3 +Release: %autorelease +Summary: Sampling from random number distributions + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/rand_distr +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Sampling from random number distributions.} + +%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}/COPYRIGHT +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.md +%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}+alloc-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+alloc-devel %{_description} + +This package contains library source intended for building other packages which +use the "alloc" feature of the "%{crate}" crate. + +%files -n %{name}+alloc-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}+serde1-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde1-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde1" feature of the "%{crate}" crate. + +%files -n %{name}+serde1-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std-devel %{_description} + +This package contains library source intended for building other packages which +use the "std" feature of the "%{crate}" crate. + +%files -n %{name}+std-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+std_math-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+std_math-devel %{_description} + +This package contains library source intended for building other packages which +use the "std_math" feature of the "%{crate}" crate. + +%files -n %{name}+std_math-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 +%autochangelog diff --git a/rust-rand_distr/rust2rpm.toml b/rust-rand_distr/rust2rpm.toml new file mode 100644 index 0000000..e69de29 diff --git a/rust-termimad/rust-termimad.spec b/rust-termimad/rust-termimad.spec new file mode 100644 index 0000000..7009555 --- /dev/null +++ b/rust-termimad/rust-termimad.spec @@ -0,0 +1,81 @@ +# Generated by rust2rpm 26 +%bcond_without check +%global debug_package %{nil} + +%global crate termimad + +Name: rust-termimad +Version: 0.29.1 +Release: %autorelease +Summary: Markdown Renderer for the Terminal + +License: MIT +URL: https://crates.io/crates/termimad +Source: %{crates_source} + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Markdown Renderer for the Terminal.} + +%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 +%doc %{crate_instdir}/CHANGELOG.md +%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}+special-renders-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+special-renders-devel %{_description} + +This package contains library source intended for building other packages which +use the "special-renders" feature of the "%{crate}" crate. + +%files -n %{name}+special-renders-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 +%autochangelog diff --git a/rust-termimad/rust2rpm.toml b/rust-termimad/rust2rpm.toml new file mode 100644 index 0000000..e69de29