diff --git a/.gitignore b/.gitignore index 0a14a19..34de1eb 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,4 @@ /git2-0.16.1.crate /git2-0.17.2.crate /git2-0.18.0.crate +/git2-0.18.1.crate diff --git a/rust-git2.spec b/rust-git2.spec index e96f5eb..5b861a5 100644 --- a/rust-git2.spec +++ b/rust-git2.spec @@ -1,11 +1,11 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate git2 Name: rust-git2 -Version: 0.18.0 +Version: 0.18.1 Release: %autorelease Summary: Bindings to libgit2 for interoperating with git repositories @@ -13,7 +13,7 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/git2 Source: %{crates_source} -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Bindings to libgit2 for interoperating with git repositories. This @@ -136,7 +136,7 @@ use the "vendored-libgit2" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/rust2rpm.conf b/rust2rpm.conf deleted file mode 100644 index 28b4869..0000000 --- a/rust2rpm.conf +++ /dev/null @@ -1,6 +0,0 @@ -[DEFAULT] -testrequires = - /usr/bin/git -unwanted-features = - vendored-openssl - zlib-ng-compat diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..dd9a9c8 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,11 @@ +[features] +hide = [ + "vendored-openssl", + "zlib-ng-compat", +] + +[requires] +test = [ + "/usr/bin/git", +] + diff --git a/sources b/sources index 743a167..e7fcd4f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (git2-0.18.0.crate) = de8179c0cb27abb6e870efa27a562728926ae862820a1b71e5c47d2c69e6dc75caf25c0706564a8a5d47c47a2ba0ae7a164d68e88c16260214cad6c672505c70 +SHA512 (git2-0.18.1.crate) = 3fb535e820365ac5aecc5a1cd3af869ea952ed6741a7890b095ac6f4509fdee7389949da45e4f66188b5e261fb4c47d49ffc1043b4b2b39020ea21e22bc69fa7