From 55ee76246874af48cbd278de6d61d04eba9db9f0 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Wed, 19 Apr 2023 19:28:15 +0200 Subject: [PATCH] Initial import (ctor 0.1 compat package) --- .gitignore | 1 + README.md | 3 -- rust-ctor0.1.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 .gitignore delete mode 100644 README.md create mode 100644 rust-ctor0.1.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5ab3d3e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ctor-0.1.26.crate diff --git a/README.md b/README.md deleted file mode 100644 index f7e6553..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-ctor0.1 - -The rust-ctor0.1 package diff --git a/rust-ctor0.1.spec b/rust-ctor0.1.spec new file mode 100644 index 0000000..2dba94b --- /dev/null +++ b/rust-ctor0.1.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 24 +# * no tests are shipped with the published crates +# * example code adds an unnecessary dependency on libc-print (not packaged) +%bcond_with check +%global debug_package %{nil} + +%global crate ctor + +Name: rust-ctor0.1 +Version: 0.1.26 +Release: %autorelease +Summary: __attribute__((constructor)) for Rust + +License: Apache-2.0 OR MIT +URL: https://crates.io/crates/ctor +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +__attribute__((constructor)) for Rust.} + +%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_no_tilde} -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/sources b/sources new file mode 100644 index 0000000..a70d4b3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ctor-0.1.26.crate) = 3a3d60c976ec02a9edfe04470af4b04b02601c48e2a007393cedfef5c13e22bca58630e9e885e635a71aabc3e0ad8fb70995876551cdbc6a31029d8d2bc2e86d