Rex Dieter 7f97cc
Kevin Kofler 40ad31
Summary: PIM Storage Service
Kevin Kofler 40ad31
Name:    akonadi
Lukas Tinkl 308a6d
Version: 1.2.1
Rex Dieter 7f97cc
Release: 1%{?dist}
Kevin Kofler 40ad31
Kevin Kofler 40ad31
Group:   System Environment/Libraries
Kevin Kofler 40ad31
License: LGPLv2+
Than Ngo 54e141
URL:     http://download.akonadi-project.org/
Lukas Tinkl 2fcdbe
Source0: http://download.akonadi-project.org/akonadi-%{version}.tar.bz2
Kevin Kofler 40ad31
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Kevin Kofler 40ad31
Rex Dieter 2ce7e1
# shrink default initial db size a bit (approx 140mb->28mb)
Rex Dieter c46c6d
%define mysql_conf_timestamp 20090220
Rex Dieter 2ce7e1
Patch1: akonadi-1.1.1-mysql_conf.patch
Rex Dieter 2ce7e1
Lukas Tinkl 2fcdbe
## upstream patches
Rex Dieter 84819c
Rex Dieter c46c6d
BuildRequires: cmake >= 2.6.0
Kevin Kofler 40ad31
BuildRequires: qt4-devel >= 4.4
Rex Dieter 9e420d
BuildRequires: automoc4
Kevin Kofler 40ad31
BuildRequires: mysql-devel
Rex Dieter 9e420d
BuildRequires: mysql-server
Kevin Kofler 40ad31
# for xsltproc
Kevin Kofler 40ad31
BuildRequires: libxslt
Kevin Kofler 40ad31
BuildRequires: shared-mime-info
Rex Dieter 07e1e1
BuildRequires: boost-devel
Lukas Tinkl 2fcdbe
BuildRequires: soprano-devel
Kevin Kofler 40ad31
Rex Dieter 391aba
# when/if akonadi grows support for other backends, consider splitting
Rex Dieter 391aba
# these similar to how phonon is done currently.
Rex Dieter 84e443
Requires: qt4-mysql
Rex Dieter 07e1e1
# not *strictly* required, but we need a functional default configuration
Lukas Tinkl 2fcdbe
Requires: mysql-server
Rex Dieter 9e420d
Requires(postun): /sbin/ldconfig
Rex Dieter 9e420d
Kevin Kofler 40ad31
%description
Kevin Kofler 40ad31
%{summary}.
Rex Dieter 48ecce
Requires an available instance of mysql server at runtime.  
Rex Dieter 48ecce
Akonadi can spawn a per-user one automatically if the mysql-server 
Rex Dieter 48ecce
package is installed on the machine.
Rex Dieter 48ecce
See also: %{_sysconfdir}/akonadi/mysql-global.conf
Rex Dieter 84e443
Kevin Kofler 40ad31
%package devel
Kevin Kofler 40ad31
Summary: Developer files for %{name}
Kevin Kofler 40ad31
Group:   Development/Libraries
Kevin Kofler 40ad31
Requires: %{name} = %{version}-%{release}
Kevin Kofler 763262
Requires: qt4-devel
Kevin Kofler 888938
Requires: pkgconfig
Kevin Kofler 40ad31
%description devel
Kevin Kofler 40ad31
%{summary}.
Kevin Kofler 40ad31
Rex Dieter 84e443
Kevin Kofler 40ad31
%prep
Rex Dieter 208c76
%setup -q 
Kevin Kofler 40ad31
Rex Dieter 2ce7e1
%patch1 -p1 -b .mysql_conf
Rex Dieter c46c6d
touch -d %{mysql_conf_timestamp} server/src/storage/mysql-global.conf
Rex Dieter 2ce7e1
Rex Dieter 84e443
Kevin Kofler 40ad31
%build
Rex Dieter 9e420d
Rex Dieter 9e420d
mkdir -p %{_target_platform}
Rex Dieter 9e420d
pushd %{_target_platform}
Rex Dieter 9e420d
%{cmake} \
Rex Dieter 9e420d
  -DCONFIG_INSTALL_DIR=%{_sysconfdir} \
Rex Dieter 9e420d
  ..
Rex Dieter 9e420d
popd
Rex Dieter 9e420d
Rex Dieter 9e420d
make %{?_smp_mflags} -C %{_target_platform}
Kevin Kofler 40ad31
Rex Dieter 84e443
Kevin Kofler 40ad31
%install
Kevin Kofler 40ad31
rm -rf $RPM_BUILD_ROOT
Rex Dieter 9e420d
make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
Lukas Tinkl 2fcdbe
Kevin Kofler 538256
mkdir -p $RPM_BUILD_ROOT%{_datadir}/akonadi/agents
Kevin Kofler 40ad31
Rex Dieter c46c6d
touch -d %{mysql_conf_timestamp} $RPM_BUILD_ROOT%{_sysconfdir}/akonadi/mysql-local.conf
Rex Dieter 84819c
Rex Dieter 84e443
Kevin Kofler 40ad31
%clean
Kevin Kofler 40ad31
rm -rf $RPM_BUILD_ROOT
Kevin Kofler 40ad31
Rex Dieter 84e443
Rex Dieter 7f97cc
%post -p /sbin/ldconfig
Rex Dieter 7f97cc
Rex Dieter 7f97cc
%posttrans
Kevin Kofler 40ad31
update-mime-database %{_datadir}/mime &> /dev/null || :
Kevin Kofler 40ad31
Kevin Kofler 40ad31
%postun
Rex Dieter 7f97cc
/sbin/ldconfig ||:
Rex Dieter 7f97cc
if [ $1 -eq 0 ] ; then
Rex Dieter 7f97cc
  update-mime-database %{_datadir}/mime &> /dev/null ||:
Rex Dieter 7f97cc
fi
Kevin Kofler 40ad31
Rex Dieter 84e443
Kevin Kofler 40ad31
%files
Kevin Kofler 40ad31
%defattr(-,root,root,-)
Kevin Kofler 40ad31
%doc AUTHORS lgpl-license
Kevin Kofler 40ad31
%dir %{_sysconfdir}/akonadi/
Kevin Kofler 40ad31
%config(noreplace) %{_sysconfdir}/akonadi/mysql-global.conf
Rex Dieter 84819c
%config(noreplace) %{_sysconfdir}/akonadi/mysql-local.conf
Kevin Kofler 40ad31
%{_bindir}/akonadi_control
Kevin Kofler 40ad31
%{_bindir}/akonadictl
Kevin Kofler 40ad31
%{_bindir}/akonadiserver
Rex Dieter 07e1e1
%{_libdir}/libakonadi*.so.1*
Lukas Tinkl 2fcdbe
%{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.*.xml
Lukas Tinkl 2fcdbe
%{_datadir}/dbus-1/services/org.freedesktop.Akonadi.*.service
Kevin Kofler 40ad31
%{_datadir}/mime/packages/akonadi-mime.xml
Lukas Tinkl 2fcdbe
%{_datadir}/akonadi/
Kevin Kofler 40ad31
Kevin Kofler 40ad31
%files devel
Kevin Kofler 40ad31
%defattr(-,root,root,-)
Kevin Kofler 40ad31
%{_includedir}/akonadi/
Kevin Kofler 888938
%{_libdir}/pkgconfig/akonadi.pc
Kevin Kofler 40ad31
%{_libdir}/libakonadi*.so
Lukas Tinkl 2fcdbe
%{_libdir}/cmake/Akonadi/
Kevin Kofler 40ad31
Rex Dieter 84e443
Kevin Kofler 40ad31
%changelog
Lukas Tinkl 308a6d
* Tue Sep  1 2009 Lukáš Tinkl <ltinkl@redhat.com> - 1.2.1-1
Lukas Tinkl 308a6d
- Akonadi 1.2.1
Lukas Tinkl 308a6d
Lukas Tinkl 308a6d
* Fri Aug 28 2009 Rex Dieter <rdieter@fedoraproject.org> 1.2.0-2.2
Lukas Tinkl 308a6d
- temporarily drop mysql-related bits, to workaround broken rawhide deps
Lukas Tinkl 308a6d
Lukas Tinkl 308a6d
* Tue Aug 25 2009 Karsten Hopp <karsten@redhat.com> 1.2.0-2
Lukas Tinkl 308a6d
- bump and rebuild, as s390x picked up an old boost library
Lukas Tinkl 308a6d
Lukas Tinkl 2fcdbe
* Thu Jul 30 2009 Lukáš Tinkl <ltinkl@redhat.com> - 1.2.0-1
Lukas Tinkl 2fcdbe
- Akonadi 1.2.0
Lukas Tinkl 2fcdbe
Lukas Tinkl 2fcdbe
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.95-2
Lukas Tinkl 2fcdbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Lukas Tinkl 2fcdbe
Lukas Tinkl 2fcdbe
* Thu Jun 25 2009 Than Ngo <than@redhat.com> - 1.1.95-1
Lukas Tinkl 2fcdbe
- 1.1.95
Lukas Tinkl 2fcdbe
Lukas Tinkl 2fcdbe
* Wed Jun 03 2009 Rex Dieter <rdieter@fedoraproject.org> 1.1.90-1
Lukas Tinkl 2fcdbe
- akonadi-1.1.90
Lukas Tinkl 2fcdbe
Lukas Tinkl 2fcdbe
* Tue May 26 2009 Rex Dieter <rdieter@fedoraproject.org> 1.1.85-3
Lukas Tinkl 2fcdbe
- akonadi.pc.cmake: s/AKONADI_LIB_VERSION_STRING/AKONADI_VERSION_STRING/
Lukas Tinkl 2fcdbe
Lukas Tinkl 2fcdbe
* Tue May 12 2009 Than Ngo <than@redhat.com> 1.1.85-2
Lukas Tinkl 2fcdbe
- fix rpm file list
Lukas Tinkl 2fcdbe
Lukas Tinkl 2fcdbe
* Wed May 06 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.85-1
Lukas Tinkl 2fcdbe
- akonadi-1.1.85
Lukas Tinkl 2fcdbe
Rex Dieter 7f97cc
* Thu Apr 30 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.2-1
Rex Dieter 7f97cc
- akonadi-1.1.2
Rex Dieter 7f97cc
- optimize scriptlets a bit
Rex Dieter 7f97cc
Rex Dieter c46c6d
* Wed Feb 25 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-6
Rex Dieter c46c6d
- rev startup patch
Rex Dieter c46c6d
- BR: cmake >= 2.6.0
Rex Dieter c46c6d
- preserve timestamp's on mysql*.conf's
Rex Dieter c46c6d
Rex Dieter 84819c
* Tue Feb 24 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-5
Rex Dieter 84819c
- own %%_sysconfig/akonadi/mysql-local.conf
Rex Dieter 84819c
- startup patch: reset conf only when needed, and clear mysql log file on update
Rex Dieter 84819c
Rex Dieter 84819c
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-4
Rex Dieter 84819c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Rex Dieter 84819c
Rex Dieter 2ce7e1
* Fri Feb 20 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-3
Rex Dieter 2ce7e1
- shrink default db initial size a bit (approx 140mb->28mb)
Rex Dieter 2ce7e1
- drop extraneous RPATH-cmake baggage
Rex Dieter 2ce7e1
Rex Dieter 07e1e1
* Wed Jan 21 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.1-1
Rex Dieter 07e1e1
- 1.1.1
Rex Dieter 07e1e1
Rex Dieter 07e1e1
* Sun Jan 04 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.1.0-1
Rex Dieter 07e1e1
- 1.1.0
Rex Dieter 07e1e1
Rex Dieter 07e1e1
* Tue Dec 16 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0.81-1
Rex Dieter 07e1e1
- 1.0.81
Rex Dieter 07e1e1
Rex Dieter 07e1e1
* Mon Dec 08 2008 Rex Dieter <rdieter@fedoraproject.org> - 1.0.80-3
Rex Dieter 07e1e1
- restore Requires: mysql-server
Rex Dieter 07e1e1
Rex Dieter 07e1e1
* Mon Dec 01 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 1.0.80-2
Kevin Kofler 538256
- own /usr/share/akonadi and /usr/share/akonadi/agents (#473595)
Kevin Kofler 538256
Rex Dieter 07e1e1
* Wed Nov 26 2008 Than Ngo <than@redhat.com> -  1.0.80-1
Rex Dieter 07e1e1
- 1.0.80
Rex Dieter 07e1e1
Rex Dieter 84e443
* Wed Oct 22 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-4
Rex Dieter 84e443
- drop Requires: mysql-server (for now), mention in %%description
Rex Dieter 84e443
Rex Dieter 391aba
* Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-3
Rex Dieter 391aba
- Requires: mysql-server
Rex Dieter 391aba
Rex Dieter 9e420d
* Wed Jul 30 2008 Rex Dieter <rdieter@fedoraproject.org> 1.0.0-2
Rex Dieter 9e420d
- BR: mysql-server
Rex Dieter 5909d8
- Requires: qt4-mysql
Rex Dieter 9e420d
- cleanup spec
Rex Dieter 9e420d
Than Ngo 54e141
* Wed Jul 23 2008 Than Ngo <than@redhat.com> -  1.0.0-1
Than Ngo 54e141
- 1.0.0
Than Ngo 54e141
Rex Dieter 208c76
* Wed Jun 18 2008 Rex Dieter <rdieter@fedoraproject.org> 0.82.0-1
Rex Dieter 208c76
- akonadi-0.82.0
Rex Dieter 208c76
Kevin Kofler 455b89
* Tue Jun  3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.2.20080526svn812787
Kevin Kofler 455b89
- BR automoc, drop automoc hack
Kevin Kofler 455b89
Kevin Kofler 7379ea
* Mon May 26 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.81.0-0.1.20080526svn812787
Kevin Kofler 7379ea
- update to revision 812787 from KDE SVN (to match KDE 4.1 Beta 1)
Kevin Kofler b8dd49
- restore builtin automoc4 for now
Kevin Kofler 888938
- update file list, require pkgconfig in -devel (.pc file now included)
Kevin Kofler 7379ea
Kevin Kofler 763262
* Mon May  5 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-2
Kevin Kofler 763262
- -devel: remove bogus Requires: pkgconfig
Kevin Kofler 763262
Kevin Kofler 40ad31
* Sat May  3 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.80.0-1
Kevin Kofler 40ad31
- first Fedora package