diff --git a/gtk3.spec b/gtk3.spec index 56aab7a..50a8b2c 100644 --- a/gtk3.spec +++ b/gtk3.spec @@ -23,6 +23,8 @@ Group: System Environment/Libraries URL: http://www.gtk.org #VCS: git:git://git.gnome.org/gtk+ Source: http://download.gnome.org/sources/gtk+/3.13/gtk+-%{version}.tar.xz +Source1: reftests-dark.test.in +Source2: reftests-hc.test.in BuildRequires: gnome-common autoconf automake intltool gettext BuildRequires: atk-devel >= %{atk_version} @@ -166,6 +168,10 @@ the functionality of the installed %{name} package. # fight unused direct deps sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool +# copy missing files +cp %SOURCE1 $RPM_SOURCE_DIR/gtk+-3.13.3/testsuite/reftests +cp %SOURCE2 $RPM_SOURCE_DIR/gtk+-3.13.3/testsuite/reftests + make %{?_smp_mflags} %install @@ -301,7 +307,7 @@ gtk-query-immodules-3.0-%{__isa_bits} --update-cache %{_datadir}/gtk-doc %files tests -%{_libexecdir}/gtk+/installed-tests +%{_libexecdir}/installed-tests/gtk+ %{_datadir}/installed-tests %changelog diff --git a/reftests-dark.test.in b/reftests-dark.test.in new file mode 100644 index 0000000..da32518 --- /dev/null +++ b/reftests-dark.test.in @@ -0,0 +1,3 @@ +[Test] +Exec=/bin/sh -c "GTK_THEME=Adwaita:dark @libexecdir@/installed-tests/gtk+/gtk-reftest -k --verbose --output $(pwd) --directory @libexecdir@/installed-tests/gtk+/reftests" +Type=session-exclusive diff --git a/reftests-hc.test.in b/reftests-hc.test.in new file mode 100644 index 0000000..c69d249 --- /dev/null +++ b/reftests-hc.test.in @@ -0,0 +1,3 @@ +[Test] +Exec=/bin/sh -c "GTK_THEME=HighContrast @libexecdir@/installed-tests/gtk+/gtk-reftest -k --verbose --output $(pwd) --directory @libexecdir@/installed-tests/gtk+/reftests" +Type=session-exclusive