diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..42b5ad0 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/libc-0.2.32.crate diff --git a/rust-libc.spec b/rust-libc.spec new file mode 100644 index 0000000..249b4cc --- /dev/null +++ b/rust-libc.spec @@ -0,0 +1,85 @@ +# Generated by rust2rpm +%bcond_without check +%global debug_package %{nil} + +%global crate libc + +Name: rust-%{crate} +Version: 0.2.32 +Release: 1%{?dist} +Summary: Library for types and bindings to native C functions + +License: MIT or ASL 2.0 +URL: https://crates.io/crates/libc +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 +A library for types and bindings to native C functions often found in libc or +other common platform libraries. + +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}/ +%exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,ci} + +%changelog +* Fri Oct 27 2017 Igor Gnatenko - 0.2.32-1 +- Update to 0.2.32 + +* Fri Jul 21 2017 Igor Gnatenko - 0.2.26-1 +- Update to 0.2.26 + +* Fri Jul 07 2017 Igor Gnatenko - 0.2.25-1 +- Update to 0.2.25 + +* Sun Jun 25 2017 Igor Gnatenko - 0.2.24-1 +- Update to 0.2.24 + +* Wed Jun 14 2017 Igor Gnatenko - 0.2.23-1 +- Update to 0.2.23 + +* Wed Jun 14 2017 Igor Gnatenko - 0.2.21-2 +- Port to use rust-packaging + +* Sun Mar 05 2017 Igor Gnatenko - 0.2.21-1 +- Update to 0.2.21 + +* Fri Feb 24 2017 Igor Gnatenko - 0.2.20-3 +- Strip unneeded files + +* Sun Feb 12 2017 Igor Gnatenko - 0.2.20-2 +- Add license files +- Fix license tag + +* Sun Feb 12 2017 Igor Gnatenko - 0.2.20-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..610c277 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (libc-0.2.32.crate) = 73115eb14e2c90757c5075c86582bb463860f4016e5c3e9a0187b63ec93ee279da8f6146f2eef7914c72c1e6fbab3362dc9b789e2706d15d9b8a486e8311b088