Hi Chris,
For a friend, I have used your opensync/barry git repository to build
RPM.
I'm not a RPM expert (I have never worked with the distributions using
it). But with your build framework, I haven't found the target to build
each RPM whereas it's possible for deb.
So you'll find in attachment a patch to add some targets. The spec files
aren't perfect... but it works.
Nicolas
diff --git a/Makefile b/Makefile
index 7056652..887b271 100644
--- a/Makefile
+++ b/Makefile
@@ -474,6 +474,58 @@ rpm-os-latest-build: rpmbuilddir $(METARPMROOT)
touch rpm-os-latest-build
##############################################################################
+# XMLFormat plugin
+
+rpm-xmlformat-latest-build: rpmbuilddir $(METARPMROOT)
+ # build binary packages
+ ./rprepare.sh xmlformat rpm/xmlformat-latest.spec
+ (cd ~/rpmbuild/SPECS && rpmbuild -ba xmlformat-latest.spec)
+ # install into rootdir/ as build dependency for other packages
+ (cd ~/rpmbuild/BUILD/xmlformat/build && \
+ $(MAKE) DESTDIR=$(METARPMROOT) install)
+ # done
+ touch rpm-xmlformat-latest-build
+
+##############################################################################
+# VFormat plugin
+
+rpm-vformat-latest-build: rpmbuilddir $(METARPMROOT)
+ # build binary packages
+ ./rprepare.sh vformat rpm/vformat-latest.spec
+ (cd ~/rpmbuild/SPECS && rpmbuild -ba vformat-latest.spec)
+ # install into rootdir/ as build dependency for other packages
+ (cd ~/rpmbuild/BUILD/vformat/build && \
+ $(MAKE) DESTDIR=$(METARPMROOT) install)
+ # done
+ touch rpm-vformat-latest-build
+
+##############################################################################
+# Evolution plugin
+
+rpm-evolution2-latest-build: rpmbuilddir $(METARPMROOT)
+ # build binary packages
+ ./rprepare.sh evolution2 rpm/evolution2-latest.spec
+ (cd ~/rpmbuild/SPECS && rpmbuild -ba evolution2-latest.spec)
+ # install into rootdir/ as build dependency for other packages
+ (cd ~/rpmbuild/BUILD/evolution2/build && \
+ $(MAKE) DESTDIR=$(METARPMROOT) install)
+ # done
+ touch rpm-evolution2-latest-build
+
+##############################################################################
+# OsyncTool
+
+rpm-osynctool-latest-build: rpmbuilddir $(METARPMROOT)
+ # build binary packages
+ ./rprepare.sh osynctool rpm/osynctool-latest.spec
+ (cd ~/rpmbuild/SPECS && rpmbuild -ba osynctool-latest.spec)
+ # install into rootdir/ as build dependency for other packages
+ (cd ~/rpmbuild/BUILD/osynctool/build && \
+ $(MAKE) DESTDIR=$(METARPMROOT) install)
+ # done
+ touch rpm-osynctool-latest-build
+
+##############################################################################
# OpenSync 0.2x
rpm-os-0.2x-build: rpmbuilddir $(METARPMROOT) $(METARPMROOT2X) sources/opensync-0.2x
diff --git a/rpm/evolution2-latest.spec b/rpm/evolution2-latest.spec
new file mode 100644
index 0000000..8759104
--- /dev/null
+++ b/rpm/evolution2-latest.spec
@@ -0,0 +1,64 @@
+%dump
+
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+Name: opensync-plugin-evolution
+Epoch: 1
+Version: 0.39
+Release: 1cdf
+Summary: Evolution 2 Synchronization Plug-In for OpenSync
+
+Group: Productivity/Other
+License: LGPL v2.1 or later
+URL: http://www.opensync.org/
+Source0: evolution2.tar.bz2
+BuildRoot: %{_tmppath}/evolution2
+
+%description
+OpenSync is a synchronization framework that is platform and distribution
+independent. It consists of several plugins that can be used to connect to
+devices, a powerful sync-engine and the framework itself. The synchronization
+framework is kept very flexible and is capable of synchronizing any type of
+data, including contacts, calendar, tasks, notes and files.
+
+%prep
+%setup -q -n evolution2
+
+mkdir build
+cd build
+cmake $RPM_BUILD_DIR/evolution2 \
+ -DCMAKE_MODULE_PATH="$RPM_BUILD_DIR/cmake-modules" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="-g" \
+ -DOPENSYNC_UNITTESTS=OFF \
+ -DCMAKE_SKIP_RPATH:BOOL=TRUE \
+%if "%{?_lib}" == "lib64"
+ %{?_cmake_lib_suffix64} \
+%endif
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
+
+%build
+cd build
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd build
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/libopensync1/plugins/evo2-sync.so
+%{_libdir}/libopensync1/formats/evo2-format.so
+%{_datadir}/libopensync1/defaults/evo2-sync
+
+%changelog
+* Tue Jun 28 2011 Chris Frey <cdf...@foursquare.net> 0.39-1
+- starting fresh rpm spec, based on Fedora's latest 0.22 spec
+
diff --git a/rpm/opensync-latest.spec b/rpm/opensync-latest.spec
index 423e102..ca7a9c5 100644
--- a/rpm/opensync-latest.spec
+++ b/rpm/opensync-latest.spec
@@ -72,7 +72,6 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/*.so.*
%{_libdir}/libopensync1/osplugin
%{_datadir}/libopensync1/*
-%{python_sitearch}/*
%files devel
%defattr(-,root,root,-)
diff --git a/rpm/osynctool-latest.spec b/rpm/osynctool-latest.spec
new file mode 100644
index 0000000..f61ddbc
--- /dev/null
+++ b/rpm/osynctool-latest.spec
@@ -0,0 +1,65 @@
+%dump
+
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+Name: osynctool
+Epoch: 1
+Version: 0.39
+Release: 1cdf
+Summary: CLI for synchronization with OpenSync
+
+Group: Productivity/Other
+License: GPL v2 or later
+URL: http://www.opensync.org/
+Source0: osynctool.tar.bz2
+BuildRoot: %{_tmppath}/osynctool
+
+%description
+OpenSync is a synchronization framework that is platform and distribution
+independent. It consists of several plugins that can be used to connect to
+devices, a powerful sync-engine and the framework itself. The synchronization
+framework is kept very flexible and is capable of synchronizing any type of
+data, including contacts, calendar, tasks, notes and files.
+
+%prep
+%setup -q -n osynctool
+
+mkdir build
+cd build
+cmake $RPM_BUILD_DIR/osynctool \
+ -DCMAKE_MODULE_PATH="$RPM_BUILD_DIR/cmake-modules" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="-g" \
+ -DOPENSYNC_UNITTESTS=OFF \
+ -DCMAKE_SKIP_RPATH:BOOL=TRUE \
+%if "%{?_lib}" == "lib64"
+ %{?_cmake_lib_suffix64} \
+%endif
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
+
+%build
+cd build
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd build
+make install DESTDIR=$RPM_BUILD_ROOT
+# remove bash completion script temporary
+%__rm %{buildroot}/usr/etc/bash_completion.d/osynctool.sh
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING README
+%{_bindir}/*
+
+%changelog
+* Tue Jun 28 2011 Chris Frey <cdf...@foursquare.net> 0.39-1
+- starting fresh rpm spec, based on Fedora's latest 0.22 spec
+
diff --git a/rpm/vformat-latest.spec b/rpm/vformat-latest.spec
new file mode 100644
index 0000000..4e1c7c0
--- /dev/null
+++ b/rpm/vformat-latest.spec
@@ -0,0 +1,68 @@
+%dump
+
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+Name: opensync-format-vformat
+Epoch: 1
+Version: 0.39
+Release: 1cdf
+Summary: OpenSync format plugin for vCalendar and vCard support
+
+Group: Productivity/Other
+License: LGPL v2.1 or later
+URL: http://www.opensync.org/
+Source0: vformat.tar.bz2
+BuildRoot: %{_tmppath}/vformat
+
+%description
+OpenSync is a synchronization framework that is platform and distribution
+independent. It consists of several plugins that can be used to connect to
+devices, a powerful sync-engine and the framework itself. The synchronization
+framework is kept very flexible and is capable of synchronizing any type of
+data, including contacts, calendar, tasks, notes and files.
+
+%prep
+%setup -q -n vformat
+
+mkdir build
+cd build
+cmake $RPM_BUILD_DIR/vformat \
+ -DCMAKE_MODULE_PATH="$RPM_BUILD_DIR/cmake-modules" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="-g" \
+ -DOPENSYNC_UNITTESTS=OFF \
+ -DCMAKE_SKIP_RPATH:BOOL=TRUE \
+%if "%{?_lib}" == "lib64"
+ %{?_cmake_lib_suffix64} \
+%endif
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
+
+%build
+cd build
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd build
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_bindir}/vconvert
+%{_libdir}/libopensync1/formats/vcard.so
+%{_libdir}/libopensync1/formats/vevent.so
+%{_libdir}/libopensync1/formats/vjournal.so
+%{_libdir}/libopensync1/formats/vnote.so
+%{_libdir}/libopensync1/formats/vtodo.so
+%{_libdir}/libopensync1/formats/vformat-xmlformat.so
+
+%changelog
+* Tue Jun 28 2011 Chris Frey <cdf...@foursquare.net> 0.39-1
+- starting fresh rpm spec, based on Fedora's latest 0.22 spec
+
diff --git a/rpm/xmlformat-latest.spec b/rpm/xmlformat-latest.spec
new file mode 100644
index 0000000..134bcdd
--- /dev/null
+++ b/rpm/xmlformat-latest.spec
@@ -0,0 +1,69 @@
+%dump
+
+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
+Name: opensync-format-xmlformat
+Epoch: 1
+Version: 0.39
+Release: 1cdf
+Summary: OpenSync format plugin for xml formats
+
+Group: Productivity/Other
+License: LGPL v2.1 or later
+URL: http://www.opensync.org/
+Source0: xmlformat.tar.bz2
+BuildRoot: %{_tmppath}/xmlformat
+
+%description
+OpenSync is a synchronization framework that is platform and distribution
+independent. It consists of several plugins that can be used to connect to
+devices, a powerful sync-engine and the framework itself. The synchronization
+framework is kept very flexible and is capable of synchronizing any type of
+data, including contacts, calendar, tasks, notes and files.
+
+%prep
+%setup -q -n xmlformat
+
+mkdir build
+cd build
+cmake $RPM_BUILD_DIR/xmlformat \
+ -DCMAKE_MODULE_PATH="$RPM_BUILD_DIR/cmake-modules" \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="-g" \
+ -DOPENSYNC_UNITTESTS=OFF \
+ -DCMAKE_SKIP_RPATH:BOOL=TRUE \
+%if "%{?_lib}" == "lib64"
+ %{?_cmake_lib_suffix64} \
+%endif
+ -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE
+
+%build
+cd build
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd build
+make install DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/libopensync1/formats/xmlformat-doc.so
+%{_libdir}/libopensync1/formats/xmlformat.so
+%{_datadir}/libopensync1/schemas/xmlformat-calendar.xsd
+%{_datadir}/libopensync1/schemas/xmlformat-common.xsd
+%{_datadir}/libopensync1/schemas/xmlformat-contact.xsd
+%{_datadir}/libopensync1/schemas/xmlformat-event.xsd
+%{_datadir}/libopensync1/schemas/xmlformat-note.xsd
+%{_datadir}/libopensync1/schemas/xmlformat-todo.xsd
+
+%changelog
+* Tue Jun 28 2011 Chris Frey <cdf...@foursquare.net> 0.39-1
+- starting fresh rpm spec, based on Fedora's latest 0.22 spec
+
--
1.7.6
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
Barry-devel mailing list
Barry-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/barry-devel