SPECS: smart.spec - add ksmarttray

glen glen at pld-linux.org
Sat Mar 4 16:00:13 CET 2006


Author: glen                         Date: Sat Mar  4 15:00:13 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- add ksmarttray

---- Files affected:
SPECS:
   smart.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/smart.spec
diff -u SPECS/smart.spec:1.5 SPECS/smart.spec:1.6
--- SPECS/smart.spec:1.5	Sat Mar  4 15:07:38 2006
+++ SPECS/smart.spec	Sat Mar  4 16:00:05 2006
@@ -1,9 +1,12 @@
 # $Revision$, $Date$
+# TODO
+# - bundled and modified software:
+#  - pexpect-0.999 http://pexpect.sourceforge.net/
 %define	module smart
 Summary:	Next generation package handling tool
 Name:		smart
 Version:	0.41
-Release:	0.26.7
+Release:	0.26.10
 License:	GPL
 Group:		Applications/System
 URL:		http://labix.org/smart/
@@ -15,7 +18,9 @@
 Source4:	%{name}-distro.py
 Patch0:		%{name}-mxddcl.patch
 Patch1:		%{name}-syslibs.patch
+Patch2:		%{name}-optflags.patch
 BuildRequires:	gcc-c++
+BuildRequires:	kdelibs-devel
 BuildRequires:	python-devel >= 1:2.3
 BuildRequires:	sed >= 4.0
 Requires:	python-cElementTree
@@ -46,21 +51,48 @@
 %description gui
 Graphical user interface for the smart package manager.
 
+%package -n ksmarttray
+Summary:	KDE tray program for watching updates with Smart Package Manager
+Group:		Applications/System
+Requires:	smart-update = %{version}-%{release}
+
+%description -n ksmarttray
+KDE tray program for watching updates with Smart Package Manager.
+
+%description -n ksmarttray
+Programa tray do KDE para verificar atualizaçőes com o Smart Package Manager.
+
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 # %{_libdir} is hardcoded
 %{__sed} -i -e's,/usr/lib/,%{_libdir}/,' smart/const.py
 
 rm -rf smart/util/elementtree
 rm -rf smart/util/celementtree
+rm -f smart/util/optparse.py
 
 %build
 export CFLAGS="%{rpmcflags}"
 python setup.py build
 
-%{__make} -C contrib/smart-update
+# smart-update
+%{__make} -C contrib/smart-update \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags}"
+
+# ksmarttray
+cd contrib/ksmarttray
+%{__make} -f admin/Makefile.common
+%configure \
+%if "%{_lib}" == "lib64"
+    --enable-libsuffix=64 \
+%endif
+    --%{?debug:en}%{!?debug:dis}able-debug%{?debug:=full} \
+    --with-qt-libraries=%{_libdir}
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -77,6 +109,10 @@
 # code, too.
 install -p %{SOURCE4} $RPM_BUILD_ROOT%{_libdir}/smart/distro.py
 
+%{__make} install \
+	-C contrib/ksmarttray \
+	DESTDIR=$RPM_BUILD_ROOT
+
 %find_lang %{name}
 %py_postclean
 
@@ -151,12 +187,20 @@
 %{_desktopdir}/smart.desktop
 %{_pixmapsdir}/smart.png
 
+%files -n ksmarttray
+%defattr(644,root,root,755)
+%attr(775,root,root) %{_bindir}/ksmarttray
+%{_datadir}/apps/ksmarttray
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2006/03/04 15:00:05  glen
+- add ksmarttray
+
 Revision 1.5  2006/03/04 14:07:38  glen
 - list files instead of generating them
 
================================================================

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



More information about the pld-cvs-commit mailing list