diff --git a/.gitignore b/.gitignore index fef6824..b339f72 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /cmake-0.1.33.crate /cmake-0.1.34.crate /cmake-0.1.35.crate +/cmake-0.1.36.crate diff --git a/rust-cmake.spec b/rust-cmake.spec index 3b9ee00..f92a952 100644 --- a/rust-cmake.spec +++ b/rust-cmake.spec @@ -5,38 +5,55 @@ %global crate cmake Name: rust-%{crate} -Version: 0.1.35 -Release: 2%{?dist} +Version: 0.1.36 +Release: 1%{?dist} Summary: Build dependency for running `cmake` to build a native library # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/cmake -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging -# [dependencies] -BuildRequires: (crate(cc) >= 1.0.0 with crate(cc) < 2.0.0) +BuildRequires: (crate(cc/default) >= 1.0.32 with crate(cc/default) < 2.0.0) BuildRequires: %{_bindir}/cmake -%description -%{summary}. +%global _description \ +A build dependency for running `cmake` to build a native library. + +%description %{_description} %package devel Summary: %{summary} Requires: %{_bindir}/cmake BuildArch: noarch -%description devel -A build dependency for running `cmake` to build a native library. +%description devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +which use "%{crate}" crate. + +%files devel +%license LICENSE-MIT LICENSE-APACHE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + +%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}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -50,12 +67,11 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE-MIT LICENSE-APACHE -%doc README.md -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Tue Mar 26 2019 Josh Stone - 0.1.36-1 +- Update to 0.1.36 +- Adapt to new packaging + * Sat Feb 02 2019 Fedora Release Engineering - 0.1.35-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index e003997..830f0a1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (cmake-0.1.35.crate) = 021f7dec0f2bc907ae1b1dbee5055e5fd450403bfe9d6c891c56747cfb70f5cbef8ab76e660f401d9e3c30a35c14c8841964e0ee26eb192ffd8948a594a9866d +SHA512 (cmake-0.1.36.crate) = a58e44a8a3af7c82244dd56fa40d421201bb33f49f238b0038f11646763376392b824915e28856a0ccadb54a8ab0fbb41490d8d7c5a748e1d5ff14a300dbc848