Copy some un-dist'ed files into the source directory

This commit is contained in:
Richard Hughes 2014-06-24 22:15:47 +01:00
parent 722a22a3cd
commit 92587a2949
3 changed files with 13 additions and 1 deletions

View File

@ -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

3
reftests-dark.test.in Normal file
View File

@ -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

3
reftests-hc.test.in Normal file
View File

@ -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