From 98237d18fbb09710acdfdbd048123d023fb86d04 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Feb 18 2019 10:52:54 +0000 Subject: Update to 0.7.0 Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore index b0f59ba..47dde44 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /gtk-sys-0.5.0.crate /gtk-sys-0.6.0.crate +/gtk-sys-0.7.0.crate diff --git a/.rust2rpm.conf b/.rust2rpm.conf new file mode 100644 index 0000000..593743f --- /dev/null +++ b/.rust2rpm.conf @@ -0,0 +1,31 @@ +[DEFAULT] +buildrequires = + pkgconfig(gtk+-3.0) >= 3.4 +lib.requires = + pkgconfig(gtk+-3.0) >= 3.4 +lib+v3_6.requires = + pkgconfig(gtk+-3.0) >= 3.6 +lib+v3_8.requires = + pkgconfig(gtk+-3.0) >= 3.8 +lib+v3_10.requires = + pkgconfig(gtk+-3.0) >= 3.10 +lib+v3_12.requires = + pkgconfig(gtk+-3.0) >= 3.12 +lib+v3_14.requires = + pkgconfig(gtk+-3.0) >= 3.14 +lib+v3_16.requires = + pkgconfig(gtk+-3.0) >= 3.16 +lib+v3_18.requires = + pkgconfig(gtk+-3.0) >= 3.18 +lib+v3_20.requires = + pkgconfig(gtk+-3.0) >= 3.20 +lib+v3_22.requires = + pkgconfig(gtk+-3.0) >= 3.22 +lib+v3_22_6.requires = + pkgconfig(gtk+-3.0) >= 3.22.6 +lib+v3_22_26.requires = + pkgconfig(gtk+-3.0) >= 3.22.26 +lib+v3_22_27.requires = + pkgconfig(gtk+-3.0) >= 3.22.27 +lib+v3_22_29.requires = + pkgconfig(gtk+-3.0) >= 3.22.29 diff --git a/rust-gtk-sys.spec b/rust-gtk-sys.spec index 3adc4f6..3944399 100644 --- a/rust-gtk-sys.spec +++ b/rust-gtk-sys.spec @@ -1,54 +1,251 @@ # Generated by rust2rpm -%bcond_without check +%bcond_with check %global debug_package %{nil} -%global gtk_min 3.4 - %global crate gtk-sys Name: rust-%{crate} -Version: 0.6.0 -Release: 3%{?dist} +Version: 0.7.0 +Release: 1%{?dist} Summary: FFI bindings to libgtk-3 License: MIT URL: https://crates.io/crates/gtk-sys -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(atk-sys) >= 0.6.0 with crate(atk-sys) < 0.7.0) -BuildRequires: (crate(bitflags) >= 1.0.0 with crate(bitflags) < 2.0.0) -BuildRequires: (crate(cairo-sys-rs) >= 0.6.0 with crate(cairo-sys-rs) < 0.7.0) -BuildRequires: (crate(gdk-pixbuf-sys) >= 0.6.0 with crate(gdk-pixbuf-sys) < 0.7.0) -BuildRequires: (crate(gdk-sys) >= 0.6.0 with crate(gdk-sys) < 0.7.0) -BuildRequires: (crate(gio-sys) >= 0.6.0 with crate(gio-sys) < 0.7.0) -BuildRequires: (crate(glib-sys) >= 0.6.0 with crate(glib-sys) < 0.7.0) -BuildRequires: (crate(gobject-sys) >= 0.6.0 with crate(gobject-sys) < 0.7.0) -BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) -BuildRequires: (crate(pango-sys) >= 0.6.0 with crate(pango-sys) < 0.7.0) -# [build-dependencies] -BuildRequires: (crate(pkg-config) >= 0.3.7 with crate(pkg-config) < 0.4.0) -BuildRequires: pkgconfig(gtk+-3.0) >= %{gtk_min} - -%description -%{summary}. +BuildRequires: (crate(atk-sys/default) >= 0.7.0 with crate(atk-sys/default) < 0.8.0) +BuildRequires: (crate(cairo-sys-rs/default) >= 0.7.0 with crate(cairo-sys-rs/default) < 0.8.0) +BuildRequires: (crate(gdk-pixbuf-sys/default) >= 0.7.0 with crate(gdk-pixbuf-sys/default) < 0.8.0) +BuildRequires: (crate(gdk-sys/default) >= 0.7.0 with crate(gdk-sys/default) < 0.8.0) +BuildRequires: (crate(gio-sys/default) >= 0.7.0 with crate(gio-sys/default) < 0.8.0) +BuildRequires: (crate(glib-sys/default) >= 0.7.0 with crate(glib-sys/default) < 0.8.0) +BuildRequires: (crate(gobject-sys/default) >= 0.7.0 with crate(gobject-sys/default) < 0.8.0) +BuildRequires: (crate(libc/default) >= 0.2.0 with crate(libc/default) < 0.3.0) +BuildRequires: (crate(pango-sys/default) >= 0.7.0 with crate(pango-sys/default) < 0.8.0) +BuildRequires: (crate(pkg-config/default) >= 0.3.7 with crate(pkg-config/default) < 0.4.0) +%if %{with check} +BuildRequires: (crate(shell-words/default) >= 0.1.0 with crate(shell-words/default) < 0.2.0) +BuildRequires: (crate(tempdir/default) >= 0.3.0 with crate(tempdir/default) < 0.4.0) +%endif +BuildRequires: pkgconfig(gtk+-3.0) >= 3.4 + +%global _description \ +FFI bindings to libgtk-3. + +%description %{_description} %package devel Summary: %{summary} -Requires: pkgconfig(gtk+-3.0) >= %{gtk_min} BuildArch: noarch +Requires: pkgconfig(gtk+-3.0) >= 3.4 -%description devel -FFI bindings to libgtk-3. +%description devel %{_description} + +This package contains library source intended for building other packages +which use "%{crate}" crate. + +%files devel +%license LICENSE +%{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 + +%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}+v3_10-devel +Summary: %{summary} +BuildArch: noarch +Requires: pkgconfig(gtk+-3.0) >= 3.10 + +%description -n %{name}+v3_10-devel %{_description} This package contains library source intended for building other packages -which use %{crate} from crates.io. +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 +Requires: pkgconfig(gtk+-3.0) >= 3.12 + +%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 +Requires: pkgconfig(gtk+-3.0) >= 3.14 + +%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 +Requires: pkgconfig(gtk+-3.0) >= 3.16 + +%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 +Requires: pkgconfig(gtk+-3.0) >= 3.18 + +%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 +Requires: pkgconfig(gtk+-3.0) >= 3.20 + +%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 +Requires: pkgconfig(gtk+-3.0) >= 3.22 + +%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_26-devel +Summary: %{summary} +BuildArch: noarch +Requires: pkgconfig(gtk+-3.0) >= 3.22.26 + +%description -n %{name}+v3_22_26-devel %{_description} + +This package contains library source intended for building other packages +which use "v3_22_26" feature of "%{crate}" crate. + +%files -n %{name}+v3_22_26-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+v3_22_27-devel +Summary: %{summary} +BuildArch: noarch +Requires: pkgconfig(gtk+-3.0) >= 3.22.27 + +%description -n %{name}+v3_22_27-devel %{_description} + +This package contains library source intended for building other packages +which use "v3_22_27" feature of "%{crate}" crate. + +%files -n %{name}+v3_22_27-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+v3_22_29-devel +Summary: %{summary} +BuildArch: noarch +Requires: pkgconfig(gtk+-3.0) >= 3.22.29 + +%description -n %{name}+v3_22_29-devel %{_description} + +This package contains library source intended for building other packages +which use "v3_22_29" feature of "%{crate}" crate. + +%files -n %{name}+v3_22_29-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+v3_22_6-devel +Summary: %{summary} +BuildArch: noarch +Requires: pkgconfig(gtk+-3.0) >= 3.22.6 + +%description -n %{name}+v3_22_6-devel %{_description} + +This package contains library source intended for building other packages +which use "v3_22_6" feature of "%{crate}" crate. + +%files -n %{name}+v3_22_6-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + +%package -n %{name}+v3_6-devel +Summary: %{summary} +BuildArch: noarch +Requires: pkgconfig(gtk+-3.0) >= 3.6 + +%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 +Requires: pkgconfig(gtk+-3.0) >= 3.8 + +%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} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -62,11 +259,10 @@ which use %{crate} from crates.io. %cargo_test %endif -%files devel -%license LICENSE -%{cargo_registry}/%{crate}-%{version}/ - %changelog +* Mon Feb 18 2019 Igor Gnatenko - 0.7.0-1 +- Update to 0.7.0 + * Sat Feb 02 2019 Fedora Release Engineering - 0.6.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index c4ae8fa..b731bda 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (gtk-sys-0.6.0.crate) = 36acc0df69183154d403e52a8ce3fbef008befe04b173fcbf57cc6cc69c0d773c9257b69e2af370ce7d68327f7bf11a4e7f0da162f65b97dc1c29c8b1ee3d76a +SHA512 (gtk-sys-0.7.0.crate) = 76feb02a9c5f03c06c388412125bb9d6c0ca53598e88a44dd369fcb8564f1218bf8183c22d20f46197106077738641a2b62aea8042a222166ab221f6d3874bdd diff --git a/tests/.fmf/version b/tests/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/tests/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/tests/provision.fmf b/tests/provision.fmf new file mode 100644 index 0000000..503a97c --- /dev/null +++ b/tests/provision.fmf @@ -0,0 +1,5 @@ +--- +standard-inventory-qcow2: + qemu: + # `cargo test` usually eats more than 1G. + m: 4G diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..832a41d --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,13 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/rust.git" + dest: rust + tests: + - rust/cargo-test + environment: + pkg: rust-gtk-sys