diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a42a3d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/results_*/ +/*.src.rpm + +/openssl-macros-0.1.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 002378f..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-openssl-macros - -The rust-openssl-macros package diff --git a/rust-openssl-macros.spec b/rust-openssl-macros.spec new file mode 100644 index 0000000..52a54c5 --- /dev/null +++ b/rust-openssl-macros.spec @@ -0,0 +1,71 @@ +# Generated by rust2rpm 21 +%bcond_without check +%global debug_package %{nil} + +%global crate openssl-macros + +Name: rust-%{crate} +Version: 0.1.0 +Release: %autorelease +Summary: Internal macros used by the openssl crate + +# Upstream license specification: MIT/Apache-2.0 +License: MIT or ASL 2.0 +URL: https://crates.io/crates/openssl-macros +Source: %{crates_source} + +ExclusiveArch: %{rust_arches} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Internal macros used by the openssl crate.} + +%description %{_description} + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel %{_description} + +This package contains library source intended for building other packages which +use the "%{crate}" crate. + +%files devel +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%{crate_instdir}/ + +%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 the "default" feature of the "%{crate}" crate. + +%files -n %{name}+default-devel +%ghost %{crate_instdir}/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 +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..7c022f7 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (openssl-macros-0.1.0.crate) = 7e37a0c05781da13bbaf4c056c19d032a93820cc324f9f6e5743bfcbfb30e057501af1bc7cbf5f07e3a05191678cd5ae5bc4d6832f02ce75bfb03c027d18abfd