diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fdd14d2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/pure-rust-locales-0.5.2.crate diff --git a/README.md b/README.md deleted file mode 100644 index 8fa60eb..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-pure-rust-locales - -The rust-pure-rust-locales package diff --git a/rust-pure-rust-locales.spec b/rust-pure-rust-locales.spec new file mode 100644 index 0000000..675f2d9 --- /dev/null +++ b/rust-pure-rust-locales.spec @@ -0,0 +1,76 @@ +# Generated by rust2rpm 13 +%bcond_without check +%global debug_package %{nil} + +%global crate pure-rust-locales + +Name: rust-%{crate} +Version: 0.5.2 +Release: 1%{?dist} +Summary: Pure Rust locales imported directly from the GNU C Library + +# Upstream license specification: MIT +# https://github.com/cecton/pure-rust-locales/issues/1 +License: MIT +URL: https://crates.io/crates/pure-rust-locales +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} +%if %{__cargo_skip_build} +BuildArch: noarch +%endif + +BuildRequires: rust-packaging + +%global _description %{expand: +Pure Rust locales imported directly from the GNU C Library. `LC_COLLATE` and +`LC_CTYPE` are not yet supported.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%doc README.md +%{cargo_registry}/%{crate}-%{version_no_tilde}/ + +%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 "default" feature of "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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 +* Wed Sep 16 2020 Fabio Valentini - 0.5.2-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..59ef7e3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pure-rust-locales-0.5.2.crate) = 98b18ff45eb6b77bf8c590b59a2f0afd40aac045e2a3732ca2372e1876e6d3209e57d02c18f167ac969df3c4905c81de01a7c4f73594e7b0fcf6fc22b1f0536d