rpms/libopensync/devel libopensync.spec,1.18,1.19

Andreas Bierfert (awjb) fedora-extras-commits at redhat.com
Fri Dec 28 00:18:45 UTC 2007


Author: awjb

Update of /cvs/pkgs/rpms/libopensync/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25762

Modified Files:
	libopensync.spec 
Log Message:
- add python bindings



Index: libopensync.spec
===================================================================
RCS file: /cvs/pkgs/rpms/libopensync/devel/libopensync.spec,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- libopensync.spec	27 Dec 2007 13:28:37 -0000	1.18
+++ libopensync.spec	28 Dec 2007 00:18:06 -0000	1.19
@@ -1,3 +1,4 @@
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 Name:           libopensync
 Version:        0.35
 Release:        1%{?dist}
@@ -31,7 +32,8 @@
 Requires:       pkgconfig
 Requires:       glib2-devel
 Requires:       libxml2-devel
-Requires:       zlib-devel
+Requires:       sqlite-devel
+
 %description    devel
 The %{name}-devel package contains the files needed for development
 with %{name}.
@@ -40,22 +42,26 @@
 %setup -q
 
 %build
+mkdir build
+cd build
 cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DCMAKE_C_FALGS=%{optflags} \
     -DCMAKE_SKIP_RPATH=YES \
     -DOPENSYNC_LIBEXEC_DIR=%{_libexecdir} \
+    -DSWIG_DIR=/usr/share/swig/1.3.33/ \
 %ifarch x86_64 ppc64
     -DLIB_SUFFIX=64 \
 %endif
-    .
+    ../
 make %{?_smp_mflags}
 
 %install
 rm -rf $RPM_BUILD_ROOT
+cd build
 make install DESTDIR=$RPM_BUILD_ROOT
 
 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/opensync-1.0
 mkdir -p $RPM_BUILD_ROOT/%{_libdir}/opensync-1.0/formats
-mkdir -p $RPM_BUILD_ROOT/%{_libdir}/opensync-1.0/plugins
+mkdir -p $RPM_BUILD_ROOT/%{_libdir}/opensync-1.0/{python-,}plugins
 
 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/
 
@@ -88,11 +94,13 @@
 %{_libexecdir}/osplugin
 %dir %{_libdir}/opensync-1.0
 %dir %{_libdir}/opensync-1.0/formats
+%dir %{_libdir}/opensync-1.0/python-plugins
 %dir %{_libdir}/opensync-1.0/plugins
 %{_libdir}/opensync-1.0/formats/*
 %dir %{_datadir}/opensync-1.0
 %{_datadir}/opensync-1.0/*
 %config %{_sysconfdir}/ld.so.conf.d/*
+%{python_sitearch}/*
 
 %files devel
 %doc CODING




More information about the fedora-extras-commits mailing list