Name: owncloud-csync Version: 0.50.8 Release: 8%{?dist} Summary: A user level bidirectional client only file synchronizer License: GPLv2+ Url: http://owncloud.org/sync-clients/ Source0: http://download.owncloud.com/download/csync-%{version}.tar.bz2 ## uptramable patches #fix fsf address in COPYING file Patch01: csync-0.50.8-COPYING_fix.patch Patch02: rootCMakeLists_namechange.patch Patch03: clientCMakeLists_namechange.patch Patch04: configCMakeLists_namechange.patch Patch05: modulesCMakeLists_namechange.patch Patch06: docCMakeLists_namechange.patch Patch07: srcCMakeLists_namechange.patch BuildRequires: check BuildRequires: cmake BuildRequires: doxygen BuildRequires: libsmbclient-devel BuildRequires: iniparser-devel >= 3.1 BuildRequires: libssh-devel BuildRequires: log4cpp-devel BuildRequires: neon-devel BuildRequires: sqlite-devel BuildRequires: openssl-devel %description csync is an implementation of a file synchronizer which provides the feature of roaming home directories for Linux clients. csync makes use of libsmbclient in Samba/Windows environments. %package libs Summary: A user level bidirectional client only file synchronizer %description libs csync is an implementation of a file synchronizer which provides the feature of roaming home directories for Linux clients. csync makes use of libsmbclient in Samba/Windows environments. %package plugin-smb Summary: SMB plugin for csync Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description plugin-smb This plug-in allows applications using csync to synchronize with a Samba or Windows server. %package plugin-sftp Summary: A user level bidirectional client only file synchronizer Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description plugin-sftp csync is an implementation of a file synchronizer which provides the feature of roaming home directories for clients. csync makes use of libsmbclient in Samba/Windows environments. %package plugin-owncloud Summary: A user level bidirectional client only file synchronizer Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description plugin-owncloud csync is an implementation of a file synchronizer which provides the feature of roaming home directories for Linux clients. csync makes use of libneon to access ownCloud. %package devel Summary: Development files for csync Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel The csync-devel package contains the static libraries and header files needed for development with csync. %package devel-doc BuildArch: noarch Summary: Developer documentation for csync %description devel-doc The csync-devel-doc package provides documentation for csync development. %package doc BuildArch: noarch Summary: User documentation for csync %description doc The csync-doc package provides user documentation for csync. %prep %setup -q -n csync-%{version} %patch01 -p1 -b .COPYING_fix %patch02 -p1 -b .root_namechange %patch03 -p1 -b .client_namechange %patch04 -p1 -b .config_namechange %patch05 -p1 -b .modules_namechange %patch06 -p1 -b .doc_namechange %patch07 -p1 -b .src_namechange mv %{_builddir}/csync-%{version}/doc/csync.1 %{_builddir}/csync-%{version}/doc/occsync.1 mv %{_builddir}/csync-%{version}/doc/csync.1.txt %{_builddir}/csync-%{version}/doc/occsync.1.txt %build if test ! -e "build"; then mkdir build fi pushd build %cmake \ -DLOG_TO_CALLBACK=ON \ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ %{_builddir}/csync-%{version} make %{?_smp_mflags} %{?jobs:-j%jobs} VERBOSE=1 make doc popd build %install pushd build make DESTDIR=%{buildroot} install mkdir -p %{buildroot}%{_docdir}/%{name}-devel-%{version}/ mv %{_builddir}/csync-%{version}/build/doc/html %{buildroot}%{_docdir}/%{name}-devel-%{version}/html mv %{buildroot}%{_docdir}/occsync %{buildroot}%{_docdir}/%{name}-%{version}/ popd build %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files %{_bindir}/occsync %{_mandir}/man?/occsync.* %files libs %config(noreplace) %{_sysconfdir}/occsync/csync.conf %config(noreplace) %{_sysconfdir}/occsync/csync_exclude.conf %config(noreplace) %{_sysconfdir}/occsync/csync_log.conf %doc AUTHORS COPYING README ChangeLog %dir %{_sysconfdir}/occsync %{_libdir}/liboccsync.so.* %dir %{_libdir}/occsync-0 %files plugin-smb %{_libdir}/occsync-0/occsync_smb.so %files plugin-sftp %{_libdir}/occsync-0/occsync_sftp.so %files plugin-owncloud %{_libdir}/occsync-0/occsync_owncloud.so %files devel %{_includedir}/occsync %{_libdir}/liboccsync.so %files devel-doc %{_docdir}/%{name}-devel-%{version}/html %files doc %{_docdir}/%{name}-%{version} %changelog * Sat Aug 18 2012 0.50.8-8 - Marked as no arch doc packages * Sat Aug 18 2012 0.50.8-7 - Added patches to the CMakeLists to change directory and file names from csync to occsync * Fri Aug 17 2012 0.50.8-6 - Changed package name to owncloud-csync to stablish this is csync owncloud branch also known as dav branch * Sat Aug 16 2012 0.50.8-5 - Changed devel documentation directories to %%{name}-devel-%%{version} - escape macros in changelog using %% - remove gcc-c++ dep since is part of the minimal build environment - add CMAKE flag dcMAKE_SHARED_LINKER_FLAGS and remove dcMAKE_SKIP_RPATH * Sat Aug 15 2012 0.50.8-4 - Changed documentation directories to %%{name}-%%{version} and %%{name}-devel-%%{version} * Sat Aug 15 2012 0.50.8-3 - Added correct version of build requirement iniparser-devel - Fixed dates and versions on changelog - Removed outdated %%defattr(-,root,root) macros - Removed INSTALL file from the lib documentation (%%doc) - Added ChangeLog file to the lib documentation (%%doc) - Added Patch to correct fsf address on COPYING file - Added more strict dep naming - Changed documatation install directories * Sat Aug 14 2012 0.50.8-2 - Added openssl dependency version * Sat Aug 11 2012 0.50.8-1 - Initial try to package csync dav branch version