Blob Blame History Raw
# Generated by rust2rpm
%bcond_with check
%global debug_package %{nil}

%global crate gdk

Name:           rust-%{crate}
Version:        0.9.0
Release:        1%{?dist}
Summary:        Rust bindings for the GDK 3 library

License:        MIT
URL:            https://crates.io/crates/gdk
Source:         %{crates_source}

ExclusiveArch:  %{rust_arches}

BuildRequires:  rust-packaging
BuildRequires:  (crate(bitflags/default) >= 1.0.0 with crate(bitflags/default) < 2.0.0)
BuildRequires:  (crate(cairo-rs/default) >= 0.5.0 with crate(cairo-rs/default) < 0.6.0)
BuildRequires:  (crate(cairo-rs/dox) >= 0.5.0 with crate(cairo-rs/dox) < 0.6.0)
BuildRequires:  (crate(cairo-rs/embed-lgpl-docs) >= 0.5.0 with crate(cairo-rs/embed-lgpl-docs) < 0.6.0)
BuildRequires:  (crate(cairo-rs/purge-lgpl-docs) >= 0.5.0 with crate(cairo-rs/purge-lgpl-docs) < 0.6.0)
BuildRequires:  (crate(cairo-rs/v1_12) >= 0.5.0 with crate(cairo-rs/v1_12) < 0.6.0)
BuildRequires:  (crate(cairo-sys-rs/default) >= 0.7.0 with crate(cairo-sys-rs/default) < 0.8.0)
BuildRequires:  (crate(gdk-pixbuf/default) >= 0.5.0 with crate(gdk-pixbuf/default) < 0.6.0)
BuildRequires:  (crate(gdk-pixbuf/dox) >= 0.5.0 with crate(gdk-pixbuf/dox) < 0.6.0)
BuildRequires:  (crate(gdk-pixbuf/embed-lgpl-docs) >= 0.5.0 with crate(gdk-pixbuf/embed-lgpl-docs) < 0.6.0)
BuildRequires:  (crate(gdk-pixbuf/purge-lgpl-docs) >= 0.5.0 with crate(gdk-pixbuf/purge-lgpl-docs) < 0.6.0)
BuildRequires:  (crate(gdk-pixbuf/v2_28) >= 0.5.0 with crate(gdk-pixbuf/v2_28) < 0.6.0)
BuildRequires:  (crate(gdk-pixbuf/v2_30) >= 0.5.0 with crate(gdk-pixbuf/v2_30) < 0.6.0)
BuildRequires:  (crate(gdk-sys/default) >= 0.7.0 with crate(gdk-sys/default) < 0.8.0)
BuildRequires:  (crate(gdk-sys/dox) >= 0.7.0 with crate(gdk-sys/dox) < 0.8.0)
BuildRequires:  (crate(gdk-sys/v3_10) >= 0.7.0 with crate(gdk-sys/v3_10) < 0.8.0)
BuildRequires:  (crate(gdk-sys/v3_12) >= 0.7.0 with crate(gdk-sys/v3_12) < 0.8.0)
BuildRequires:  (crate(gdk-sys/v3_14) >= 0.7.0 with crate(gdk-sys/v3_14) < 0.8.0)
BuildRequires:  (crate(gdk-sys/v3_16) >= 0.7.0 with crate(gdk-sys/v3_16) < 0.8.0)
BuildRequires:  (crate(gdk-sys/v3_18) >= 0.7.0 with crate(gdk-sys/v3_18) < 0.8.0)
BuildRequires:  (crate(gdk-sys/v3_20) >= 0.7.0 with crate(gdk-sys/v3_20) < 0.8.0)
BuildRequires:  (crate(gdk-sys/v3_22) >= 0.7.0 with crate(gdk-sys/v3_22) < 0.8.0)
BuildRequires:  (crate(gdk-sys/v3_6) >= 0.7.0 with crate(gdk-sys/v3_6) < 0.8.0)
BuildRequires:  (crate(gdk-sys/v3_8) >= 0.7.0 with crate(gdk-sys/v3_8) < 0.8.0)
BuildRequires:  (crate(gio-sys/default) >= 0.7.0 with crate(gio-sys/default) < 0.8.0)
BuildRequires:  (crate(gio/default) >= 0.5.0 with crate(gio/default) < 0.6.0)
BuildRequires:  (crate(gio/dox) >= 0.5.0 with crate(gio/dox) < 0.6.0)
BuildRequires:  (crate(gio/embed-lgpl-docs) >= 0.5.0 with crate(gio/embed-lgpl-docs) < 0.6.0)
BuildRequires:  (crate(gio/purge-lgpl-docs) >= 0.5.0 with crate(gio/purge-lgpl-docs) < 0.6.0)
BuildRequires:  (crate(gio/v2_34) >= 0.5.0 with crate(gio/v2_34) < 0.6.0)
BuildRequires:  (crate(gio/v2_36) >= 0.5.0 with crate(gio/v2_36) < 0.6.0)
BuildRequires:  (crate(gio/v2_38) >= 0.5.0 with crate(gio/v2_38) < 0.6.0)
BuildRequires:  (crate(gio/v2_40) >= 0.5.0 with crate(gio/v2_40) < 0.6.0)
BuildRequires:  (crate(gio/v2_42) >= 0.5.0 with crate(gio/v2_42) < 0.6.0)
BuildRequires:  (crate(gio/v2_44) >= 0.5.0 with crate(gio/v2_44) < 0.6.0)
BuildRequires:  (crate(gio/v2_48) >= 0.5.0 with crate(gio/v2_48) < 0.6.0)
BuildRequires:  (crate(gio/v2_54) >= 0.5.0 with crate(gio/v2_54) < 0.6.0)
BuildRequires:  (crate(glib-sys/default) >= 0.7.0 with crate(glib-sys/default) < 0.8.0)
BuildRequires:  (crate(glib/default) >= 0.6.0 with crate(glib/default) < 0.7.0)
BuildRequires:  (crate(glib/dox) >= 0.6.0 with crate(glib/dox) < 0.7.0)
BuildRequires:  (crate(gobject-sys/default) >= 0.7.0 with crate(gobject-sys/default) < 0.8.0)
BuildRequires:  (crate(gtk-rs-lgpl-docs/default) >= 0.1.3 with crate(gtk-rs-lgpl-docs/default) < 0.2.0)
BuildRequires:  (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0)
BuildRequires:  (crate(pango/default) >= 0.5.0 with crate(pango/default) < 0.6.0)
BuildRequires:  (crate(pango/dox) >= 0.5.0 with crate(pango/dox) < 0.6.0)
BuildRequires:  (crate(pango/v1_32_4) >= 0.5.0 with crate(pango/v1_32_4) < 0.6.0)
BuildRequires:  (crate(pango/v1_34) >= 0.5.0 with crate(pango/v1_34) < 0.6.0)
BuildRequires:  (crate(pango/v1_40) >= 0.5.0 with crate(pango/v1_40) < 0.6.0)
%if %{with check}
BuildRequires:  (crate(gir-format-check/default) >= 0.1.0 with crate(gir-format-check/default) < 0.2.0)
%endif

%global _description \
Rust bindings for the GDK 3 library.

%description %{_description}

%package        devel
Summary:        %{summary}
BuildArch:      noarch

%description    devel %{_description}

This package contains library source intended for building other packages
which use "%{crate}" crate.

%files          devel
%license COPYRIGHT LICENSE
%doc README.md
%{cargo_registry}/%{crate}-%{version}/
%exclude %{cargo_registry}/%{crate}-%{version}/{appveyor.yml,check_init_asserts,LGPL,Makefile}

%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

%package     -n %{name}+dox-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+dox-devel %{_description}

This package contains library source intended for building other packages
which use "dox" feature of "%{crate}" crate.

%files       -n %{name}+dox-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+embed-lgpl-docs-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+embed-lgpl-docs-devel %{_description}

This package contains library source intended for building other packages
which use "embed-lgpl-docs" feature of "%{crate}" crate.

%files       -n %{name}+embed-lgpl-docs-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+gtk-rs-lgpl-docs-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+gtk-rs-lgpl-docs-devel %{_description}

This package contains library source intended for building other packages
which use "gtk-rs-lgpl-docs" feature of "%{crate}" crate.

%files       -n %{name}+gtk-rs-lgpl-docs-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+purge-lgpl-docs-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+purge-lgpl-docs-devel %{_description}

This package contains library source intended for building other packages
which use "purge-lgpl-docs" feature of "%{crate}" crate.

%files       -n %{name}+purge-lgpl-docs-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+v3_10-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+v3_10-devel %{_description}

This package contains library source intended for building other packages
which use "v3_10" feature of "%{crate}" crate.

%files       -n %{name}+v3_10-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+v3_12-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+v3_12-devel %{_description}

This package contains library source intended for building other packages
which use "v3_12" feature of "%{crate}" crate.

%files       -n %{name}+v3_12-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+v3_14-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+v3_14-devel %{_description}

This package contains library source intended for building other packages
which use "v3_14" feature of "%{crate}" crate.

%files       -n %{name}+v3_14-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+v3_16-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+v3_16-devel %{_description}

This package contains library source intended for building other packages
which use "v3_16" feature of "%{crate}" crate.

%files       -n %{name}+v3_16-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+v3_18-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+v3_18-devel %{_description}

This package contains library source intended for building other packages
which use "v3_18" feature of "%{crate}" crate.

%files       -n %{name}+v3_18-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+v3_20-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+v3_20-devel %{_description}

This package contains library source intended for building other packages
which use "v3_20" feature of "%{crate}" crate.

%files       -n %{name}+v3_20-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+v3_22-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+v3_22-devel %{_description}

This package contains library source intended for building other packages
which use "v3_22" feature of "%{crate}" crate.

%files       -n %{name}+v3_22-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+v3_22_30-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+v3_22_30-devel %{_description}

This package contains library source intended for building other packages
which use "v3_22_30" feature of "%{crate}" crate.

%files       -n %{name}+v3_22_30-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+v3_6-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+v3_6-devel %{_description}

This package contains library source intended for building other packages
which use "v3_6" feature of "%{crate}" crate.

%files       -n %{name}+v3_6-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%package     -n %{name}+v3_8-devel
Summary:        %{summary}
BuildArch:      noarch

%description -n %{name}+v3_8-devel %{_description}

This package contains library source intended for building other packages
which use "v3_8" feature of "%{crate}" crate.

%files       -n %{name}+v3_8-devel
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif

%changelog
* Mon Feb 18 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.0-1
- Update to 0.9.0

* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Thu Mar 22 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.8.0-1
- Update to 0.8.0

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.0-2
- Rebuild for rust-packaging v5

* Sat Jan 06 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.7.0-1
- Initial package