[packages/telepathy-spyke] - spec cleanup/modernize

qboosh qboosh at pld-linux.org
Mon Mar 1 22:01:04 CET 2021


commit ee7109c166656ed24cd243e6092ddb0cf951b7e2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Mar 1 22:01:49 2021 +0100

    - spec cleanup/modernize

 telepathy-spyke.spec | 41 +++++++++++++++++++++--------------------
 1 file changed, 21 insertions(+), 20 deletions(-)
---
diff --git a/telepathy-spyke.spec b/telepathy-spyke.spec
index b50fd0c..7d644d4 100644
--- a/telepathy-spyke.spec
+++ b/telepathy-spyke.spec
@@ -1,10 +1,11 @@
 %define		bzrrev	21
 %define		rel		0.3
-Summary:	Spyke = Telepathy+Python+Skype
+Summary:	Spyke = Telepathy+Python+Skype - connection manager
+Summary(pl.UTF-8):	Spyke = Telepathy+Python+Skype - zarządca połączeń
 Name:		telepathy-spyke
 Version:	0.1
 Release:	0.%{bzrrev}.%{rel}
-License:	GPL
+License:	GPL v3+
 Group:		Libraries
 # bzr branch lp:spyke
 # tar --exclude-vcs -cjf spyke-$(bzr revno spyke).tar.bz2 spyke
@@ -12,10 +13,10 @@ Group:		Libraries
 Source0:	spyke-%{bzrrev}.tar.bz2
 # Source0-md5:	b216c16224fed4c048e14d52c5e77124
 URL:		https://launchpad.net/spyke
-BuildRequires:	python
-BuildRequires:	python-devel
+BuildRequires:	python >= 1:2.6
+BuildRequires:	python-devel >= 1:2.6
 BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.219
+BuildRequires:	rpmbuild(macros) >= 1.714
 Requires:	python-shiny >= 0.1-1.4
 # for pdb
 Requires:	python-devel-tools
@@ -25,30 +26,32 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 A Connection Manager for Skype.
 
+%description
+Zarządca połączeń dla Skype'a.
+
 %prep
 %setup -q -n spyke
 
 # rm dead links
-rm data/icons/hicolor/16x16/apps/skype.png
-rm data/icons/hicolor/32x32/apps/skype.png
-rm data/icons/hicolor/48x48/apps/skype.png
+%{__rm} data/icons/hicolor/16x16/apps/skype.png
+%{__rm} data/icons/hicolor/32x32/apps/skype.png
+%{__rm} data/icons/hicolor/48x48/apps/skype.png
 
 # install to sys dir
-sed -i -e 's,\.local/,,' setup.py
+%{__sed} -i -e 's,\.local/,,' setup.py
 
-# dislike .py ext in $PATH
-sed -i -e 's,Exec=/usr/bin/env telepathy_spyke.py,Exec=/usr/bin/env %{_bindir}/telepathy_spyke,' data/org.freedesktop.Telepathy.ConnectionManager.spyke.service
+# dislike .py ext in $PATH, no need for env
+%{__sed} -i -e 's,Exec=/usr/bin/env telepathy_spyke.py,Exec=%{_bindir}/telepathy_spyke,' data/org.freedesktop.Telepathy.ConnectionManager.spyke.service
 
 %build
-%{__python} setup.py build
+%py_build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-	--optimize=2 \
-	--root=$RPM_BUILD_ROOT
 
-mv $RPM_BUILD_ROOT%{_bindir}/telepathy_spyke{.py,}
+%py_install
+
+%{__mv} $RPM_BUILD_ROOT%{_bindir}/telepathy_spyke{.py,}
 
 %py_postclean
 
@@ -57,13 +60,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/telepathy_spyke
 %{_datadir}/dbus-1/services/com.Skype.API.service
 %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.ConnectionManager.spyke.service
 %{_datadir}/mission-control/profiles/skype.profile
 %{_datadir}/telepathy/managers/spyke.manager
-%attr(755,root,root) %{_bindir}/telepathy_spyke
 %dir %{py_sitescriptdir}/spyke
 %{py_sitescriptdir}/spyke/*.py[co]
-%if "%{py_ver}" > "2.4"
-%{py_sitescriptdir}/spyke-*.egg-info
-%endif
+%{py_sitescriptdir}/spyke-0.1-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/telepathy-spyke.git/commitdiff/ee7109c166656ed24cd243e6092ddb0cf951b7e2



More information about the pld-cvs-commit mailing list