From 45e3931f62d5d50837ab0fcbaf7a9b5d8b0b098f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 8 Nov 2017 14:38:48 +0100 Subject: [PATCH] initial import Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rust-pkg-config.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 66 insertions(+) create mode 100644 .gitignore create mode 100644 rust-pkg-config.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f628a2a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pkg-config-0.3.9.crate diff --git a/rust-pkg-config.spec b/rust-pkg-config.spec new file mode 100644 index 0000000..b4db7e3 --- /dev/null +++ b/rust-pkg-config.spec @@ -0,0 +1,64 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate pkg-config + +Name: rust-%{crate} +Version: 0.3.9 +Release: 2%{?dist} +Summary: Library to run the pkg-config system tool + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/pkg-config +Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(lazy_static) >= 0.2.0 with crate(lazy_static) < 0.3.0) +%endif + +%description +%{summary}. + +%package devel +Summary: %{summary} +BuildArch: noarch +Requires: %{_bindir}/pkg-config + +%description devel +A library to run the pkg-config system tool at build time in order to be used +in Cargo build scripts. + +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 LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%changelog +* Wed Jun 14 2017 Igor Gnatenko - 0.3.9-2 +- Port to use rust-packaging + +* Sun Feb 26 2017 Igor Gnatenko - 0.3.9-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..72a7e19 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pkg-config-0.3.9.crate) = 084e18e8c91ba6a1b305624d16c06f8f7df994c93cf86ccf443bc8f2669368a15bfa9875bc4f2933e94aa268e15fef783235c98558ba596cfc79dbd31f0b69d1