SPECS: PyMSNt.spec - adapter, cosmetics

glen glen at pld-linux.org
Sun Aug 19 14:46:33 CEST 2007


Author: glen                         Date: Sun Aug 19 12:46:33 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- adapter, cosmetics

---- Files affected:
SPECS:
   PyMSNt.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SPECS/PyMSNt.spec
diff -u SPECS/PyMSNt.spec:1.12 SPECS/PyMSNt.spec:1.13
--- SPECS/PyMSNt.spec:1.12	Sun Aug 19 10:06:10 2007
+++ SPECS/PyMSNt.spec	Sun Aug 19 14:46:27 2007
@@ -22,40 +22,38 @@
 BuildRequires:	python
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-Imaging
 Requires:	python-Twisted
 Requires:	python-Twisted-ssl
-Requires:	python-TwistedWords
 Requires:	python-TwistedWeb
+Requires:	python-TwistedWords
 Requires:	python-TwistedXish
-Requires:	python-Imaging
-Requires:	python-pyOpenSSL 
+Requires:	python-pyOpenSSL
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 
-%description -l pl.UTF-8
-
 %prep
 %setup -q -n pymsnt-snapshot
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/{%{_datadir}/pymsnt/src/{twistfix/words/{xish/,protocols/jabber/},legacy/msn/,baseproto/},%{_var}/lib/pymsnt}
-install -d $RPM_BUILD_ROOT/%{_sysconfdir}/{jabber,init.d}
-install -d $RPM_BUILD_ROOT/%{_datadir}/pymsnt/data/
-install src/twistfix/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/twistfix/
-install src/twistfix/words/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/twistfix/words/
-install src/twistfix/words/xish/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/twistfix/words/xish/
-install src/twistfix/words/protocols/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/twistfix/words/protocols/
-install src/twistfix/words/protocols/jabber/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/twistfix/words/protocols/jabber/
-install src/legacy/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/legacy/
-install src/legacy/msn/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/legacy/msn/
-install src/baseproto/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/baseproto/
-install src/*.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/src/
-install data/* $RPM_BUILD_ROOT/%{_datadir}/pymsnt/data/
-install PyMSNt.py $RPM_BUILD_ROOT/%{_datadir}/pymsnt/
+install -d $RPM_BUILD_ROOT{%{_datadir}/pymsnt/src/{twistfix/words/{xish/,protocols/jabber/},legacy/msn/,baseproto/},%{_var}/lib/pymsnt}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/jabber,/etc/rc.d/init.d}
+install -d $RPM_BUILD_ROOT%{_datadir}/pymsnt/data
+install src/twistfix/*.py $RPM_BUILD_ROOT%{_datadir}/pymsnt/src/twistfix
+install src/twistfix/words/*.py $RPM_BUILD_ROOT%{_datadir}/pymsnt/src/twistfix/words
+install src/twistfix/words/xish/*.py $RPM_BUILD_ROOT%{_datadir}/pymsnt/src/twistfix/words/xish
+install src/twistfix/words/protocols/*.py $RPM_BUILD_ROOT%{_datadir}/pymsnt/src/twistfix/words/protocols
+install src/twistfix/words/protocols/jabber/*.py $RPM_BUILD_ROOT%{_datadir}/pymsnt/src/twistfix/words/protocols/jabber
+install src/legacy/*.py $RPM_BUILD_ROOT%{_datadir}/pymsnt/src/legacy
+install src/legacy/msn/*.py $RPM_BUILD_ROOT%{_datadir}/pymsnt/src/legacy/msn
+install src/baseproto/*.py $RPM_BUILD_ROOT%{_datadir}/pymsnt/src/baseproto
+install src/*.py $RPM_BUILD_ROOT%{_datadir}/pymsnt/src
+install data/* $RPM_BUILD_ROOT%{_datadir}/pymsnt/data
+install PyMSNt.py $RPM_BUILD_ROOT%{_datadir}/pymsnt
 
 install %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/jabber/PyMSNt.xml
 install %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/PyMSNt
@@ -63,25 +61,25 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-#ugly workaround (maybe fix in twisted words/xish package?)
+# ugly workaround (maybe fix in twisted words/xish package?)
 %post
-ln -s %{py_sitescriptdir}/twisted/words/ %{py_sitedir}/twisted/words
-ln -s %{py_sitescriptdir}/twisted/xish/ %{py_sitedir}/twisted/xish
+ln -s %{py_sitescriptdir}/twisted/words %{py_sitedir}/twisted/words
+ln -s %{py_sitescriptdir}/twisted/xish %{py_sitedir}/twisted/xish
 
-if [ -f %{_sysconfdir}/jabber/secret ] ; then
-        SECRET=`cat %{_sysconfdir}/jabber/secret`
-        if [ -n "$SECRET" ] ; then
-                echo "Updating component authentication secret in PyMSNt.xml..."
-                %{__sed} -i -e "s/>secret</>$SECRET</" /etc/jabber/PyMSNt.xml
-        fi
+if [ -f %{_sysconfdir}/jabber/secret ]; then
+	SECRET=`cat %{_sysconfdir}/jabber/secret`
+	if [ -n "$SECRET" ] ; then
+		echo "Updating component authentication secret in PyMSNt.xml..."
+		%{__sed} -i -e "s/>secret</>$SECRET</" /etc/jabber/PyMSNt.xml
+	fi
 fi
 /sbin/chkconfig --add PyMSNt
 %service PyMSNt restart "Jabber MSN transport"
 
 %preun
 if [ "$1" = "0" ]; then
-        %service PyMSNt stop
-        /sbin/chkconfig --del PyMSNt
+	%service PyMSNt stop
+	/sbin/chkconfig --del PyMSNt
 fi
 
 %postun
@@ -115,7 +113,7 @@
 %dir %{_datadir}/pymsnt
 %attr(755,root,root) %{_datadir}/pymsnt/*.py
 %dir %{_var}/lib/pymsnt
-%attr(755,root,root) %{_sysconfdir}/init.d/PyMSNt
+%attr(754,root,root) /etc/rc.d/init.d/PyMSNt
 %attr(640,root,jabber) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/jabber/PyMSNt.xml
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -124,6 +122,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2007/08/19 12:46:27  glen
+- adapter, cosmetics
+
 Revision 1.12  2007/08/19 08:06:10  djrzulf
 - development version is 0.11.3 ;-)
 
@@ -160,4 +161,3 @@
 
 Revision 1.1  2007/08/18 19:09:10  djrzulf
 - init,
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/PyMSNt.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list