SPECS: smart.spec - without kde bcond (natively uses GTK)

czarny czarny at pld-linux.org
Mon Sep 18 22:04:33 CEST 2006


Author: czarny                       Date: Mon Sep 18 20:04:33 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- without kde bcond (natively uses GTK)

---- Files affected:
SPECS:
   smart.spec (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: SPECS/smart.spec
diff -u SPECS/smart.spec:1.10 SPECS/smart.spec:1.11
--- SPECS/smart.spec:1.10	Mon Mar 13 08:32:25 2006
+++ SPECS/smart.spec	Mon Sep 18 22:04:27 2006
@@ -2,6 +2,7 @@
 # TODO
 # - bundled and modified software:
 #  - pexpect-0.999 http://pexpect.sourceforge.net/
+%bcond_without	kde # not needed for GNOME
 %define	module smart
 Summary:	Next generation package handling tool
 Summary(pl):	Narzędzie do obsługi pakietów nowej generacji
@@ -19,7 +20,9 @@
 Patch1:		%{name}-syslibs.patch
 Patch2:		%{name}-optflags.patch
 URL:		http://labix.org/smart/
+%if %{with kde}
 BuildRequires:	kdelibs-devel
+%endif
 BuildRequires:	libstdc++-devel
 BuildRequires:	python-devel >= 1:2.3
 BuildRequires:	sed >= 4.0
@@ -63,6 +66,7 @@
 %description gui -l pl
 Graficzny interfejs użytkownika do zarządcy pakietów Smart.
 
+%if %{with kde}
 %package -n ksmarttray
 Summary:	KDE tray program for watching updates with Smart Package Manager
 Summary(pl):	Program zasobnika KDE do oglądania uaktualnień przy użyciu zarządcy pakietów Smart
@@ -78,6 +82,7 @@
 
 %description -n ksmarttray -l pt
 Programa tray do KDE para verificar atualizaçőes com o Smart Package Manager.
+%endif
 
 %prep
 %setup -q
@@ -100,9 +105,11 @@
 	CC="%{__cc}" \
 	CFLAGS="%{rpmcflags}"
 
+%if %{with kde}
 # ksmarttray
 cd contrib/ksmarttray
 %{__make} -f admin/Makefile.common
+
 %configure \
 %if "%{_lib}" == "lib64"
 	--enable-libsuffix=64 \
@@ -110,6 +117,7 @@
 	--%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
 	--with-qt-libraries=%{_libdir}
 %{__make}
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -118,15 +126,19 @@
 
 cp -f contrib/smart-update/smart-update $RPM_BUILD_ROOT%{_bindir}
 install %{SOURCE2} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+%if %{with kde}
 install %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/%{name}-kde.desktop
+%endif
 install -p smart/interfaces/images/smart.png $RPM_BUILD_ROOT%{_pixmapsdir}/smart.png
 # Currently needs to hardcode %{_libdir}, as this is hardcoded in the
 # code, too.
 install -p %{SOURCE1} $RPM_BUILD_ROOT%{_libdir}/smart/distro.py
 
+%if %{with kde}
 %{__make} install \
 	-C contrib/ksmarttray \
-	DESTDIR=$RPM_BUILD_ROOT
+	DESTDR=$RPM_BUILD_ROOT
+%endif
 
 %find_lang %{name}
 %py_postclean
@@ -197,13 +209,17 @@
 %dir %{py_sitedir}/%{module}/interfaces/gtk
 %{py_sitedir}/%{module}/interfaces/gtk/*.py[co]
 %{_desktopdir}/smart.desktop
+%if %{with kde}
 %{_desktopdir}/smart-kde.desktop
+%endif
 %{_pixmapsdir}/smart.png
 
+%if %{with kde}
 %files -n ksmarttray
 %defattr(644,root,root,755)
 %attr(775,root,root) %{_bindir}/ksmarttray
 %{_datadir}/apps/ksmarttray
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -211,6 +227,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.11  2006/09/18 20:04:27  czarny
+- without kde bcond (natively uses GTK)
+
 Revision 1.10  2006/03/13 07:32:25  glen
 - use kdesu,gksu to launch smart gui
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/smart.spec?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list