[packages/pycarddav] pldize spec

glen glen at pld-linux.org
Wed Mar 13 10:35:26 CET 2013


commit ebda1d2ccda4093704875710a65cd40c64f9b11b
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Mar 13 11:34:41 2013 +0200

    pldize spec
    
    - adapter
    - verbose files in bindir
    - package egg-info
    - pld macros/deps

 pycarddav.spec | 33 +++++++++++++++++++--------------
 1 file changed, 19 insertions(+), 14 deletions(-)
---
diff --git a/pycarddav.spec b/pycarddav.spec
index 08f6b68..6a6aba4 100644
--- a/pycarddav.spec
+++ b/pycarddav.spec
@@ -3,12 +3,14 @@ Name:		pycarddav
 Version:	0.4
 Release:	1
 License:	Expat/MIT License
-Group:		Networking/Mail
+Group:		Applications/Mail
 Source0:	http://lostpackets.de/pycarddav/downloads/%{name}-%{version}.tar.gz
 # Source0-md5:	29a900555a0cb737af50c94f9ed050e3
 URL:		http://lostpackets.de/pycarddav/
 BuildRequires:	python-devel
-%pyrequires_eq	python-modules
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.219
+Requires:	python-modules
 Requires:	python-requests
 Requires:	python-urwid
 Requires:	python-vobject
@@ -18,11 +20,11 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 pyCardDAV is a simple to use CardDAV CLI client. It has built in
 support for mutt's query_command but also works very well solo.
 
-pyCardDAV consists of pycardsyncer, a program for syncing your
-CardDAV resource into a local database and of pc_query, a program for
-querying the local database. pyCardDAV is some ugly python code
-(actually, it's not that bad anymore…) that holds together vobject,
-lxml, requests and pysqlite .
+pyCardDAV consists of pycardsyncer, a program for syncing your CardDAV
+resource into a local database and of pc_query, a program for querying
+the local database. pyCardDAV is some ugly python code (actually, it's
+not that bad anymore…) that holds together vobject, lxml, requests and
+pysqlite .
 
 Features/limitations:
 - only use one address book resource at the moment
@@ -31,22 +33,22 @@ Features/limitations:
 - backup and import to/from .vcf files
 - email addresses directly from mutt
 - understands VCard 3.0
-- python 3 not compatible yet
+- Python 3 not compatible yet
 
 %prep
 %setup -q
 
 %build
-python setup.py build
+%{__python} setup.py build
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-python setup.py install \
+%{__python} setup.py install \
+	--skip-build \
 	--optimize=2 \
-	--root $RPM_BUILD_ROOT
+	--root=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/pycarddav/*.py
+%py_postclean
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -54,6 +56,9 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc CHANGELOG COPYING NEWS pycard.conf.sample README.rst requirements.txt tests
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/pc_query
+%attr(755,root,root) %{_bindir}/pycard-import
+%attr(755,root,root) %{_bindir}/pycardsyncer
 %dir %{py_sitescriptdir}/pycarddav
 %{py_sitescriptdir}/pycarddav/*.py[co]
+%{py_sitescriptdir}/pyCardDAV-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pycarddav.git/commitdiff/ebda1d2ccda4093704875710a65cd40c64f9b11b



More information about the pld-cvs-commit mailing list