From 50a96cc90cc6257664d1914178717140d3922a3c Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Mon, 2 Jan 2023 18:42:06 -0600 Subject: [PATCH] Initial Fedora package Signed-off-by: Michel Alexandre Salim --- .gitignore | 1 + rust-rxml_proc.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 71 insertions(+) create mode 100644 .gitignore create mode 100644 rust-rxml_proc.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b6d5dc7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/rxml_proc-0.8.2.crate diff --git a/rust-rxml_proc.spec b/rust-rxml_proc.spec new file mode 100644 index 0000000..b1a4b9d --- /dev/null +++ b/rust-rxml_proc.spec @@ -0,0 +1,69 @@ +# Generated by rust2rpm 23 +%bcond_without check +%global debug_package %{nil} + +%global crate rxml_proc + +Name: rust-rxml_proc +Version: 0.8.2 +Release: %autorelease +Summary: Macros to perform compile-time XML string validations + +License: MIT +URL: https://crates.io/crates/rxml_proc +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Macros to, at compile time, validate strings against the CData, Name and NCName +productions from the XML 1.0 grammar.} + +%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}/COPYING +%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..e5fd502 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (rxml_proc-0.8.2.crate) = 9b9e5fb8249b87d665d34bb9619416ca6eead22165a2259d336aff43ceef04284fa0543a8118df121135e9ab5dd5cefec15378cf5beca8d15ab1fbee1145ef1e