SPECS: lshw.spec - added without gui bcond
sparky
sparky at pld-linux.org
Sat Dec 10 19:58:58 CET 2005
Author: sparky Date: Sat Dec 10 18:58:58 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added without gui bcond
---- Files affected:
SPECS:
lshw.spec (1.29 -> 1.30)
---- Diffs:
================================================================
Index: SPECS/lshw.spec
diff -u SPECS/lshw.spec:1.29 SPECS/lshw.spec:1.30
--- SPECS/lshw.spec:1.29 Sun Oct 16 02:25:19 2005
+++ SPECS/lshw.spec Sat Dec 10 19:58:53 2005
@@ -1,4 +1,8 @@
# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without gui # build without GTK gui
+#
Summary: Hardware Lister
Summary(pl): Narzędzie wypisujące sprzęt
Name: lshw
@@ -10,7 +14,7 @@
# Source0-md5: 370e10e3dad089be3f24f1cdf3874a52
URL: http://ezix.sourceforge.net/software/lshw.html
BuildRequires: libstdc++-devel
-BuildRequires: gtk+2-devel
+%{?with_gui:BuildRequires: gtk+2-devel}
BuildRequires: pkgconfig
Requires: pciutils
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -63,9 +67,11 @@
CXX="%{__cxx}" \
CXXFLAGS="%{rpmcflags} -I./core"
+%if %{with gui}
%{__make} gui \
CXX="%{__cxx}" \
CXXFLAGS="%{rpmcflags} -I../core `pkg-config --cflags gtk+-2.0`"
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -74,8 +80,10 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%if %{with gui}
%{__make} install-gui \
DESTDIR=$RPM_BUILD_ROOT
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
@@ -87,9 +95,11 @@
%{_datadir}/%{name}
%{_mandir}/man1/*
+%if %{with gui}
%files gtk
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/gtk-%{name}
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -97,6 +107,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.30 2005/12/10 18:58:53 sparky
+- added without gui bcond
+
Revision 1.29 2005/10/16 00:25:19 charles
- updated to B.02.06
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/lshw.spec?r1=1.29&r2=1.30&f=u
More information about the pld-cvs-commit
mailing list