packages libopensync.spec
      Pages: < 1 >  DOWNLOAD      
Name:          libopensync
Epoch:         1
Version:       0.39
Release:       1mamba
Summary:       Synchronisation framework for email/pdas/and more
Group:         System/Libraries
Vendor:        openmamba
Distribution:  openmamba
Packager:      Aleph0 <aleph0@...>
URL:           http://www.opensync.org/
Source:        http://www.opensync.org/download/releases/%{version}/libopensync-%{version}.tar.bz2
License:       LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libglib-devel
BuildRequires: libpython-devel
BuildRequires: libsqlite-devel
BuildRequires: libxml2-devel
## AUTOBUILDREQ-END
BuildRequires: pkgconfig
BuildRequires: swig
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

# FIXME:
# WARNING: cannot find 'swig' program. You should look at http://www.swig.org

%description
OpenSync is a synchronization framework that is platform and distribution independent.
It consists of a powerful sync-engine and several plugins that can be used to connect to devices.

%package devel
Group:         Development/Libraries
Summary:       Static libraries and headers for %{name}
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}

%description devel
OpenSync is a synchronization framework that is platform and distribution independent.
It consists of a powerful sync-engine and several plugins that can be used to connect to devices.

This package contains static libraries and header files need for development.

%package -n python-opensync
Group:         Development/Libraries/Python
Summary:       Python bindings for OpenSync library
Requires:      %{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides:      libopensync-python
Obsoletes:     libopensync-python
%{py_requires}

%description -n python-opensync
OpenSync is a synchronization framework that is platform and distribution independent.
It consists of a powerful sync-engine and several plugins that can be used to connect to devices.

This module contains Python bindings for the OpenSync library.

%prep
%setup -q

%build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
%make

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" 
%makeinstall -C build

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_bindir}/osyncbinary
%{_bindir}/osyncdump
%{_bindir}/osyncplugin
#%{_bindir}/osyncstress
#%{_bindir}/osynctest
%{_libdir}/*.so.*
#%{_libdir}/libopensync1/formats/file.so
#%{_libdir}/libopensync1/formats/plain.so
#%{_libdir}/libopensync1/formats/xmlformat-doc.so
#%{_libdir}/libopensync1/formats/xmlformat.so
%{_libdir}/libopensync1/osplugin
%{_datadir}/libopensync1/capabilities/*.xml
%{_datadir}/libopensync1/descriptions/*.xml
%{_datadir}/libopensync1/schemas/*.xsd
%doc AUTHORS COPYING README

%files devel
%defattr(-,root,root)
%{_includedir}/libopensync1/opensync
#%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/libopensync1/cmake/modules/*.cmake

%files -n python-opensync
%defattr(-,root,root)
#%{python_sitearch}/_opensync.la
%{python_sitearch}/_opensync.so
%{python_sitearch}/opensync.py
#%{python_sitearch}/opensync.pyc
#%{python_sitearch}/opensync.pyo

%changelog
* Tue Oct 13 2009 Silvan Calarco <silvan.calarco@...> 0.39-1mamba
- update to 0.39

* Sat Feb 07 2009 Silvan Calarco <silvan.calarco@...> 0.38-2mamba
- moved cmake files to devel package

* Fri Feb 06 2009 Silvan Calarco <silvan.calarco@...> 0.38-1mamba
- update to 0.38

* Mon Oct 13 2008 Silvan Calarco <silvan.calarco@...> 0.36-1mamba
- update to 0.36
- downgrade for build compatibility with kdepim4 and libopensync-plugins-python, epoch bumped up

* Sun Oct 12 2008 Silvan Calarco <silvan.calarco@...> 0.37-1mamba
- update to 0.37

* Tue May 13 2008 Silvan Calarco <silvan.calarco@...> 0.36-1mamba
- update to 0.36

* Tue May 29 2007 Aleph0 <aleph0@...> 0.22-1mamba
- package created by autospec