diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5cd84d1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ansi_term-0.10.2.crate diff --git a/rust-ansi_term.spec b/rust-ansi_term.spec new file mode 100644 index 0000000..d8fc79a --- /dev/null +++ b/rust-ansi_term.spec @@ -0,0 +1,61 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate ansi_term + +Name: rust-%{crate} +Version: 0.10.2 +Release: 1%{?dist} +Summary: Library for ANSI terminal colours and styles (bold, underline) + +License: MIT +URL: https://crates.io/crates/ansi_term +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 +Library for ANSI terminal colours and styles (bold, underline). + +This package contains library source intended for building other packages +which use %{crate} from crates.io. + +%prep +%autosetup -n %{crate}-%{version} -p1 +%cargo_prep + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%files devel +%license LICENCE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Sat Nov 04 2017 Igor Gnatenko - 0.10.2-1 +- Update to 0.10.2 + +* Wed Jun 14 2017 Igor Gnatenko - 0.9.0-2 +- Port to use rust-packaging + +* Sat Feb 18 2017 Igor Gnatenko - 0.9.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..68a561a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ansi_term-0.10.2.crate) = ad4572845913cb21fdd9d8c0bffc5fce1571ef62c32fe83fd41262f7955e918400a446077494038299c4c0dfb0bd030d089336b3f169e726a5e15ee5c78ea3b5