]> git.pld-linux.org Git - packages/kernel-tools.git/commitdiff
without gtk bcond added
authorJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 12 Nov 2013 08:59:16 +0000 (09:59 +0100)
committerJacek Konieczny <j.konieczny@eggsoft.pl>
Tue, 12 Nov 2013 08:59:16 +0000 (09:59 +0100)
kernel-tools.spec

index 0fe89179d8eb4c0c748286cf6680ff2679652741..24a1f75fa71f4cafc47835e1c6249fc017b64b6e 100644 (file)
@@ -8,6 +8,7 @@
 # Conditional build:
 %bcond_without verbose         # verbose build (V=1)
 %bcond_without perf            # perf tools
+%bcond_without gtk             # gtk perf version
 
 %define                rel             4
 %define                basever 3.9
@@ -39,7 +40,7 @@ BuildRequires:        bison
 BuildRequires: docbook-style-xsl
 BuildRequires: elfutils-devel
 BuildRequires: flex
-BuildRequires: gtk+2-devel >= 2.0
+%{?with_gtk:BuildRequires:     gtk+2-devel >= 2.0}
 BuildRequires: libunwind-devel >= 0.99
 BuildRequires: newt-devel
 BuildRequires: perl-devel >= 5.1
@@ -256,6 +257,7 @@ install -d $PWD/perf-{slang,gtk}
        perfexecdir=%{_datadir}/perf-core \
        template_dir=%{_datadir}/perf-core/templates
 
+%if %{with gtk}
 # perf gtk version
 %{__make} -C tools/perf all man \
        O=$PWD/perf-gtk \
@@ -266,6 +268,7 @@ install -d $PWD/perf-{slang,gtk}
        perfexecdir=%{_datadir}/perf-core \
        template_dir=%{_datadir}/perf-core/templates
 %endif
+%endif
 
 # gen_init_cpio
 %{__make} -C usr gen_init_cpio \
@@ -346,6 +349,7 @@ PWD=${PWD:-$(pwd)}
        DESTDIR=$RPM_BUILD_ROOT
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/perf{,_slang}
 
+%if %{with gtk}
 # perf gtk
 %{__make} -j1 install install-man \
        -C tools/perf \
@@ -359,6 +363,7 @@ PWD=${PWD:-$(pwd)}
        template_dir=%{_datadir}/perf-core/templates \
        DESTDIR=$RPM_BUILD_ROOT
 %{__mv} $RPM_BUILD_ROOT%{_bindir}/perf{,_gtk}
+%endif
 
 %py_comp $RPM_BUILD_ROOT%{_datadir}/perf-core/scripts/python
 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/perf-core/scripts/python
@@ -446,9 +451,11 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_datadir}/perf-core/scripts/python/bin/*
 %{_datadir}/perf-core/scripts/python/*.py*
 
+%if %{with gtk}
 %files perf-gtk
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/perf_gtk
+%endif
 
 %files perf-slang
 %defattr(644,root,root,755)
This page took 0.13423 seconds and 4 git commands to generate.