From 8c212038d379d7071fbd1af4482b4fed7909368e Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Mon, 26 Dec 2022 21:53:26 -0600 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-minidom.spec | 70 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 72 insertions(+) create mode 100644 .gitignore create mode 100644 rust-minidom.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ca5cdf4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/minidom-0.15.0.crate diff --git a/rust-minidom.spec b/rust-minidom.spec new file mode 100644 index 0000000..b8241f6 --- /dev/null +++ b/rust-minidom.spec @@ -0,0 +1,70 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate minidom + +Name: rust-minidom +Version: 0.15.0 +Release: %autorelease +Summary: Small, simple DOM implementation on top of quick-xml, targeting the subset of XML useful for XMPP + +License: MPL-2.0 +URL: https://crates.io/crates/minidom +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Small, simple DOM implementation on top of quick-xml, targeting the subset of +XML useful for XMPP.} + +%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 + +%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..949a07c --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (minidom-0.15.0.crate) = 96a148321dd788c35a9047f6f3d2c46563343ca24fdee930771493cbe2e5154058bfa2035ead316b1edcd3ba45eb789a0438de7b97a4aba3d97297d820f02b55