SPECS: ocfs2-tools.spec - add missing buildrequire - bcond gtk2

aredridel aredridel at pld-linux.org
Thu Apr 5 08:14:25 CEST 2007


Author: aredridel                    Date: Thu Apr  5 06:14:25 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add missing buildrequire
- bcond gtk2

---- Files affected:
SPECS:
   ocfs2-tools.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: SPECS/ocfs2-tools.spec
diff -u SPECS/ocfs2-tools.spec:1.14 SPECS/ocfs2-tools.spec:1.15
--- SPECS/ocfs2-tools.spec:1.14	Thu Apr  5 07:50:42 2007
+++ SPECS/ocfs2-tools.spec	Thu Apr  5 08:14:19 2007
@@ -1,4 +1,7 @@
 # $Revision$, $Date$
+#
+%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
@@ -19,7 +22,8 @@
 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
@@ -57,7 +61,7 @@
 %configure \
 	--enable-dynamic-fsck=yes \
 	--enable-dynamic-ctl=yes \
-	--enable-ocfs2console=yes
+	%{?with_gtk2:--enable-ocfs2console=yes}
 %{__make}
 
 %install
@@ -73,9 +77,11 @@
 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
@@ -108,12 +114,14 @@
 %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
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -121,6 +129,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2007/04/05 06:14:19  aredridel
+- add missing buildrequire
+- bcond gtk2
+
 Revision 1.14  2007/04/05 05:50:42  aredridel
 - remove obsolete buildrequire
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ocfs2-tools.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list