224ce86
Summary: SyncML client for evolution
224ce86
Name: syncevolution
03ea56e
Version: 0.9
a72d852
Release: 1%{?dist}
03ea56e
License: LGPLv2+
224ce86
Group: Applications/Productivity
03ea56e
URL: http://syncevolution.org/
03ea56e
Source: http://downloads.syncevolution.org/syncevolution/sources/%{name}-%{version}.tar.gz
03ea56e
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
03ea56e
03ea56e
BuildRequires: boost-devel
224ce86
BuildRequires: cppunit-devel
03ea56e
BuildRequires: evolution-data-server-devel
03ea56e
BuildRequires: expat-devel
03ea56e
BuildRequires: glib2-devel
03ea56e
BuildRequires: libsoup-devel
03ea56e
BuildRequires: libical-devel
03ea56e
BuildRequires: pcre-devel
03ea56e
BuildRequires: libcurl-devel
03ea56e
BuildRequires: gnome-keyring-devel
03ea56e
BuildRequires: intltool automake libtool autoconf
224ce86
224ce86
%description
224ce86
syncevolution is designed to provide a SyncML client that can
224ce86
connect to and sync with various SyncML-based servers
224ce86
03ea56e
%package devel
03ea56e
Summary: Development package for %{name}
03ea56e
Group: Development/Libraries
03ea56e
Requires: %{name} = %{version}-%{release}
03ea56e
Requires: pkgconfig
03ea56e
03ea56e
%description devel
03ea56e
Files for development with %{name}.
03ea56e
224ce86
%prep
224ce86
%setup -q
03ea56e
# use the ac macros in Makefile.am
03ea56e
sed -i '/^ACLOCAL_AMFLAGS/{ /m4-repo/!s/$/ -I m4-repo/ }' Makefile*.am
03ea56e
touch -r Makefile-gen.am Makefile.am
224ce86
224ce86
%build
03ea56e
intltoolize --automake --copy --force
03ea56e
autoreconf -fiv
03ea56e
(cd src/synthesis && mkdir m4 && autoreconf -fi)
03ea56e
%configure --enable-unit-tests --enable-libsoup  \
03ea56e
    --enable-dbus-service --enable-shared --with-expat=system \
03ea56e
    --disable-static
03ea56e
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g
03ea56e
	s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
224ce86
make %{?_smp_mflags}
1e7d77b
find . -type d -perm 02755 -exec chmod 0755 '{}' \;
224ce86
224ce86
%install
224ce86
rm -rf $RPM_BUILD_ROOT
fb6274b
make install DESTDIR=$RPM_BUILD_ROOT docdir=%{_docdir}
03ea56e
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/testcases
03ea56e
#rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/%{name}
03ea56e
03ea56e
#Remove libtool archives and static libs
03ea56e
find %{buildroot} -name '*.la' -o -name '*.a' | xargs rm
224ce86
224ce86
%clean
224ce86
rm -rf $RPM_BUILD_ROOT
224ce86
03ea56e
%check
03ea56e
#make test
03ea56e
224ce86
%files
224ce86
%defattr(-,root,root,-)
03ea56e
%doc AUTHORS NEWS README COPYING HACKING LICENSE.LGPL-21 LICENSE.txt
03ea56e
%{_sysconfdir}/default/syncevolution
224ce86
%{_bindir}/*
03ea56e
%{_libdir}/*so.0*
03ea56e
%{_libdir}/syncevolution/*so.0*
03ea56e
%{_libexecdir}/syncevo-dbus-server
03ea56e
%{_datadir}/dbus-1/services/org.Moblin.SyncEvolution.service
03ea56e
03ea56e
%files devel
03ea56e
%defattr(-,root,root,-)
03ea56e
%{_includedir}/syncevo-dbus
03ea56e
%{_includedir}/synthesis
03ea56e
%{_libdir}/pkgconfig/syncevo-dbus.pc
03ea56e
%{_libdir}/pkgconfig/synthesis.pc
03ea56e
%{_libdir}/*so
03ea56e
%{_libdir}/syncevolution/*so
224ce86
224ce86
%changelog
03ea56e
* Fri Sep 25 2009 Matěj Cepl <mcepl@redhat.com> - 0.9-1
03ea56e
- New upstream release.
03ea56e
03ea56e
* Wed Aug  5 2009 Matěj Cepl <mcepl@redhat.com> - 0.8.1+0.9+beta3+20090723-1.0.3
03ea56e
- missing BuildRequires
03ea56e
03ea56e
* Wed Aug  5 2009 Stepan Kasal <skasal@redhat.com> - 0.8.1+0.9+beta3+20090723-1.0.2
03ea56e
- fixing autoconfigury; now it fails in a later stage of build ;-)
03ea56e
03ea56e
* Wed Aug  5 2009 Matěj Cepl <mcepl@redhat.com> - 0.8.1+0.9+beta3+20090723-1.0.1
03ea56e
- fixing rpath, currently FTBFS!!!
03ea56e
03ea56e
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1a-2
03ea56e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
03ea56e
1e7d77b
* Mon Mar 23 2009 Matej Cepl <mcepl@redhat.com> 0.8.1a-1
1e7d77b
- New upstream release.
1062a11
- make a fix for one #elif which should be #else
1e7d77b
2f04ca2
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-5
2f04ca2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2f04ca2
2a6e5a0
* Mon Oct  6 2008 Alex Lancaster <alexlan[AT] fedoraproject.org> - 0.7-4
2a6e5a0
- Rebuild against new libcppunit to fix broken deps
2a6e5a0
8c3c7e1
* Fri Aug 01 2008 Matěj Cepl <mcepl@redhat.com> 0.7-3
8c3c7e1
- Bump the release to fix broken update path for Rawhide
8c3c7e1
5729c92
* Fri Feb 15 2008 Matěj Cepl <mcepl@redhat.com> 0.7-2
5729c92
- Add #include <memory> to syncevolution.cpp according
5729c92
  to https://sourceforge.net/tracker/\
5729c92
  ?func=detail&atid=764733&aid=1893582&group_id=146288
f2c4af4
fb6274b
* Wed Feb 13 2008 Matěj Cepl <mcepl@redhat.com> 0.7-1
fb6274b
- New upstream version.
fb6274b
224ce86
* Mon Oct 15 2007 matej <mcepl@redhat.com> 0.6-2
224ce86
- updated SPEC to make the package approved for the Fedora
224ce86
  review process.
224ce86
224ce86
* Sun Oct 12 2007 Matěj Cepl <mcepl@redhat.com> 0.6-1
224ce86
- Fixing .spec -- use make install and others
224ce86
- Install also configuration templates to %%docs
224ce86
224ce86
* Sun Sep 30 2007 Matěj Cepl <mcepl@redhat.com> 0.6-0
224ce86
- Experimental build from upstream source.
224ce86
224ce86
* Tue Jan 16 2007 Richard Monk <rmonk@redhat.com> 0.5-1
224ce86
- Inital packaging