]> git.pld-linux.org Git - packages/ocfs2-tools.git/commitdiff
- add missing buildrequire
authoraredridel <aredridel@pld-linux.org>
Thu, 5 Apr 2007 06:14:19 +0000 (06:14 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- bcond gtk2

Changed files:
    ocfs2-tools.spec -> 1.15

ocfs2-tools.spec

index 1808c87f77385e8330b5a33561b5b17d161b9277..5838169ab0b997b45dc0578db1cdf062f8c8df6d 100644 (file)
@@ -1,3 +1,6 @@
+#
+%bcond_without gtk2 # Build without GTK
+#
 Summary:       Tools for the OCFS2 filesystem
 Summary(pl.UTF-8):     Narzędzia dla systemu plików OCFS2
 Name:          ocfs2-tools
@@ -18,7 +21,8 @@ BuildRequires:        device-mapper-devel
 BuildRequires: e2fsprogs-devel
 BuildRequires: glib2-devel
 BuildRequires: pkgconfig
-BuildRequires: python-devel
+%{?with_gtk2:BuildRequires:    python-devel}
+%{?with_gtk2:BuildRequires:    python-pygtk-gtk}
 BuildRequires: readline-devel
 BuildRequires: rpmbuild(macros) >= 1.268
 #BuildRequires:        scons
@@ -56,7 +60,7 @@ Interfejs GTK+ do narzędzi OCFS2.
 %configure \
        --enable-dynamic-fsck=yes \
        --enable-dynamic-ctl=yes \
-       --enable-ocfs2console=yes
+       %{?with_gtk2:--enable-ocfs2console=yes}
 %{__make}
 
 %install
@@ -72,9 +76,11 @@ install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/o2cb
 install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/o2cb
 install -d $RPM_BUILD_ROOT/dlm
 
+%if %{with gtk2}
 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
 rm $RPM_BUILD_ROOT%{py_sitedir}/ocfs2interface/*.py
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -107,9 +113,11 @@ fi
 %dir /dlm
 %{_mandir}/man8/*
 
+%if %{with gtk2}
 %files gtk
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/*
 %dir %{py_sitedir}/ocfs2interface
 %attr(755,root,root) %{py_sitedir}/ocfs2interface/*.so
 %{py_sitedir}/ocfs2interface/*.py[co]
+%endif
This page took 0.130717 seconds and 4 git commands to generate.