Initial package

epel10
Michel Alexandre Salim 5 years ago
parent c70dc4e22a
commit edd358bd57

1
.gitignore vendored

@ -0,0 +1 @@
/dlib-0.4.1.crate

@ -0,0 +1,87 @@
# Generated by rust2rpm 13
%bcond_without check
%global debug_package %{nil}
%global crate dlib
Name: rust-%{crate}
Version: 0.4.1
Release: 1%{?dist}
Summary: Helper macros for handling manually loading optional system libraries
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/dlib
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
%if %{__cargo_skip_build}
BuildArch: noarch
%endif
BuildRequires: rust-packaging
%global _description %{expand:
Helper macros for handling manually loading optional system libraries.}
%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
%license LICENSE.txt
%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
%package -n %{name}+dlopen-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+dlopen-devel %{_description}
This package contains library source intended for building other packages
which use "dlopen" feature of "%{crate}" crate.
%files -n %{name}+dlopen-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
* Fri May 22 14:19:03 PDT 2020 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.4.1-1
- Initial package

@ -0,0 +1 @@
SHA512 (dlib-0.4.1.crate) = b112605605c620e9e5cb5633e93072f9702e24f945a4cf71c6af6499396443773fb5cf901ef78492bf89bf846e0ab4928f12835f73c5e46b63bcde6d6b3d4950
Loading…
Cancel
Save