From 1cf3a5811afa519c921658ab40196dd547910b71 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 20 Sep 2017 22:32:05 +0200 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-unicode-xid.spec | 63 +++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 65 insertions(+) create mode 100644 .gitignore create mode 100644 rust-unicode-xid.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..50bc6e9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/unicode-xid-0.1.0.crate diff --git a/rust-unicode-xid.spec b/rust-unicode-xid.spec new file mode 100644 index 0000000..9e3b896 --- /dev/null +++ b/rust-unicode-xid.spec @@ -0,0 +1,63 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate unicode-xid + +Name: rust-%{crate} +Version: 0.1.0 +Release: 1%{?dist} +Summary: Determine whether characters have XID_Start/XID_Continue properties + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/unicode-xid +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +Determine whether characters have the XID_Start or XID_Continue +properties according to Unicode Standard Annex #31. + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +rm -vrf .gitignore .travis.yml scripts +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENSE-MIT LICENSE-APACHE COPYRIGHT +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Thu Jun 15 2017 Igor Gnatenko - 0.1.0-1 +- Update to 0.1.0 + +* Wed Jun 14 2017 Igor Gnatenko - 0.0.4-2 +- Port to use rust-packaging + +* Sat Feb 18 2017 Igor Gnatenko - 0.0.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..2cb37e2 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (unicode-xid-0.1.0.crate) = cc5343e2166938322cfd7c73f1f918f2a9c46846ac0ef55933d1e44cdfaf6f7da2b7ff18b68e356c47b6d8ba5565eda0db42c347dcbde830683f341ac2b1849d