diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..8722665 --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,5 @@ +[DEFAULT] +buildrequires = + pkgconfig(expat) >= 2.1.0 +lib.requires = + pkgconfig(expat) >= 2.1.0 diff --git a/rust-expat-sys.spec b/rust-expat-sys.spec index 375cdce..5364609 100644 --- a/rust-expat-sys.spec +++ b/rust-expat-sys.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 13 +# Generated by rust2rpm 15 %bcond_without check %global debug_package %{nil} @@ -6,16 +6,15 @@ Name: rust-%{crate} Version: 2.1.6 -Release: 1%{?dist} +Release: 2%{?dist} Summary: XML parser library written in C # Upstream license specification: MIT # https://github.com/servo/libexpat/issues/28 +# https://github.com/servo/libexpat/issues/30 License: MIT URL: https://crates.io/crates/expat-sys Source: %{crates_source} -# README.md symlink issue -# https://github.com/servo/libexpat/issues/29 ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} @@ -23,7 +22,6 @@ BuildArch: noarch %endif BuildRequires: rust-packaging -BuildRequires: pkgconfig(expat) %global _description %{expand: XML parser library written in C.} @@ -33,6 +31,7 @@ XML parser library written in C.} %package devel Summary: %{summary} BuildArch: noarch +Requires: pkgconfig(expat) >= 2.1.0 %description devel %{_description} @@ -61,6 +60,7 @@ rm -vr expat %generate_buildrequires %cargo_generate_buildrequires +echo 'pkgconfig(expat) >= 2.1.0' %build %cargo_build @@ -74,5 +74,8 @@ rm -vr expat %endif %changelog +* Sun Jun 21 08:51:23 CEST 2020 Igor Raits - 2.1.6-2 +- Fixup requirements + * Sat May 23 22:32:05 CEST 2020 returntrip - 2.1.6-1 - Initial package