packages: synce-sync-engine/synce-sync-engine.spec - build optimized pyo
glen
glen at pld-linux.org
Fri Jul 9 08:11:46 CEST 2010
Author: glen Date: Fri Jul 9 06:11:46 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- build optimized pyo
---- Files affected:
packages/synce-sync-engine:
synce-sync-engine.spec (1.12 -> 1.13)
---- Diffs:
================================================================
Index: packages/synce-sync-engine/synce-sync-engine.spec
diff -u packages/synce-sync-engine/synce-sync-engine.spec:1.12 packages/synce-sync-engine/synce-sync-engine.spec:1.13
--- packages/synce-sync-engine/synce-sync-engine.spec:1.12 Wed Jun 16 01:13:32 2010
+++ packages/synce-sync-engine/synce-sync-engine.spec Fri Jul 9 08:11:41 2010
@@ -1,4 +1,6 @@
# $Revision$, $Date$
+# TODO
+# - move (to private dir) or rename .py files in bindir not to be so generic
Summary: SynCE - Synchronization engine
Summary(pl.UTF-8): SynCE - silnik synchronizacji
Name: synce-sync-engine
@@ -12,6 +14,7 @@
BuildRequires: python
BuildRequires: python-setuptools
BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.219
BuildRequires: sed >= 4.0
Requires: libopensync-plugin-python >= 0.30
Requires: python-dbus
@@ -36,19 +39,23 @@
%setup -q
# Change python package path to normal on 'tools' folder
-sed -i -e "#sys.path.insert(0,#d" tools/*.py
+%{__sed} -i -e "#sys.path.insert(0,#d" tools/*.py
%build
-python setup.py build
+%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install \
+ --optimize=2 \
--root=$RPM_BUILD_ROOT
-install -D plugins/synce-opensync-plugin-3x.py $RPM_BUILD_ROOT%{_libdir}/opensync-1.0/python-plugins/synce-opensync-plugin-3x.py
-install -D config/org.synce.SyncEngine.service $RPM_BUILD_ROOT%{_datadir}/dbus-1/services/org.synce.SyncEngine.service
-install -D config/syncengine.conf.xml $RPM_BUILD_ROOT%{_sysconfdir}/syncengine.conf.xml
+install -Dp plugins/synce-opensync-plugin-3x.py $RPM_BUILD_ROOT%{_libdir}/opensync-1.0/python-plugins/synce-opensync-plugin-3x.py
+install -Dp config/org.synce.SyncEngine.service $RPM_BUILD_ROOT%{_datadir}/dbus-1/services/org.synce.SyncEngine.service
+install -Dp config/syncengine.conf.xml $RPM_BUILD_ROOT%{_sysconfdir}/syncengine.conf.xml
+
+rm $RPM_BUILD_ROOT%{_docdir}/sync-engine/org.synce.SyncEngine.service
+rm $RPM_BUILD_ROOT%{_docdir}/sync-engine/syncengine.conf.xml
%py_postclean
@@ -58,6 +65,7 @@
%files
%defattr(644,root,root,755)
%doc CHANGELOG
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/syncengine.conf.xml
%attr(755,root,root) %{_bindir}/clean_partnerships.py
%attr(755,root,root) %{_bindir}/configure_bindings.py
%attr(755,root,root) %{_bindir}/create_partnership.py
@@ -84,7 +92,6 @@
%{py_sitescriptdir}/SyncEngine/wbxml/*.py[co]
%{_libdir}/opensync-1.0/python-plugins/synce-opensync-plugin-3x.py
%{_datadir}/dbus-1/services/org.synce.SyncEngine.service
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/syncengine.conf.xml
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -92,6 +99,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.13 2010/07/09 06:11:41 glen
+- build optimized pyo
+
Revision 1.12 2010/06/15 23:13:32 arvenil
- up to 0.15
- adapter
@@ -113,7 +123,7 @@
- 0.12
Revision 1.6 2008/06/27 10:23:42 tiwek
-add config file
+- add config file
Revision 1.5 2008/05/16 21:53:10 wolvverine
- up to 0.11.1
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/synce-sync-engine/synce-sync-engine.spec?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list