You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
2.0 KiB
78 lines
2.0 KiB
# Generated by rust2rpm
|
|
%bcond_without check
|
|
%global debug_package %{nil}
|
|
|
|
%global crate pkg-config
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.3.9
|
|
Release: 5%{?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
|
|
# Initial patched metadata
|
|
# * Bump lazy_static to 1, https://github.com/alexcrichton/pkg-config-rs/commit/41b81f57113a1df40e899ed83dc829ab60423f33
|
|
Patch0: pkg-config-0.3.9-fix-metadata.diff
|
|
Patch1: pkg-config-0.3.9-fix-unused-asciiext.diff
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
%if %{with check}
|
|
# [dev-dependencies]
|
|
BuildRequires: (crate(lazy_static) >= 1.0.0 with crate(lazy_static) < 2.0.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
|
|
* Thu Jan 25 2018 Josh Stone <jistone@redhat.com> - 0.3.9-5
|
|
- Fix unused_imports warning for AsciiExt (rust 1.23)
|
|
|
|
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.9-4
|
|
- Rebuild for rust-packaging v5
|
|
|
|
* Thu Nov 30 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.9-3
|
|
- Bump lazy_static to 1
|
|
|
|
* Wed Jun 14 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.9-2
|
|
- Port to use rust-packaging
|
|
|
|
* Sun Feb 26 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.9-1
|
|
- Initial package
|