Blame rust-libdbus-sys.spec

9575ab1
# Generated by rust2rpm 24
f65ae42
%bcond_without check
f65ae42
%global debug_package %{nil}
f65ae42
f65ae42
%global crate libdbus-sys
f65ae42
679468d
Name:           rust-libdbus-sys
9575ab1
Version:        0.2.5
3fa61fe
Release:        %autorelease
f65ae42
Summary:        FFI bindings to libdbus
f65ae42
38c1687
# Upstream license specification: Apache-2.0/MIT
679468d
License:        Apache-2.0 OR MIT
f65ae42
URL:            https://crates.io/crates/libdbus-sys
45e594c
Source:         %{crates_source}
679468d
# Manually created patch for downstream crate metadata changes
679468d
# * drop feature for building against vendored copy of dbus
679468d
Patch:          libdbus-sys-fix-metadata.diff
f65ae42
679468d
BuildRequires:  rust-packaging >= 21
f65ae42
45e594c
%global _description %{expand:
45e594c
FFI bindings to libdbus.}
1a93fab
1a93fab
%description %{_description}
f65ae42
f65ae42
%package        devel
f65ae42
Summary:        %{summary}
1a93fab
BuildArch:      noarch
f65ae42
Requires:       pkgconfig(dbus-1) >= 1.6
1a93fab
1a93fab
%description    devel %{_description}
1a93fab
679468d
This package contains library source intended for building other packages which
679468d
use the "%{crate}" crate.
1a93fab
1a93fab
%files          devel
679468d
%license %{crate_instdir}/LICENSE-APACHE
679468d
%license %{crate_instdir}/LICENSE-MIT
679468d
%doc %{crate_instdir}/README.md
679468d
%{crate_instdir}/
1a93fab
1a93fab
%package     -n %{name}+default-devel
1a93fab
Summary:        %{summary}
f65ae42
BuildArch:      noarch
f65ae42
1a93fab
%description -n %{name}+default-devel %{_description}
f65ae42
679468d
This package contains library source intended for building other packages which
679468d
use the "default" feature of the "%{crate}" crate.
1a93fab
1a93fab
%files       -n %{name}+default-devel
679468d
%ghost %{crate_instdir}/Cargo.toml
679468d
679468d
%package     -n %{name}+pkg-config-devel
679468d
Summary:        %{summary}
679468d
BuildArch:      noarch
679468d
679468d
%description -n %{name}+pkg-config-devel %{_description}
679468d
679468d
This package contains library source intended for building other packages which
679468d
use the "pkg-config" feature of the "%{crate}" crate.
679468d
679468d
%files       -n %{name}+pkg-config-devel
679468d
%ghost %{crate_instdir}/Cargo.toml
f65ae42
f65ae42
%prep
45e594c
%autosetup -n %{crate}-%{version_no_tilde} -p1
679468d
# remove vendored dbus sources
679468d
rm -r vendor/
f65ae42
%cargo_prep
f65ae42
45e594c
%generate_buildrequires
45e594c
%cargo_generate_buildrequires
45e594c
echo 'pkgconfig(dbus-1) >= 1.6'
45e594c
f65ae42
%build
f65ae42
%cargo_build
f65ae42
f65ae42
%install
f65ae42
%cargo_install
f65ae42
f65ae42
%if %{with check}
f65ae42
%check
f65ae42
%cargo_test
f65ae42
%endif
f65ae42
f65ae42
%changelog
3fa61fe
%autochangelog